Limit search to available items
Book Cover
E-book
Author Ferrone, Harrison, author.

Title Learning C# by developing games with Unity 2020 : an enjoyable and intuitive approach to getting started with C# programming and Unity / Harrison Ferrone
Edition Fifth edition
Published Birmingham : Packt Publishing, 2020

Copies

Description 1 online resource : illustrations
Contents Cover -- Title Page -- Copyright and Credits -- Dedication -- About Packt -- Contributors -- Table of Contents -- Preface -- Chapter 1: Getting to Know Your Environment -- Technical requirements -- Getting started with Unity 2020 -- Using macOS -- Creating a new project -- Navigating the editor -- Using C# with Unity -- Working with C# scripts -- Introducing the Visual Studio editor -- Time for action - opening a C# file -- Beware of naming mismatches -- Syncing C# files -- Exploring the documentation -- Accessing Unity's documentation -- Time for action - opening the Reference Manual
Time for action - using the Scripting Reference -- Locating C# resources -- Time for action - looking up a C# class -- Summary -- Pop quiz -- dealing with scripts -- Chapter 2: The Building Blocks of Programming -- Defining variables -- Names are important -- Variables act as placeholders -- Time for action -- creating a variable -- Time for action -- changing a variable's value -- Understanding methods -- Methods drive actions -- Methods are placeholders too -- Time for action -- creating a simple method -- Introducing classes -- A common Unity class -- Classes are blueprints
Working with comments -- Practical backslashes -- Multi-line comments -- Time for action -- adding comments -- Putting the building blocks together -- Scripts become components -- A helping hand from MonoBehavior -- Hero's trial -- MonoBehavior in the Scripting API -- Communication among classes -- Summary -- Pop quiz -- C# building blocks -- Chapter 3: Diving into Variables, Types, and Methods -- Writing proper C# -- Debugging your code -- Declaring variables -- Type and value declarations -- Type-only declarations -- Using access modifiers -- Choosing a security level
Time for action - making a variable private -- Working with types -- Common built-in types -- Time for action -- playing with different types -- Time for action -- creating interpolated strings -- Type conversions -- Inferred declarations -- Custom types -- Types roundup -- Naming variables -- Best practices -- Understanding variable scope -- Introducing operators -- Arithmetic and assignments -- Time for action -- executing incorrect type operations -- Defining methods -- Basic syntax -- Modifiers and parameters -- Time for action -- defining a simple method -- Naming conventions
Methods are logic detours -- Specifying parameters -- Time for action -- adding method parameters -- Specifying return values -- Time for action -- adding a return type -- Using return values -- Time for action -- capturing 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 -- Basic syntax -- Time for action - thieving prospects -- Using the NOT operator -- Nesting statements
Summary This fifth edition of the popular C# guide helps you learn the building blocks of 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# knowledge using game development examples
Notes Table of ContentsGetting to Know Your EnvironmentThe Building Blocks of ProgrammingDiving into Variables,Types, and MethodsControl Flow and Collection TypesWorking with Classes, Structs, and OOPGetting Your Hands Dirty with UnityMovement, Camera Controls, and CollisionsScripting Game MechanicsBasic AI and Enemy BehaviorRevisiting Types, Methods, and ClassesIntroducing Stacks, Queues and HashSetsExploring Generics, Delegates, and BeyondThe Journey Continues
Bibliography Includes bibliographical references
Notes Description based on CIP data; resource not viewed
SUBJECT Unity (Electronic resource) http://id.loc.gov/authorities/names/n2011038776
Unity (Electronic resource) fast
Subject Video games -- Programming.
Three-dimensional display systems.
C# (Computer program language)
three-dimensional.
COMPUTERS / Software Development & Engineering / Computer Graphics.
COMPUTERS / Programming / Games.
COMPUTERS / Languages / C#.
C# (Computer program language)
Video games -- Programming
Three-dimensional display systems
Form Electronic book
ISBN 9781800204447
1800204442
1800207808
9781800207806