1 option
Learning C# by Developing Games with Unity 6 : Get to Grips with Coding in C# and Build Simple 3D Games in Unity from the Ground Up.
- Format:
- Book
- Author/Creator:
- Ferrone, Harrison.
- Language:
- English
- Subjects (All):
- Unity (Electronic resource).
- C# (Computer program language).
- Video games--Programming.
- Video games.
- Physical Description:
- 1 online resource (505 pages)
- Edition:
- 1st ed.
- Place of Publication:
- Birmingham : Packt Publishing, Limited, 2025.
- Summary:
- Learn C# programming from scratch using the all-new Unity 6 as a fun and accessible entry point with this updated edition of the bestselling series Key Features Build a strong foundation in programming concepts and the C# language Become confident in the fundamentals and features of Unity in line with Unity 6 Create a playable game prototype in.
- Contents:
- Cover
- Copyright
- Foreword
- Contributors
- Table of Contents
- Preface
- Chapter 1: Getting to Know Your Environment
- Getting the most out of this book - get to know your free benefits
- Next-gen reader
- Interactive AI assistant (beta)
- DRM-free PDF or ePub version
- Technical requirements
- Getting started with Unity 6
- Using macOS
- Creating a new project
- Navigating the editor
- Using C# with Unity
- Setting up Visual Studio Code in Unity 6
- Working with C# scripts
- Introducing the Visual Studio Code editor
- Opening a C# file
- Beware of naming mismatches
- Syncing C# files
- Exploring the documentation
- Accessing Unity's documentation
- Locating C# resources
- Summary
- Pop quiz: Dealing with scripts
- Chapter 2: The Building Blocks of Programming
- Defining variables
- Names are important
- Variables act as placeholders
- Understanding methods
- Methods drive actions
- Methods are placeholders too
- Introducing classes
- A common Unity class
- Classes are blueprints
- Communication among classes
- Working with comments
- Single-line comments
- Multi-line comments
- Adding comments
- Putting the building blocks together
- Scripts become components
- A helping hand from MonoBehaviour
- Unity application lifecycle
- Pop quiz: C# building blocks
- Chapter 3: Diving into Variables, Types, and Methods
- Writing proper C#
- Debugging your code
- Understanding variables
- Declaring variables
- Type and value declarations
- Type-only declarations
- Using access modifiers
- Working with variable types
- Common built-in types
- Type conversions
- Inferred declarations
- Custom types
- Naming variables
- Understanding variable scope
- Introducing operators
- Declaring methods
- Naming methods
- Methods as logic detours.
- Specifying parameters
- Specifying return values
- Using return values
- Hero's trial: methods as arguments
- Dissecting common Unity methods
- The Start() method
- The Update() method
- Pop quiz: Variables and methods
- Chapter 4: Control Flow and Collection Types
- Selection statements
- The if-else statement
- Using the NOT operator
- Nesting statements
- Evaluating multiple conditions
- Putting it all together
- The switch statement
- Pattern matching
- Fall-through cases
- Pop quiz 1: if, and, or but
- Collections at a glance
- Arrays
- Indexing and subscripts
- Multidimensional arrays
- Range exceptions
- Lists
- Setting up a list
- Accessing and modifying lists
- Dictionaries
- Creating a dictionary
- Working with dictionary pairs
- Pop quiz 2: all about collections
- Iteration statements
- for loops
- foreach loops
- Looping through key-value pairs
- Hero's trial: finding affordable items
- while loops
- To infinity and beyond
- Chapter 5: Working with Classes, Structs, and OOP
- Introducing OOP
- Defining classes
- Creating a class
- Instantiating class objects
- Adding class fields
- Using constructors
- Declaring class methods
- Declaring structs
- Understanding reference and value types
- Reference types
- Value types
- Integrating the object-oriented mindset
- Encapsulation
- Inheritance
- Base constructors
- Composition
- Polymorphism
- Applying OOP in Unity
- Objects are a class act
- Accessing components
- Accessing components in code
- Drag and drop
- Pop quiz: All things OOP
- Chapter 6: Getting Your Hands Dirty with Unity
- A game design primer
- Game design documents
- The Hero Born one-pager
- Building a level
- Creating primitives
- Thinking in 3D
- Applying materials
- White-boxing
- Editor tools.
- Hero's trial: putting up drywall
- Keeping the hierarchy clean
- Working with Prefabs
- Hero's trial: creating a health pickup
- Lighting basics
- Creating lights
- Light component properties
- Animating in Unity
- Creating animations in code
- Creating animations in the Unity Animation window
- Recording keyframes
- Curves and tangents
- Pop quiz: Basic Unity features
- Chapter 7: Movement, Camera Controls, and Collisions
- Managing player movement
- Moving the player with the Transform component
- Understanding vectors
- Getting player input
- Moving the player
- Scripting camera behavior
- Working with the Unity physics system
- Rigidbody components in motion
- Colliders and collisions
- Picking up an item
- Using Collider triggers
- Creating an enemy
- Hero's trial-all the prefabs!
- Physics roundup
- Pop quiz: Player controls and physics
- Chapter 8: Scripting Game Mechanics
- Making the player jump
- Introducing enumerations
- Underlying types
- Working with layer masks
- Shooting projectiles
- Instantiating objects
- Adding the shooting mechanic
- Managing object build-up
- Creating a game manager
- Tracking player properties
- The get and set properties
- Updating item collection
- Creating a GUI
- Displaying player stats
- Win and loss conditions
- Pausing and restarting the game with using directives and namespaces
- Pop quiz: Working with mechanics
- Chapter 9: Basic AI and Enemy Behavior
- Navigating 3D space in Unity
- Unity's navigation components
- Adding a NavMeshSurface
- Setting up enemy agents
- Moving enemy agents
- Procedural programming
- Referencing the patrol locations
- Moving the enemy
- Enemy game mechanics
- Seek and destroy: Changing the agent's destination
- Lowering player health
- Detecting bullet collisions.
- Updating the game manager
- Refactoring and keeping it DRY
- Pop quiz: AI and navigation
- Chapter 10: Revisiting Types, Methods, and Classes
- Access modifiers
- Constant and read-only properties
- Using static classes
- Revisiting methods
- Overloading methods
- ref parameters
- out parameters
- Intermediate OOP
- Interfaces
- Abstract classes
- Class extensions
- Namespace conflicts and type aliasing
- Pop quiz: Leveling up
- Chapter 11: Specialized Collection Types and LINQ
- Introducing stacks
- Popping and peeking
- Common methods in a stack class
- Working with queues
- Adding, removing, and peeking
- Using HashSets
- Performing set operations
- Querying data with LINQ
- LINQ basics
- Lambda expressions
- Chaining queries
- Transforming data into new types
- Simplifying with optional syntax
- Pop quiz: Intermediate collections
- Chapter 12: Saving, Loading, and Serializing Data
- Introducing data formats
- Breaking down XML
- Breaking down JSON
- Understanding the filesystem
- Working with asset paths
- Creating and deleting directories
- Creating, updating, and deleting files
- Working with streams
- Managing your stream resources
- Using StreamWriter and StreamReader
- Creating an XMLWriter
- Automatically closing streams
- Serializing data
- Serializing and deserializing XML
- Serializing and deserializing JSON
- Data roundup
- Pop quiz: Data management
- Chapter 13: Connecting to the World Wide Web
- The web request blueprint
- Creating the request manager
- Formatting a URL
- Configuring the web request
- Synchronous versus asynchronous code
- Using Unity coroutines
- Managing request responses
- Deserializing request data
- Adjusting the game lighting
- Additional web request formats
- Pop quiz: Requesting data.
- Chapter 14: Exploring Generics, Delegates, and Beyond
- Introducing generics
- Generic classes
- Generic methods
- Constraint type parameters
- Adding generics to Unity objects
- Delegating actions
- Creating a debug delegate
- Delegates as parameter types
- Firing events
- Creating and invoking events
- Handling event subscriptions
- Cleaning up event subscriptions
- Handling exceptions
- Throwing exceptions
- Using try-catch
- Pop quiz: Intermediate C#
- Chapter 15: The Journey Continues
- Diving deeper
- Remembering your object-oriented programming
- Design patterns primer
- Approaching Unity projects
- Unity features we didn't cover
- Next steps
- C# resources
- Unity resources
- Unity certifications
- Hero's trial: Putting something out into the world
- Chapter 16: Unlock Your Book'sExclusive Benefits
- How to unlock these benefits in three easy steps
- Pop Quiz Answers
- Other Books You May Enjoy
- Index.
- Notes:
- Description based on publisher supplied metadata and other sources.
- ISBN:
- 1-80580-870-2
- OCLC:
- 1539298707
- Publisher Number:
- CIPO000283370
- CIPO000283371
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.