Chapter 2. Prototyping and Scripting Basics
When starting out in game development, one of the best ways to learn the various parts of the discipline is to prototype your idea. Unity excels in assisting you with this, with its visual scene editor and public member variables that form settings in the Inspector. To get to grips with working in the Unity editor, we'll begin by prototyping a simple game mechanic using primitive shapes and basic coding.
In this chapter, you will learn about:
Creating a New Project in Unity
Importing Asset packages
Working with game objects in the Scene view and Hierarchy
Adding materials
Writing C Sharp (C#) and Javascript
Variables, functions, and commands
Using the
Translate()
command to move objectsUsing Prefabs to store objects
Using the
Instantiate()
command to spawn objects