Search⌘ K

Introduction to Unity Scripting

Explore the fundamentals of Unity scripting, including how to move objects with user input, trigger actions on collisions, and automate object creation. This lesson equips you with core scripting skills essential for building interactive VR games using Unity.

Gluing components

The Unity engine provides several components that allow developers to create games seamlessly, just by dragging/dropping and configuring these said components. They cover a broad range of domains such as graphics (Lights, Cameras, Materials, VFX, etc.), physics (Rigidbody, Colliders, etc.), UI, audio, and animation. However, scripting is what glues all of these components together to build a production-ready project.

Unity without scripting

Most in-game interactions can be dealt with via the use of components, such as making a ball bounce on a platform. To do this, simply create a new project and follow the steps below:

  1. Click “GameObject > 3D Object > Cube” to add a cube and extrapolate it. This will serve as the platform.

  2. Click “GameObject > 3D Object > Sphere” to add a sphere that will serve as a ball, and use the Move tool ...