Skip to Main Content
Learn Unity 3D Programming with UnityScript: Unity's JavaScript for Beginners
book

Learn Unity 3D Programming with UnityScript: Unity's JavaScript for Beginners

by Janine Suvak
August 2014
Beginner content levelBeginner
424 pages
10h 23m
English
Apress
Content preview from Learn Unity 3D Programming with UnityScript: Unity's JavaScript for Beginners

Chapter     4

Using Scripts and the GameObject

Now that you have programming basics under your belt and a good grasp on the Unity editor and accompanying developer tools, it’s time to introduce scripting to the game scene.

Scripts work hand-in-hand with the Unity game engine. Your scripts customize game object behaviors using the classes, functions, and variables of the Unity API. You’ve already seen when you create a new project, Unity creates a very basic, functional game that consists of one empty scene. Similarly, when you create a new script, Unity populates it with an empty Start() and Update() function.

The Unity game engine does a lot of work behind the scenes. It runs the Start() and Update() functions on every game object whether you ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Unity 3D

Learning Unity 3D

Robert Wiebe
Unity 3D Game Development

Unity 3D Game Development

Anthony Davis, Travis Baptiste, Russell Craig, Ryan Stunkel

Publisher Resources

ISBN: 9781430265870Purchase book