Guides GameObjects What Is a GameObject?

GameObjects 2 min read Updated Apr 2026

What Is a GameObject?

A `GameObject` is one named thing in a scene.

It might represent something visible, like the player ship. It might represent something invisible, like a spawn point, a camera target, or a manager object that runs menu logic.

A GameObject is not usually useful because of the name alone. It becomes useful because of the components attached to it.

The Basic Idea

Think of a GameObject as a container in the scene hierarchy.

The GameObject gives you:

  • a name in the Hierarchy
  • an active or inactive state
  • a tag and layer
  • a parent-child relationship with other GameObjects
  • a required Transform
  • a place to attach components

The components define what the object can actually do.

For example, a Player GameObject might have:

  • a Transform so it has a position, rotation, and scale
  • a Sprite Renderer so it is visible as a 2D image
  • a Rigidbody2D so physics can move it
  • a BoxCollider2D so it can collide with other things
  • a PlayerController Behaviour so scene-attached PHP code can control it

The GameObject ties those pieces together into one authored object.

Where You See GameObjects

In the editor, GameObjects appear in the Hierarchy.

When you select one, the Inspector shows:

  • the GameObject header
  • its Transform
  • its attached components
  • any fields those components expose

This is why the Hierarchy and Inspector are usually used together. The Hierarchy answers "which object?" and the Inspector answers "what is on it?"

GameObjects and Scenes

A scene contains GameObjects.

That relationship is important:

  • the scene is the authored space
  • a GameObject is one thing inside that space
  • components give that GameObject capabilities
  • Behaviours are components for gameplay logic that belongs on an object

If you are building a level, menu, or gameplay moment, you are usually creating and arranging GameObjects inside a scene.

GameObjects and UIElements

GameObjects and UIElements are related, but they are not the same concept.

GameObjects live in the scene hierarchy and use Transform for placement.

UIElements live inside a Canvas and use RectTransform for layout.

That distinction helps avoid a common beginner confusion: moving a GameObject in the scene is not the same as laying out a Button or Image UIElement in a Canvas.

What to Read Next