Created
December 27, 2017 01:03
-
-
Save JeOam/9db92dbbfa346c9681881d7da86d3a9e to your computer and use it in GitHub Desktop.
Unity Notes
A Prefab
is a template GameObject that we can make copies of.
All GameObjects have a Transform
component`. The Transform component holds data about where the GameObject is in the Scene, how it rotated and how it scaled.
Update
vs FixedUpdate
vs LateUpdate
:
Update()
:
- Called Every Frame
- Used for regular updates such as: Moving Non-Physics objects, Simple Timers, Receiving Input
- Update interval times vary
FixedUpdate()
:
- Call Every Physics Step
- Fixed Update intervals are consistent
- Used for regular updates such as: Adjusting Physics (Rigidbody) objects
LateUpdate()
:
- Called after all Update functions have been called.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Building games in Unity using
GameObjects
andcomponents
.Everything we can see in Unity IDE's Scene is a
GameObject
. GameObjects are the building blocks of Unity. A GameObject on its own doesn't do anything. We add things calledcomponents
to GameObjects to change how they look and behave. A component tell Unity what the GameObject does, such as move or make a sound.