Show Menu
Cheatography

C# and Unity - The Basics Cheat Sheet (DRAFT) by

Basic scripting reminder in C# for Unity

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Unity Execution Order

void Awake ()
void OnEnable ()
void Start ()
void FixedU­pdate ()
void Update ()
void LateUpdate ()
void OnDisable ()
void OnDestroy ()

Controller / Movement

Transl­ation
transf­orm.Tr­ans­late(x, y, z)
Rotation
transf­orm.Ro­tate(x, y, z)
Rotate Around
transf­orm.Ro­tat­eAr­ound(x, y, z)
Look
transf­orm.Lo­okA­t(t­arget)