Creating Components and Scripts

When you look at the Inspector, you'll notice there are labeled blocks or sections that have a triangle that twirls open and collapses when you click on it.

These are Components - sections of C# code that control the behavior of game objects and how assets are used by them. Game objects will have built-in components such as Transform, Collider, Mesh, etc.

You can...

Add components in the Inspector

Create your own custom components and scripts

Last updated