This section introduces you to fundamental concepts you need to understand succeed with scripting in Unity. This includes the important C# class representations of objects and components in a Unity sceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
See in Glossary, and how to make your application responsive to events.
Topic | Description |
---|---|
Important classes | The most important C# class representations of Unity objects, which you’ll need to derive from and interact with in your project code. |
Instantiating prefabs at runtime | Instantiate prefabsAn asset type that allows you to store a GameObject complete with components and properties. The prefab acts as a template from which you can create new object instances in the scene. More info See in Glossary programmatically to create structures and impressive effects in your game with relatively little code. |
Event handling | Make your application responsive to events such as user input, object collisionsA collision occurs when the physics engine detects that the colliders of two GameObjects make contact or overlap, when at least one has a Rigidbody component and is in motion. More info See in Glossary, and physics and rendering updates. |