Hour 8. Scripting Part 1

What You’ll Learn in This Hour:

• The basics of scripts in Unity

• How to use variables

• How to use operators

• How to use conditionals

• How to use loops

You have learned how to make objects in Unity so far, however those objects have been a bit boring. How useful is a cube that just sits there? It would be much better to give the cube some custom action to make it interesting in some way. What you need are scripts. Scripts are files of code that are used to define complex or non-standard behaviors for objects. In this hour you will be learning about the basics of scripting. You will begin by looking at how to start working with scripts in Unity. You will learn how to create scripts and use the scripting environment. ...

Get Unity Game Development in 24 Hours, Sams Teach Yourself® now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.