Symbols
3D space
navigating 260
A
abstract classes 302
abstracting 122
const 288
implementing 51
internal 51
private 51
protected 51
public 51
readonly 289
reference link 288
using 50
actions
AI Navigation package
animations 169
creating, in Unity Animation window 171-174
tangents, adjusting 179
Animation window 169
Animator window 169
arithmetic operators 60
indexing 93
multidimensional arrays 94
range exceptions 95
subscripts 93
asset paths
B
bloated file 132
reference link 53
C
C#
files, syncing 18
reference link, for topics 23
reference link, for types 50
resources 411
using, with Unity 14
calling code 130
Camel Casing 58
camera behavior
C# Corner
reference link 411
Character Controller component
reference link 182
blueprints 37
communication 37
objects, instantiating 117
reference link 36
scope 59
code
collections 92
Collider component 196, 201, 202
Collider notifications
reference link 203
Collider triggers
object trail 209
used, for creating enemy 206-208
using 205
collision 201
Health_Pickup object, updating 203-205
reference link 203
combined modifiers
reference link 51
comments
adding 39
multi-line comments 39
single-line comment 38
working with 38
Component design pattern 209
composition 134
constant 288
constraint type parameters 386-388
constructor overloading 121
CRUD (Creating, Reading, Updating, and Deleting) 358
custom types 57
D
data
data formats 336
JSON (JavaScript Object Notation) 336
text 336
XML (Extensible Markup Language) 336
debug delegate
decrementing 104
defensive programming 273, 400
deferred execution 324
delegates
reference link 325
deserializing 364
design patterns 409
declaring 100
initializing 100
dictionary pairs
directories
creating 344
deleting 345
Don’t Repeat Yourself (DRY) principle 34, 122, 283, 344
Dot Net Perls
reference link 411
E
enemy
enemy agents
moving 266
enemy game mechanics 274
bullet collisions, detecting 278-280
destination, modifying of agent 274-276
game manager, updating 280-283
player health, lowering 276-278
error handling 399
events
firing 394
invoking 396
event subscriptions
exceptions
handling 399
explicit conversions 56
F
files 346
deleting 353
first-in-first-out (FIFO) model 318
looping through key-value pairs 108, 109
frames per second (FPS) 72
G
game design 146
art style 146
concept 146
control schemes 146
core mechanics 146
story 146
win and lose conditions 146
game design documents 146
Game Design Document (GDD) 146
one-page 147
Technical Design Document (TDD) 146
game levels
building 148
game manager
creating 229
item collection, upgrading 234, 235
player properties, tracking 229-231
GameObject in Unity
components, accessing 138
components, accessing in code 138-140
drag and drop functionality 141
generic class 380
conversion error 384
generic programming 379
generics 380
adding, to Unity objects 389
global scope 58
GUI, Hero Born
namespace, used for restarting game 251-256
player stats, displaying 236-246
using directives, used for pausing game 251-256
win and loss conditions, setting 246-251
H
HashSets
operations, performing 321, 322
Hero Born
game manager, creating 229
GUI, creating 236
jumps, adding 211
shooting projectiles 222
I
multiple conditions, evaluating 83-86
implicit conversions 55
incrementing 104
index 93
inferred declarations 56
inheritance 131
Input System
reference link 188
instances 117
instantiation 117
interfaces 296
iteration statements 103
J
Join GitHub
URL 413
JSON (JavaScript Object Notation) 336-339
reference link 336
K
keywords 49
kinematic movement 196
L
Language Integrated Query (LINQ) 323
data, transforming into new types 329, 330
queries 324
simplifying, with optional syntax 331, 332
last-in-first-out (LIFO) model 312
layer masks
Light component
properties 168
lighting 165
precomputed lighting 166
real-time lighting 165
Light Probe Groups 167
lights
creating 166
LINQ query comprehension syntax 331
List class methods
reference link 99
accessing 98
local scope 59
Local space 160
LTS (Long Term Support) version 5
M
match expression 87
Materials
member scope 59
memory address 28
actions 33
as arguments 71
logic detours 65
naming conventions 65
reference link 33
return values, specifying 68, 69
Microsoft Learn documentation
reference link 23
MonoBehaviour 43
in Scripting API 43
reference link, for methods 71
multidimensional arrays 94
multi-line comments 39
multiple generic types
using, in single class 384, 385
N
namespace 251
namespace conflicts 307
navigation
components 260
NavMesh
NavMeshAgent 260
NavMeshObstacle 260
non-generic method 382
non-kinematic movement 196
O
object build-up
object-oriented programming (OOP) 116, 296, 408, 409
applying, in Unity 136
composition 134
encapsulation 130
inheritance 131
object rotations and orientation, in Unity
reference link 200
objects
operators 60
arithmetic operators 60
out parameters 295
P
parent object 159
patrol locations
player movement
managing 182
with Transform component 183-185
precomputed lighting 166
Precomputed Realtime Global Illumination 166
Prefabs 161
primitives
using 148
ProBuilder tool 148
reference link 148
procedural programming 266
programming paradigm
reference link 136
protected keywords
reference link 49
Q
queues
R
readonly keyword 289
real-time lighting 165
area lights 167
directional lights 167
point lights 167
spotlights 167
refactoring 283
Reflection Probes 167
Rigidbody2D component
reference link 201
Rigidbody scripting
reference link 201
S
switch statement 86
SerializeField
reference link 138
serializing 363
shooting mechanic
shooting projectiles 222
single-line comment 38
spaghetti code 34
Stack Overflow
reference link 411
stacks
Peek method 316
Pop method 316
Standard Assets package
reference link 183
statement 46
static keyword
StreamReader
Stream resources
managing 354
streams
closing, automatically 363
StreamWriter
string 54
interpolation 54
subscript operator 93
switch pattern matching
reference link 91
switch statement 86
T
text 336
TextMeshPro
reference link 237
Transform component
player input, obtaining 187-189
using, in player movement 183-185
try-catch
type aliasing 307
type and value declarations 49
type conversions 55
explicit conversions 56
implicit conversions 55
type-only declarations 49
types 213
reference link 213
working with 52
type-safe language 52
U
UI Documents (UXML) 236
UI options
reference link 236
UI Toolkit 236
reference link 236
underlying type 213
Unity
3D space, navigating 260
class 36
C#, using with 14
documentation, accessing 19-22
homepage 3
object-oriented programming (OOP), applying 136
referencess, for video tutorial community on YouTube 411, 412
URL 3
Unity 2022
macOS, using 9
Unity Answers
Unity Asset Store
URL 413
Unity certifications 412
reference link 412
Unity Discord
Unity download archive 9
Unity Forum
Unity Hub
URL 8
Unity Learn
reference link 411
Unity methods 71
Start method 71
Update method 72
Unity objects
generics, adding to 389
Unity physics system
Collider triggers, using 205
overview 209
Unity projects
approaching 410
Unity Store
URL 3
Unity UI (uGUI) 236
reference link 236
Update method 72
using directive 251
utility function 212
V
variables
declaring 48
defining 28
example 28
names 29
reference link 28
variable scope 58
class scope 59
global scope 58
local scope 59
variable visibility 59
reference link 186
Visual Studio editor 16
naming mismatches, of C# file 17, 18
W
white-boxing 155
health pickup, creating 164, 165
World space 160
X
XML (Extensible Markup Language) 336-338
reference link 336
XMLWriter
Thanks for purchasing this book!
Do you like to read on the go but are unable to carry your print books everywhere?
Is your eBook purchase not compatible with the device of your choice?
Don’t worry, now with every Packt book you get a DRM-free PDF version of that book at no cost.
Read anywhere, any place, on any device. Search, copy, and paste code from your favorite technical books directly into your application.
The perks don’t stop there, you can get exclusive access to discounts, newsletters, and great free content in your inbox daily
Follow these simple steps to get the benefits:
18.117.188.64