Basic Scripting

From __space Wiki
Revision as of 14:50, 22 May 2017 by Steph (talk | contribs) (Created page with "With Unity you can use javascirpt, c#, or boo, and while the 3 are pretty similar, there are some major differences. I'm only going to talk about c# here as that is what most...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

With Unity you can use javascirpt, c#, or boo, and while the 3 are pretty similar, there are some major differences. I'm only going to talk about c# here as that is what most Unity users use and the language you will find the most helpful online answers for. If you don’t already know C#, please go learn it first. A good c# tutorial. This scripting guide can be skipped to come back to later, but it is highly suggested that you go through this material at some point.

Detecting keyboard input

Vector and transform manipulation

Timing

Start

Update

Awake

FixedUpdate

Getting components and their attributes from gameObjects

(use a light as an example)

Empty Game Objects

They're actually kind of useful! You can put scripts on them and make it a kind of "manager" of the rest of the objects in the scene. So all the scripts can be in one place if you want and that might make things easier.

Colliders