Learning C# by Developing Games with Unity 2021 : Kickstart Your C# Programming and Unity Journey by Building 3D Games from Scratch, 6th Edition.
This sixth edition of the popular C# guide helps you learn the building blocks of the C# language, right from variables to classes and exception handling. After getting to grips with the basics of C# programming, it takes you through the world of Unity game development and how you can apply C# knowl...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing, Limited,
2021.
|
Edición: | 6th ed. |
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- Cover
- Copyright
- Contributors
- Table of Contents
- Preface
- Chapter 1: Getting to Know Your Environment
- Technical requirements
- Getting started with Unity 2021
- Using macOS
- Creating a new project
- Navigating the editor
- Using C# with Unity
- Working with C# scripts
- Introducing the Visual Studio 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
- Hero's trial
- MonoBehaviour in the Scripting API
- Summary
- 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 types
- Common built-in types
- Type conversions
- Inferred declarations
- Custom types
- Naming variables
- Understanding variable scope
- Introducing operators
- Arithmetic and assignments
- Defining methods
- Declaring methods
- Naming conventions
- 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
- Summary
- 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
- The switch statement
- Pattern matching
- Fall-through cases
- Pop quiz 1
- if, and, or but
- Collections at a glance
- Arrays
- Indexing and subscripts
- Range exceptions
- Lists
- Accessing and modifying lists
- Dictionaries
- Working with dictionary pairs
- Pop quiz 2
- all about collections
- Iteration statements
- for loops
- foreach loops
- Looping through key-value pairs
- while loops
- To infinity and beyond
- Summary
- Chapter 5: Working with Classes, Structs, and OOP
- Introducing OOP
- Defining classes
- 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