Docs

Unity

Common MonoBehaviour patterns and shortcuts.

Lifecycle

Awake()
Once, before Start
Start()
Once, before first frame
Update()
Every frame
FixedUpdate()
Physics step
OnDestroy()
On removal

Common API

GetComponent<Rigidbody>()
Get a component
Instantiate(prefab, pos, rot)
Spawn an object
Destroy(go, 2f)
Destroy after delay
Time.deltaTime
Frame time
Vector3.Lerp(a, b, t)
Interpolate

Editor shortcuts

Ctrl+P
Play / stop
Ctrl+D
Duplicate
F
Frame selected
Ctrl+Shift+N
New empty GameObject