AR/VR Unity Basics
Unity stands as one of the most popular engines for building AR and VR content. This topic explains its core parts in plain language.
The Scene
A scene in Unity holds every object present in one part of your app, such as a single room or level. Developers add objects to a scene, arrange them, and set how they behave.
GameObjects
A GameObject is any item placed inside a scene, such as a character, a light, a camera, or a table. Every visible or invisible element in a Unity project starts as a GameObject.
Components
A component adds behavior or properties to a GameObject. A Mesh Renderer component makes an object visible, a Rigidbody component adds physics like gravity, and a custom script component adds unique logic written by the developer.
Diagram: How a Unity Object Works
Scripts
Scripts contain code that controls object behavior. Unity uses the C# programming language for scripts. A script can move an object, respond to a button press, or check whether two objects have collided.
Setting Up for AR and VR
Unity offers packages like AR Foundation for building AR apps across both iOS and Android with one shared codebase. For VR, Unity supports XR plugins that connect to major headset brands, letting one project run on multiple devices with small adjustments.
Simple Example
Think of a GameObject like an empty toy box. Adding a Mesh Renderer component is like putting a visible toy inside the box. Adding a script is like giving that toy a set of instructions for how it moves and reacts.
Why Start With Unity
Unity offers a large community, many free tutorials, and strong support for beginners. Learning its basic structure prepares you for the hands-on projects later in this course.
