Unity3d Study Notes

FixedUpdate

(Also called physics step)

Runs with physics
1. Input.GetAxis will return a value between 0 and 1
2. Input.GetAxisRaw will return a value -1, 0, 1

NormalUpdate

Runs with rendering

Axis

Axes are actually inputs.

GetComponent<>()

This is a constructor that returns the reference of a component object of the same GameObject that this class attached on by type name.

Leave a Reply

Your email address will not be published. Required fields are marked *