How to Use correct script syntax Unity 4.3


show more Using correct script syntax provides you with in-depth training on 3D + Animation. Taught by Adam Crespi as part of the Unity 4.3 Essential Training show less
please wait ...

Using correct script syntax

Using the right syntax in your scripting is highly important. Your script simply won't work, and your game won't compile if there's error in the code. And so you need to get this right so that well, you can build the game. One of the things to do to avoid some confusion is stick with one kind of scripting wherever possible. For example, if you start in C sharp, stay with C sharp. If you're running JavaScript, run JavaScript all the way through. Consistency will help, because that way the term, syntax and naming is the same in every script.

Although, you can mix and we often do see a mix. For example, on the first person controller. I'd highly recommend that you stay in one language. We can see that out first person controller has a C sharp and three Java's on it. I'll open up one of the scripts that comes with Unity, deactivate trigger and look a little bit at the syntax. And see why this is such a big deal. In the assets, I'll go under Standard Assets and then into Scrip...

Using correct script syntax
Video duration: 6m 33s 6h 49m Beginner

Viewers:

Using correct script syntax provides you with in-depth training on 3D + Animation. Taught by Adam Crespi as part of the Unity 4.3 Essential Training

Subjects:
3D + Animation Developer
Software:
Unity
Author:
please wait ...