๐ŸŽฎ Unity Game Engine Basics

High School Student Notes

๐ŸŽฏ What is Unity?

๐Ÿ–ฅ๏ธ What is a Game Engine?

A game engine is software that provides tools to build games.

๐Ÿงฑ Core Unity Concepts

Scene

A level or screen in your game (Main Menu, Level 1, Game Over).

GameObject

Everything in Unity is a GameObject (Player, Enemy, Camera, Light).

Component

Components give GameObjects behavior (Rigidbody, Collider, Script).

Transform

๐Ÿง  Unity Interface Overview

โš™๏ธ Prefabs

A reusable GameObject template. Update once, apply everywhere.

๐Ÿงฎ Physics Basics

๐Ÿ’ป Scripting in Unity (C#)

Scripts control movement, input, and game logic.


void Update()
{
    transform.Translate(Vector3.forward * Time.deltaTime);
}

๐ŸŽฎ Player Input


Input.GetKey(KeyCode.W);

Detects keyboard, mouse, controller, or touch input.

๐ŸŽจ 2D vs 3D

๐Ÿ’ก Basic Game Development Workflow

  1. Create Scene
  2. Add GameObjects
  3. Add Components
  4. Write Scripts
  5. Test
  6. Debug
  7. Build/Export

๐Ÿงช Debugging

๐Ÿš€ Build Platforms

๐Ÿงฉ Important Vocabulary

TermMeaning
SceneA level or screen
GameObjectAny object in game
ComponentAdds behavior
ScriptC# code
PrefabReusable object
RigidbodyPhysics component
ColliderDetects collisions

๐ŸŽฏ Why Learn Unity?

๐Ÿง  Quick Check Questions

  1. What is a GameObject?
  2. What does Transform control?
  3. What method runs every frame?
  4. What component enables physics?
  5. What is a Prefab?