Skip to content

Instantly share code, notes, and snippets.

@h4k1m0u
Last active May 13, 2023 19:21
Show Gist options
  • Save h4k1m0u/c9191fdc7d2b90db23032e7dd3e968ba to your computer and use it in GitHub Desktop.
Save h4k1m0u/c9191fdc7d2b90db23032e7dd3e968ba to your computer and use it in GitHub Desktop.
Basic notions in Unity

Unity editor

  • Project (bottom): Game assets (sprites, sounds, scripts, fonts...)
  • Hierarchy (left): Assets in scene (i.e. current level)
  • Inspector (right): Edit game object (position, rotation, scale, and to add components)
  • Coordinate system: Left-handed with y-up

Notions

  • Game objects: Scene objects (characters, props, scenery, camera...)
  • Components: Functional part of a game object, e.g. SpriteRenderer (A game objects can have multiple components)
  • Script class: Blueprint for creating a new component
  • Prefab: Game object with its components (better for instancing)

Scripts

  • Coroutine: Function executed over multiple frames

Physics

  • Rigid body: Component that allows a game object to be affected by gravity & other forces
  • Collider: A component that defines object's physical shape for the purpose of collisions
  • Kinematic Rigid body: is not affected by gravity & forces, its motion being controlled by transform variable or by animation

Resources

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