A B C D E F G H I J K L M N O P R S T U V W X
Add Grass Texture dialog, 67
Add Key frame (Animation window), 282
Add Terrain Texture dialog, 59
Add Tree dialog, 65
Albedo property (shader), 44
Alt Negative Button/Alt Positive Button property (axis), 147
concept, 104
game control objects, adding, 109-111
disappearing joystick fixing, 370-371
Angular Drag property (rigidbody), 162
Animation Clip Dropdown (Animation window), 282
Animation property (Texture module), 269
3D artists, 277
models, preparing for, 276-277
preparation, 298
timing, 285
animation preparation, 298
idle animation, 298-300, 308-309
apps, Unity Remote, 355
area lights, 86
bouncy material, 178
Aspect drop-down menu (Game view), 16
asset packages, 6
assets, 8
configuring, animators, 296-305
importing, 78
terrain, 64
assignment operators, 131
changing clips, 349
priorities, 342
starting and stopping, 347-348
Audio Clip property (audio source), 341
audio clips, importing, 342
Audition mode (Scene view), 13
axis
rotation, 29
Axis property (axis), 148
background, Captain Blaster, 240-241
Background property (cameras), 91
baking objects, 83
Baking property (point lights), 82
base terrain settings, 69
Best Fit property (text objects, UIs), 226
billboards, 67
blocks, methods, 143
bool variable, 128
Bounce Combine property (physics material), 166
Bounce Intensity property (point lights), 82
Bounce property (Collision module), 266
Bounciness property (physics material), 166
bouncy material, Chaos Ball arena, 178
Box Collider 2D, 213
breaking prefabs, 197
bugs, halos
Build Settings dialog, 387-388
built-in methods, 127
built-in objects, 25
bullets, Captain Blaster, 245
Bursts property (Emission module), 262
buttons
Bypass Effects property (audio source), 341
Bypass Listener Effects property (audio source), 341
Bypass Reverb Zones property (audio source), 341
adding skyboxes to, 71
falling through the world, 77
size of, 205
screen-space, 231
adding, 218
components, 223
EventSystem game object, 218
screen-space camera, 231
Canvas Scaler, 223
bullets, 245
requirements, 238
rules, 238
DestroyOnTrigger script, 251
improvements, 255
triggers, 246
script, 251
Cast Shadows property (Renderer module), 270
Center property (colliders), 164
bouncy material, 178
concept, 174
requirements, 174
rules, 174
improving, 187
adding, 108
char variable, 128
Circle Collider 2D, 213
class declaration section, scripts, 125-126
Clear Flags property (cameras), 91
Clipping Planes property (cameras), 91
code. See also scripts
comments, 126
scripting, 119
basic, 125
class declaration section, 125-126
Game Control Script, 186
using section, 125
VelocityScript.cs, 182
code listings
Default Script Code, 125
Demonstration of Class and Local Block Level, 129
Game Control Script, 186
VelocityScript.cs, 182
collaborative groups, 396
complex, 165
interaction matrix, 169
Mesh, 165
mixing and matching, 164
properties, 164
depth, 214
Collides With property (World mode), 267
Collision Detection property (rigidbody), 162
Collision module (particle system), 266-268
Collision Quality property (World mode), 267
Color by Speed module (particle system), 264-265
Color over Lifetime module (particle system), 264
Color property ( images, UIs), 224
Color property (Color by Speed module), 265
Color property (point lights), 82
comments, 126
concept
Amazing Racer, 104
Chaos Ball, 174
Gauntlet Runner, 317
Console window (editor), 126-127
Constraints property (rigidbody), 162
controllers
control objects, Chaos Ball, 183-187
controls
particle systems, 259
Cookie property (point lights), 82
world versus local coordinates, 24-25
Create New Project dialog, 6, 175-176
projects to mobile conversion, 366-368
cross-platform settings, players, 384-385
Culling Mask property (cameras), 91
Culling Mask property (point lights), 83, 98
Current Frame (Animation window), 282
curve editor, particle systems, 270-272
curves editor, animations, 287-288
C# variable types, 128
Cycles property (Texture module), 269
Dampen property (Collision module), 266
Dampen property (Limit Velocity over Lifetime module), 263
data
Dead property (axis), 148
default particle system, 261-262
Default Script Code listing, 125
deltaPosition property (touch), 359
deltaTime property (touch), 359
Demonstration of Class and Local Block Level listing, 129
Depth property (cameras), 92
Descriptive Name/Descriptive Negative Name property (axis), 147
design
concept, 104
requirements, 238
rules, 238
concept, 174
requirements, 174
rules, 174
concept, 317
requirements, 318
rules, 318
UI, 217
DestroyOnTrigger script, Captain Blaster, 251
detail object settings, 70
dialogs
Add Grass Texture, 67
Add Terrain Texture, 59
Add Tree, 65
Create New Project, 6, 175-176
world versus local coordinates, 24-25
cookies, 89
disappearing grass, 68
documentation, 396
Doppler Level property (3D audio), 346
downloading
Drag property (rigidbody), 162
Draw Halo property (point lights), 82
Draw mode (Scene view), 13
in layer, 212
dual touch, 371
Duration property (particle system), 261
Dynamic Friction property (physics material), 166
Dynamic Friction 2 property (physics material), 166
Edge Collider 2D, 213
Edit Collider property (colliders), 164
effects
fog, 73
particles, 259
Emission module (particle system), 262
emissive materials, 86
emitter versus particle settings, 268
environments, 63, 78. See also terrain; worlds
adding, 107
billboards, 67
fog, 73
grass
disappearing, 68
realistic, 68
mobile development, setting up, 354-355
trees
wind settings, 70
EventSystem game object, 218
External Forces module (particle system), 265
factories, methods, 143
Field of View property (cameras), 91
fingerId property (touch), 360
first project, creating, 5
Flare property (point lights), 83
float variable, 128
Flythrough mode (Scene view), 18-19
fog, 73
Force over Lifetime module (particle system), 264
for loop, 137
formats, heightmaps, 54
Friction Combine property (physics material), 166
Friction Direction 2 property (physics material), 166
game control
game controller
game control objects, adding, 109-111
Game Control script, Gauntlet Runner, 330-332
Game Control Script listing, 186
game overlay (Scene view), 14
games
connecting scripts together, 113-114
game control objects, adding, 109-111
bullets, 245
improvements, 255
triggers, 246
improving, 187
creating, 396
oject, 5
improvement, 335
move script, 333
obstacles, 322
trigger zone, 322
organization, 9
challenges, 202
design principles, 201
rigidbody, 212
writing about, 396
concept, 317
requirements, 318
rules, 318
improvement, 335
obstacles, 322
move script, 333
trigger zone, 322
script, 329
Geometric properties (colliders), 164
gizmo (scene), 14
Gizmos button (Game view), 16
Gizmo selector (Scene view), 14
GoalScript.cs listing, 184-185
Graphical Raycaster, 223
grass
disappearing, 68
realistic, 68
Gravity Modifier property (particle system), 262
Gravity property (axis), 148
ground, Gauntlet Runner, 319
HDR property (cameras), 92
heightmaps
formats, 54
Horizontal and vertical Overflow property (text objects, UIs), 226
idle animation, 298-300, 308-309
if/else statement, 134
properties, 224
importing
assets, 78
audio clips, 342
sprites, 206
Importing Packages dialog, 57-58
inheritance, prefabs, 190, 196-197
Inherit Velocity property (particle system), 262
input
projects to mobile conversion, 366-368
multi-touch, mobile devices, 359-361
curve editor, 271
rig preparation, 296
instances, prefabs, 190
adding to scenes, 195
Instantiate() method, 197
instantiating prefabs through code, 197
Intensity property (point lights), 82
Interactable property (buttons, UIs), 226
Interpolate property (rigidbody), 162
int variable, 128
Invert property (axis), 148
invisible items, scenes, 97
Is Kinematic property (rigidbody), 162
Is Trigger property (colliders), 164
for loop, 137
while loop, 136
Joy Num property (axis), 148
key codes, 149
Key frames (Animation window), 282
lakes, creating, 75
order in, 212
overloading, 95
Layout drop-down menu, 17
license, Unity, activating, 1-3
Lifetime Loss property (Collision module), 266
lighting scenes, 13
area, 86
baking objects, 82
creating out of objects, 86
repeat properties, 81
Limit Velocity over Lifetime module (particle system), 263
listings
Default Script Code, 125
Demonstration of Class and Local Block Level, 129
Game Control Script, 186
VelocityScript.cs, 182
local components, accessing, 151-153
local coordinates, versus world coordinates, 24-25
Looping property (particle system), 261
Loop property (audio source), 342
loops
for, 137
while, 136
maps, heightmaps
formats, 54
Mass property (rigidbody), 162
Material property ( images, UIs), 224
Material property (colliders), 164
Material property (Renderer module), 270
emissive, 86
UIs, 225
Max Distance property (3D audio), 346
Maximize on Play button (Game view), 16
Max Particles (particle system), 262
Max Particle Size property (Renderer module), 270
Mesh colliders, 165
meshes
versus models, 36
scaling of, 39
simple modeling, 37
Metallic property (shader), 44
meteors, Captain Blaster, 244-245
blocks, 143
built-in, 127
as factories, 143
identifying parts, 143
Instantiate(), 197
names, 142
OnGUI(), 361
return type, 142
Min Distance property (3D audio), 346
minimum requirements, Unity, 3
Min Kill Speed property (Collision module), 266
environments, setting up, 354-355
Unity Remote app, 355
mobile devices
multitudes of, 354
testing, 356
applying textures, shaders, and materials, 45-46
versus meshes, 36
model asset workflow, 41
preparing for animation, 276-277
modules, particle systems, 259-270
Color over Lifetime, 264
Emission, 262
External Forces, 265
Force over Lifetime, 264
Limit Velocity over Lifetime, 263
Rotation by Speed, 265
Rotation over Lifetime, 265
shape, 263
Size by Speed, 265
Size over Lifetime, 265
Sub Emitter, 269
Texture Sheet, 269
Velocity over Lifetime, 263
move script, Gauntlet Runner, 333
multiple skyboxes, cameras, 71
multi-touch input, mobile devices, 359-361
mute audio button, 344
Mute property (audio source), 341
Name property (axis), 147
names, methods, 142
Navigation property (buttons, UIs), 227
Negative Button/Positive Button property (axis), 147
nested objects, transformations, 32-33
nesting, 11
Normal Direction property (Renderer module), 270
Normalized View Port Rect property (cameras), 91
Normal Map property (shader), 44
objects, 21, 25. See also specific objects
baking, 83
built-in, 25
consolidating, 176
creating lights out of, 86
detail settings, 70
EventSystem, 218
game control, adding, 109-111, 334-335
overloading, 95
modifying components, 157
nested, transformations, 32-33
prefabs, 189
breaking, 197
instances, 190
instantiating through code, 197
target, transforming, 157
textures, 41
transforming, 153
obstacles, Gauntlet Runner, 322
Occlusion Culling property (cameras), 92
Offset property (shader), 44
On Click () property (UIs), 227-229
OnGUI() method, 361
operating systems, supported, 3
assignment, 131
order, in layer, 212
order, scenes, establishing, 380-381
organization, projects, 9
size of, 205
Output property (audio source), 341
painting
textures, terrain, 60
parameter list, methods, 142-143
parameters, animators, 309-310
Particle Radius property (Plane mode), 266
particles, 257
effects, 259
particle settings versus emitter, 268
controls, 259
creating, 258
Color over Lifetime, 264
Emission, 262
External Forces, 265
Force over Lifetime, 264
Limit Velocity over Lifetime, 263
Rotation by Speed, 265
Rotation over Lifetime, 265
shape, 263
Size by Speed, 265
Size over Lifetime, 265
Sub Emitter, 269
Texture Sheet, 269
Velocity over Lifetime, 263
particles, 257
Pause button (Game view), 15
per-platform settings, players, 385-387
persisting objects, 382
phase property (touch), 360
physics
rigidbody, 212
Pitch property (audio source), 342
Planes property (Plane mode), 266
Planes/World property (Collision module), 266
Play button (Game view), 15
player input
PlayerPrefs file, saving data to, 382-383
players
Play On Awake property (audio source), 342
Play On Wake property (particle system), 262
playtesting Amazing Racer, 114-115
scenes, adding to, 83
points, 23
Polygon Collider 2D, 213
position property (touch), 360
power up, Gauntlet Runner, 321-322
script, 333
breaking, 197
instances, 190
adding to scenes, 195
instantiating through code, 197
Preserve Aspect property (images, UIs), 224
Preview (Animation window), 282
Prewarm property (particle system), 261
priorities, audio, 342
Priority property (audio source), 342
Projection property (cameras), 91
projects. See also games
creating first, 5
organization, 9
properties
Animation window, 282
character controllers, 77
colliders, 164
Collision module, 266
Color by Speed module, 265
Emission module, 262
fog, 73
image component (UI), 224
lights, 81
Limit Velocity over Lifetime module, 263
physics materials, 166
Place Tree tool, 65
Plane mode, 266
Renderer module, 270
rigidbodies, 162
shader, 44
text objects (UIs), 226
Texture module, 269
touch, 359
Velocity over Lifetime module, 263
World mode, 267
Range property (point lights), 82
Rate property (Emission module), 262
reading
mouse movement, 151
specific key presses, 150
realistic grass, 68
Receive Shadows property (Renderer module), 270
Record Mode (Animation window), 282
Record Mode, animations, 285-287
Rect Transform, of canvas, 218-219, 220
Rect Transform Tool, 208
Renderer module (particle system), 269-270
Rendering Path property (cameras), 92
Render mode (Scene view), 13
Render Mode, canvas (UIs), 230-232
screen-space camera, 231
Render Mode property (point lights), 83
Render Mode property (Renderer module), 270
requirements
Captain Blaster, 238
Chaos Ball, 174
Gauntlet Runner, 318
return type, methods, 142
Reverb Zone Mix property (audio source), 342
disappearing joystick fixing, 370-371
projects to mobile conversion, 366-368
Rich Text property (text objects, UIs), 226
rigging models, animators, 293-296
properties, 162
2D, 212
rig preparation, animators, 296-298
Rotation by Speed module (particle system), 265
Rotation over Lifetime module (particle system), 265
rules
Captain Blaster, 238
Chaos Ball, 174
Gauntlet Runner, 318
Samples (Animation window), 282
Scale Plane property (Plane mode), 266
character controllers, adding to, 76-78
directional lights, adding to, 85-86
fog, adding to, 73
gizmo, 14
invisible items, 97
lens flares, adding to, 74
lighting, 13
point lights, adding to, 83
prefabs instances, adding to, 195
spotlights, adding to, 85
switching, 381
scope, variables, 129
screen-space camera, 231
accessing local components, 151-153
language, 120
modifying object components, 157
assignment, 131
basic, 125
Captain Blaster
DestroyOnTrigger, 251
triggers, 251
class declaration section, 125-126
Game Control Script, 186
Gauntlet Runner
move script, 333
trigger zone, 329
using section, 125
VelocityScript.cs, 182
Scrubber (Animation window), 282
sculpting
Send Collision Messages property (Collision module), 266
Sensitivity property (axis), 148
Separate Axis property (Limit Velocity over Lifetime module), 263
Set Native Size property (images, UIs), 224
properties, 44
Shadow Type property (point lights), 82
shape module (particle system), 263
Shininess property (shader), 44
ShipControl script, Captain Blaster, 252-253
Simulation Space property (particle system), 262
Size by Speed module (particle system), 265
Size over Lifetime module (particle system), 265
Size property (colliders), 164
cameras, adding to, 71
Smoothness property (shader), 44
Snap property (axis), 148
Sorting Fudge property (Renderer module), 270
Sort Order property (Renderer module), 270
Source Image property ( images, UIs), 224
Space property (Velocity over Lifetime module), 263
Spatial Blend property (audio source), 342
spawn script, Gauntlet Runner, 333-334
specific key presses, reading, 150
Speed property (Limit Velocity over Lifetime module), 263
Speed Range property (Color by Speed module), 265
Spread property (3D audio), 346
sprites, 2D games
importing, 206
missing, 212
textures, 206
Start Color property (particle system), 261
Start Delay property (particle system), 261
Start Lifetime property (particle system), 261
Start Rotation property (particle system), 262
Start Speed property (particle system), 261
statement
if/else, 134
Static Friction property (physics material), 166
Static Friction 2 property (physics material), 166
Stats button (Game view), 16
Step button (Game view), 15
Stereo Pan property (audio source), 342
string variable, 128
Sub Emitter module (particle system), 269
supported operating systems, 3
switching scenes, 381
syntax, 128
tabs, adding, 7
Tag Manager, adding new layers to, 96-97
tapCount property (touch), 360
target objects, transforming, 157
Target Texture property (cameras), 92
terrain, 49, 61. See also environments
assets, 64
base, settings, 69
flattening, 55
size, 51
creating, 61
painting, 60
testing
Amazing Racer, playtesting, 114-115
2D, 346
mobile devices, 356
properties, 226
Text property (text objects, UIs), 226
baking objects, 83
cookies, 89
grass, 67
sprite, 206
creating, 61
painting, 60
Texture Sheet module (particle system), 269
texturing Chaos Ball arena, 177-178
3D artists, animations, 277
3D objects, 22
3D scene view, 13
3D Sound Settings property (audio source), 342
Tiles property (Texture module), 269
Tiling property (shader), 44
Timeline (Animation window), 282
timing, animations, 285
tools
2D games (See 2D games)
Place Tree, 65
Rect Transform, 208
transform, 16
touch
multi-touch input, mobile devices, 359-361
transformations
transform component, 26
Transform gizmo toggles, 16
transform tools, 16
Rect, 208
Transition property (buttons, UIs), 227
transitions, animators, 312-314
trees
settings, 70
triangles, 36
triggers
Captain Blaster, 246
script, 251
trigger zone, Gauntlet Runner, 322
script, 329
importing, 206
challenges, 202
design principles, 201
in layer, 212
rigidbody, 212
2D objects, 22
2D scene view, 13
Type property (axis), 148
Type property (point lights), 82
UIs. See user interfaces (UIs)
Unity
2D colliders, 213
minimum requirements, 3
modifying public variables in, 129-130
Unity particle systems, 257-258
unwrap texture, 42
Use Gravity property (rigidbody), 162
user input. See player input
user interfaces (UIs), 217-232
adding, 218
components, 223
EventSystem game object, 218
design, 217
sorting, 230
materials, 225
using section, scripts, 125
value curve, 261
creating, 128
scope, 129
Velocity over Lifetime module (particle system), 263
VelocityScript.cs listing, 182
View Port Rect property (cameras), 91
views
duplicating, 7
curve editor, 271
rig preparation, 296
virtual control system, 365-366
Visualization property (Plane mode), 266
Volume property (audio source), 342
Volume Rolloff property (3D audio), 346
Voxel Size property (World mode), 267
while loop, 136
wind, settings, 70
world coordinates, versus local coordinates, 24-25
worlds
XYZ property (Velocity over Lifetime module), 263