This is a draft cheat sheet. It is a work in progress and is not finished yet.
MonoBehavior — Base Class of all Scripts
Most scripts attach to a game object — an object that is part of your Unity3D scene. All scripts inherit from MonoBehavior, which inherits from Object base classes. |
Event Messages
Message |
Called when ... |
UPDATE EVENTS |
|
... script is loading |
|
... script starts |
|
... every frame |
|
... every fixed framerate (best for physics) |
|
... after Update() and FixedUpdate() |
COLLISION EVENTS |
|
... object first collides with something |
|
... while this object continues colliding |
|
... when object stops colliding with something |
TRIGGER EVENTS |
|
... object has something enter its trigger area |
|
... another object remains in trigger area |
|
... another object leaves this object's trigger area |
|
|
|