O'Reilly logo

Unity Game Development in 24 Hours, Sams Teach Yourself® by Mike Geig

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required