Unity Simple Docs

A beginner-friendly rewrite of the Unity documentation. Every page explains what an API does, shows how to use it with a working example, and describes what actually happens while your game is running.

Disclaimer: AI-assisted content

The pages on this site were written with the help of AI, which was used to interpret and simplify the official Unity documentation. We try to keep everything accurate, but simplification can leave out details and mistakes are possible.

This site is not a replacement for the official docs. When something matters (exact behavior, edge cases, newer versions), check the original sources:

This is an unofficial community project and is not affiliated with Unity Technologies.

Which Unity version?

Examples target Unity 6 and use C#. The pages assume you know basic C# (variables, methods, classes, if statements) but are new to Unity. Most of it also works in Unity 2021 and 2022. When a name changed in Unity 6 (for example Rigidbody.velocity became Rigidbody.linearVelocity), the page says so.

New to Unity? Start here

Read these in order. Each one builds on the last.

  1. What is Unity?: GameObjects, Components, Scenes and the Editor windows
  2. Your First Script: write a C# script and attach it to an object
  3. Script Lifecycle: when Unity calls Awake, Start, Update and the others
  4. Prefabs & Spawning: reusable objects and Instantiate
  5. Coroutines: waiting and doing things over time
  6. Physics Basics: Rigidbodies, Colliders and triggers
  7. Handling Input: keyboard, mouse and gamepad

C# for Unity

The C# language features you'll meet in Unity code, each explained with Unity examples.

Value & Reference Types

Why transform.position.x = 5 doesn't compile.

Types & Type Checking

GetType, typeof, is, as and casting.

Exceptions & try/catch

Handling errors, and what those red Console messages mean.

Iterators & yield

The C# feature coroutines are built on.

Delegates & Events

Action, Func, lambdas and event.

async & await

Waiting without coroutines, with Unity 6's Awaitable.

Also: Fields, Properties & Modifiers, Inheritance & Interfaces, Null, Generics, Collections, LINQ, Enums, Strings, Extension Methods, Attributes.

Tutorials

Step-by-step builds of real game features. Each one ends with something you can play.

UnityEvents in a Game

Pressure plates, doors, health bars and a game-over screen, connected in the Inspector.

Using the Input System

Keyboard and gamepad movement, dash, pause menu, button prompts and key rebinding.

ScriptableObjects in a Game

Enemy types, shared health, event channels and wave tracking without singletons.

Game Feel with DOTween

Bobbing pickups, coin pops, squishy buttons, sliding menus and screen shake.

HLSL & Shaders

Your First HLSL Shader

Write a small shader that puts a texture on a shape and tints it, and learn what each part does.

Camera-facing Billboards

Make a flat picture always turn to face the camera, for trees, sprites and name tags.

Guides

Building Systems

Performance

API Reference

Matrix4x4

Use one value to describe where a shape goes, which way it turns, and how big it is.

GameObject

Every object in your scene. Find, activate and add components.

MonoBehaviour

The base class for your scripts. Update loops, events and coroutines.

Transform

Position, rotation, scale and parent/child relationships.

Object

Spawning with Instantiate and removing with Destroy.

Vector3

Positions, directions and distances in 3D.

Quaternion

Rotations without the headache.

Rigidbody

Make objects move with physics: forces, gravity and velocity.

Physics

Raycasts and overlap checks. "Is there something there?"

Time

deltaTime, pausing the game and slow motion.

SceneManager

Load levels, menus and loading screens.

Animator

Control animations from code.

PlayerPrefs

Save simple settings and high scores.

UnityEvent

Events you can connect in the Inspector, like a Button's On Click.

InputAction

The new Input System: actions, bindings and callbacks.

DOTween

Third-party tweening library: move, fade, scale and shake in one line.

Free Libraries Worth Knowing

Popular free packages, tools and art that speed up development.

See the sidebar for the full list.

How to read an API page

API pages follow the same layout so you always know where to look: