Chapter 3

Unity Editor Tour

A comprehensive walkthrough of every major panel in the Unity editor. Learn to navigate the Scene View, understand the Hierarchy, use the Inspector, and master the tools you'll use every day.

Before we write a single line of game code, we need to be comfortable with the Unity editor itself. This chapter is your guided tour of every important panel, tool, and concept in the editor. Take your time here — you'll spend hundreds of hours in this environment, and knowing your way around will make everything faster.

Open your InfiniteRunner project in Unity Hub if it isn't already open. Make sure you've loaded the GameScene we created in the previous chapter.

The Scene View

The Scene View is the large 3D viewport in the center of the editor. This is your design workspace — where you place objects, build levels, and visually arrange everything in your game world. Think of it as looking through a floating camera that you control freely.

Navigating the Scene View

Navigating in 3D space can feel strange at first if you've never used a 3D application before. Here are the essential controls:

✅ Practice Navigation Now

Spend 2–3 minutes just practicing these controls. Orbit around the scene. Pan left and right. Zoom in and out. Try fly-through mode. Click on the "Main Camera" in the Hierarchy and press F to focus on it. The more comfortable you are with navigation, the faster you'll work in every future chapter.

Scene View Gizmos

In the top-right corner of the Scene View, you'll see a small gizmo — a colored cube with labeled axes (X, Y, Z). This shows your current orientation:

You can click on any axis label on the gizmo to snap to that view. For example, clicking "Y" gives you a top-down view. Clicking "Z" gives you a front view. This is useful when you need precise alignment.

Scene View Toolbar

At the top-left of the Scene View, you'll see several tool buttons. These control what happens when you click and drag objects in the scene:

💡 Keyboard Shortcuts Are Your Best Friend

Notice that each tool has a single-letter shortcut (Q, W, E, R, T, Y). These are the most-used shortcuts in Unity. You'll be switching between Move (W) and Rotate (E) constantly. Memorize these now. Throughout this course, we'll introduce more shortcuts as they become relevant.

The Game View

The Game View shows exactly what the player will see when they play your game. It renders through the Main Camera in your scene. While the Scene View is your design workspace, the Game View is your preview window.

You can find the Game View as a tab next to the Scene View. Click on the "Game" tab to switch to it. When you're not in Play Mode, the Game View shows a static preview. When you press Play, it becomes a live, interactive view of your running game.

Resolution and Aspect Ratio

At the top of the Game View, you'll see a dropdown that says something like "Free Aspect" or "1920x1080." This controls the resolution and aspect ratio of the preview. For our infinite runner, we'll want to test at common mobile resolutions:

⚠️ Game View vs. Scene View

A common beginner mistake is to design your game while looking at the Game View and wonder why clicking doesn't select objects. The Game View is for previewing and playing. The Scene View is for designing and editing. Always do your building work in the Scene View. Switch to the Game View (or press Play) to see how it looks from the player's perspective.

The Hierarchy

The Hierarchy panel (usually on the left side) shows a list of every GameObject in the currently loaded scene. Right now, your GameScene should have two objects:

What Is a GameObject?

In Unity, everything in your scene is a GameObject. The camera is a GameObject. Lights are GameObjects. Your player character will be a GameObject. Obstacles, coins, UI elements, invisible trigger zones — all GameObjects. A GameObject is just a container. By itself, it does nothing. It becomes useful when you add components to it (more on that in the Inspector section below).

Creating GameObjects

Let's create a simple object so we have something to work with. We'll create a cube:

  1. Right-click in an empty area of the Hierarchy panel.
  2. Choose 3D Object → Cube.
  3. A cube appears in both the Scene View and the Hierarchy. It's selected by default (highlighted in blue in the Hierarchy).

You now have three objects in your Hierarchy. Try clicking on each one to select it. Notice how the Scene View highlights the selected object and the Inspector on the right updates to show its properties.

Parent-Child Relationships

GameObjects can be organized into parent-child hierarchies. When you drag one object onto another in the Hierarchy, it becomes a child of that object. Child objects:

We'll use parent-child relationships extensively. For example, our player character will be a parent object with child objects for the body mesh, particle effects, and collision shapes.

✅ Organizing with Empty GameObjects

You can create empty GameObjects (right-click → Create Empty) to act as folders in your Hierarchy. For example, you might create an empty called "Environment" and drag all your ground and decoration objects into it. This keeps your Hierarchy clean and organized. Empty GameObjects have only a Transform component and are invisible in the game.

The Inspector

The Inspector panel (usually on the right side) shows the details of whatever object you have selected. It displays all the components attached to a GameObject and lets you edit their properties.

Click on the Cube you created earlier. The Inspector should show:

The Transform Component

Every single GameObject has a Transform component. It cannot be removed. The Transform defines three things:

Try changing the cube's position. In the Inspector, find the Position row under Transform. Click on the number next to Y and change it from 0 to 3. Press Enter. Watch the cube in the Scene View — it moved up. Change it back to 0.

Other Components on the Cube

Below Transform, the cube has several other components:

Adding Components

You can add new components to any GameObject by clicking the "Add Component" button at the bottom of the Inspector. This is how you give objects new abilities. For example, adding a Rigidbody component makes an object respond to gravity and physics. Adding a script component lets you control the object with your own C# code.

Let's try it:

  1. Make sure the Cube is selected.
  2. In the Inspector, click "Add Component."
  3. Type "Rigidbody" in the search box.
  4. Click "Rigidbody" (not "Rigidbody 2D" — we're working in 3D).
  5. Now press Play. The cube falls! That's gravity. The Rigidbody component told Unity's physics engine to apply gravity to this object.
  6. Press Play again to stop.
⛔ Changes in Play Mode Don't Save!

This is one of the most important things to understand about Unity. Any changes you make while the game is running (Play Mode is active) are temporary. When you stop playing, everything reverts to how it was before you pressed Play. This is actually a feature — it lets you experiment freely during testing without breaking anything. But many beginners have spent 30 minutes tweaking values in Play Mode, only to lose all their work when they pressed Stop. If you want changes to persist, make them while Play Mode is off.

The Project Window

The Project window (usually at the bottom of the editor) is your file browser. It shows every file and folder inside your project's Assets directory. This is where you'll find and organize scripts, scenes, prefabs, materials, textures, audio files, and everything else.

Key Things to Know

⚠️ The .meta Files

For every file and folder in your project, Unity creates a hidden .meta file. For example, next to GameScene.unity, there's a GameScene.unity.meta. These meta files store import settings and unique IDs that Unity uses to reference assets. Never delete .meta files manually. If you use version control (like Git), always commit .meta files alongside their corresponding assets.

The Console

The Console panel shows messages, warnings, and errors from Unity and your scripts. If you don't see it, open it with Window → General → Console. It typically shares a tab with the Project window at the bottom of the editor.

Types of Console Messages

ConsoleExample.csC#
using UnityEngine;

public class ConsoleExample : MonoBehaviour
{
    void Start()
    {
        // These three lines demonstrate the different console message types
        Debug.Log("This is a regular message.");        // White
        Debug.LogWarning("This is a warning.");          // Yellow
        Debug.LogError("This is an error!");             // Red
    }
}
✅ Try It Yourself

In the Project window, right-click inside your Scripts folder → Create → C# Script. Name it ConsoleExample. Double-click to open it, delete everything inside, and paste the code above. Save the file, go back to Unity, select any GameObject in the Hierarchy (or create an empty one: GameObject → Create Empty), and click Add Component → ConsoleExample. Press Play and check the Console window — you should see one white, one yellow, and one red message.

Console Toolbar

At the top of the Console, you'll see toggle buttons for each message type. You can click them to filter which messages are shown. There's also:

✅ The Console Is Your Best Debugging Tool

When something doesn't work the way you expect, the Console is the first place to check. Get in the habit of checking the Console every time you press Play. If there are red errors, read them carefully — they usually tell you the exact file, line number, and nature of the problem. Clicking on an error in the Console will open your code editor at the exact line that caused it.

GameObjects and Components: The Core Concept

This is the single most important concept in Unity, so we're going to make sure it's crystal clear.

Unity uses a component-based architecture. This means:

Think of it like building with LEGO. The GameObject is the base plate. Each component is a LEGO brick you snap on. A camera brick makes it see. A light brick makes it glow. A script brick makes it think.

Common Built-in Components

Component What It Does
Transform Position, rotation, and scale. Every GameObject has this, always.
Mesh Filter + Mesh Renderer Gives the object a visible 3D shape (cube, sphere, custom model).
Collider (Box, Sphere, Capsule, Mesh) Defines the object's physical shape for collision detection.
Rigidbody Makes the object obey physics (gravity, forces, collisions).
Camera Renders the scene from this object's perspective. The player's eyes.
Light Illuminates the scene. Can be directional (sun), point (light bulb), or spot (flashlight).
Audio Source Plays sound effects or music from this object's position.
Your Custom Scripts C# scripts you write that inherit from MonoBehaviour. This is how you add your own game logic.

The Transform Component: Position, Rotation, Scale

Since the Transform is on every single object and we'll interact with it constantly, let's understand it deeply.

Position

Position is measured in units. One Unity unit typically represents one meter, though you can decide your own scale. Position has three values:

In our runner, the player will run along the Z axis (forward). Lanes will be offset along the X axis (left/right). Jumping changes the Y axis (up/down).

Rotation

Rotation is measured in degrees (0 to 360) around each axis. Rotating 90 degrees around the Y axis turns the object to face sideways. Rotation can be tricky to think about — for now, just know it exists. We'll manipulate it more when we work with the player character.

Scale

Scale defines the object's size relative to its default. A scale of (1, 1, 1) is normal size. A scale of (2, 1, 1) makes it twice as wide but normal height and depth. A scale of (0.5, 0.5, 0.5) makes it half-size in all directions.

✅ Try It: Transform Playground

Select the Cube in your scene. In the Inspector, try changing its Position, Rotation, and Scale values. Watch how the cube changes in the Scene View. Move it to (3, 0, 0). Rotate it by setting Y Rotation to 45. Scale it to (2, 0.5, 1). Get a feel for how these numbers correspond to visual changes. When you're done experimenting, you can reset the Transform by right-clicking on the "Transform" label in the Inspector and choosing "Reset."

Accessing Transform from Code

In C# scripts (which we'll start writing in the next chapter), you access the Transform like this:

TransformExample.csC#
using UnityEngine;

public class TransformExample : MonoBehaviour
{
    void Start()
    {
        // Read the current position
        Vector3 pos = transform.position;
        Debug.Log("I am at: " + pos);

        // Move the object to a new position
        transform.position = new Vector3(0f, 5f, 10f);

        // Move the object relative to its current position
        transform.Translate(Vector3.forward * 2f);

        // Rotate 90 degrees around the Y axis
        transform.Rotate(0f, 90f, 0f);
    }
}

Don't worry about understanding every line right now. We'll cover C# in depth in the next chapter. The key takeaway is that transform (lowercase) is available in every script and gives you direct access to the object's position, rotation, and scale.

Play Mode: Testing Your Game

At the top center of the Unity editor, you'll find three buttons:

The keyboard shortcut for Play/Stop is Ctrl+P (Windows) or Cmd+P (Mac).

The Play Mode Tint

When Play Mode is active, Unity tints the editor slightly (usually a subtle color change around the edges). This visual cue reminds you that you're in Play Mode and any changes are temporary. You can customize this tint color in Edit → Preferences → Colors → Playmode tint. Many developers set it to a strong red or blue so they never accidentally make changes in Play Mode.

⛔ Changes in Play Mode Are LOST When You Stop

We mentioned this earlier, but it's worth repeating because nearly every Unity beginner gets burned by this at least once. When Play Mode is active, you can move objects, change values, even add components — but the moment you press Stop, everything reverts to how it was before you pressed Play. If you find a perfect value during Play Mode, write it down before pressing Stop, then apply it after stopping. Some developers use Edit → Preferences → Colors → Playmode tint to set a bright red tint so they always know when they're in Play Mode.

Essential Keyboard Shortcuts

Here are the shortcuts you'll use most frequently. Memorize these — they'll save you hours over the course of this project:

Shortcut Action
Ctrl+S / Cmd+S Save the scene
Ctrl+Z / Cmd+Z Undo
Ctrl+P / Cmd+P Play / Stop
F Focus on selected object in Scene View
W / E / R Move / Rotate / Scale tool
Ctrl+D / Cmd+D Duplicate selected object
Delete / Cmd+Backspace Delete selected object
Ctrl+Shift+N / Cmd+Shift+N Create new empty GameObject

Common Beginner Mistakes (and How to Avoid Them)

Every Unity beginner hits the same walls. Knowing about these pitfalls in advance will save you hours of frustration. Read through each one carefully — you will encounter most of these during this course.

1. "My changes disappeared!" — Editing in Play Mode

This is the number one beginner frustration in Unity. When you press the Play button, the editor enters Play Mode. While Play Mode is active, you can move objects, tweak values, add components — and everything appears to work. But the moment you press Stop, every single change you made is erased. Unity reverts the entire scene to the state it was in before you pressed Play.

This isn't a bug — it's by design. Play Mode is a sandbox for testing. It lets you experiment freely without risk of breaking your project. But if you don't know about it, you'll spend 20 minutes carefully positioning objects, press Stop to take a break, and watch all your work vanish.

Solution: Always stop Play Mode before making permanent changes. If you discover a perfect value during testing (say, a jump height of 7.5), write it down on paper or in a note before pressing Stop, then apply it afterwards.

⛔ Enable Play Mode Tint — Do This Right Now

Go to Edit → Preferences → Colors → Playmode tint and set it to a bright red or orange. This tints the entire editor while Play Mode is active, making it impossible to forget you're in Play Mode. This single setting will save you from this mistake more than any other tip in this chapter.

2. "My script doesn't do anything!" — Script Not Attached

Creating a C# script file in the Project window is only step one. A script that just sits in your Assets folder will never execute. None of its methods — Awake(), Start(), Update() — will ever be called. For a script to run, it must be attached to a GameObject as a component.

How to attach a script:

  1. Select a GameObject in the Hierarchy.
  2. In the Inspector, click Add Component at the bottom.
  3. Type the name of your script in the search box.
  4. Click the script name when it appears in the results.

The script now appears as a component in the Inspector, and Unity will call its lifecycle methods.

✅ Quick Debugging Check

If your Debug.Log() isn't printing anything to the Console, the very first thing to check is whether the script is actually attached to a GameObject in the scene. Select the GameObject you expect it to be on and look in the Inspector — your script should appear as a component. If it's not there, that's your problem.

3. "I can't find my file!" — Lost in the Project Window

As your project grows, you'll accumulate dozens of scripts, prefabs, materials, and other assets across many folders. It's easy to lose track of where things are.

Solution: Use the search bar at the top of the Project window. It searches recursively through all subfolders. You can also filter by type using special prefixes:

You can combine type filters with a name search. For example, t:Script Player will show all scripts with "Player" in the name.

4. "Everything looks different from the tutorial!" — Layout Changes

Unity's panels (Scene, Game, Hierarchy, Inspector, Project, Console) can all be dragged, resized, docked, and rearranged. It's easy to accidentally drag a panel somewhere unexpected, or close a panel entirely. When your layout no longer matches what you see in a tutorial, it can be very disorienting.

Solution: Go to Window → Layouts → Default to reset the editor layout to Unity's default arrangement. Everything will snap back to its standard position. You can also save your own custom layouts once you find an arrangement you like: Window → Layouts → Save Layout, give it a name, and you can recall it any time.

5. "I see pink/magenta objects!" — Missing Materials

If an object in your scene appears as a flat, bright pink or magenta color, it means Unity cannot find the material or shader assigned to that object. The pink color is Unity's way of saying "I don't know how to render this."

This typically happens when:

Solution: Select the pink object. In the Inspector, find the Mesh Renderer component and look at the Materials section. You can drag a valid material from the Project window onto the material slot. If many objects are pink after switching render pipelines, use Edit → Rendering → Materials → Convert Built-in Materials to URP (or the equivalent for your pipeline).

6. "My object is there but I can't see it!" — Common Visibility Issues

You've added an object to the scene. It shows up in the Hierarchy. But it's nowhere to be seen in the Scene or Game View. This is surprisingly common and usually has a simple cause:

✅ The "F" Key Is Your Best Friend

Whenever you can't find an object, select it in the Hierarchy and press F (Frame/Focus). The Scene View camera will fly to that object and center it on screen. This works even if the object is invisible — the camera will still move to its position, and you can then inspect the Transform to figure out what's wrong.

Chapter Summary

You now know your way around the Unity editor. Here's what we covered:

You can now navigate the editor, create objects, add components, and test your game. In the next chapter, we'll learn the programming language that powers everything: C#.

✅ Clean Up Before Moving On

Before proceeding to the next chapter, delete the Cube you created (select it and press Delete). Also remove the Rigidbody component if you added one to anything. We want a clean scene — just the Main Camera and Directional Light. Save your scene with Ctrl+S.