Skip to content

Instantly share code, notes, and snippets.

@JeOam
Created December 27, 2017 01:03
Show Gist options
  • Save JeOam/9db92dbbfa346c9681881d7da86d3a9e to your computer and use it in GitHub Desktop.
Save JeOam/9db92dbbfa346c9681881d7da86d3a9e to your computer and use it in GitHub Desktop.
Unity Notes
@JeOam
Copy link
Author

JeOam commented Dec 27, 2017

Building games in Unity using GameObjects and components.

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 called components to GameObjects to change how they look and behave. A component tell Unity what the GameObject does, such as move or make a sound.

@JeOam
Copy link
Author

JeOam commented Dec 27, 2017

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.

@JeOam
Copy link
Author

JeOam commented Dec 28, 2017

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.

@JeOam
Copy link
Author

JeOam commented Jan 15, 2018

@JeOam
Copy link
Author

JeOam commented Jan 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment