Unity Guide
Overview
The Unity Game engine is one of the most popular game engines for hobbyist and indie developers. It's a free liscenced software for hobbyists, and is often an aspiring game developer's first exposure to object-oriented Programming. it uses the C# language along with many Unity-exclusive add-ons for it. Unity is relatively user-friendly, and has been used by many developers to create all sorts of games: 3D titles like Rust, 2D titles like Hollow Knight, and even VR titles such as Rumble or the I Expect You to Die series.
Is this guide for you?
This Guide is intended for people new to the Unity Game Engine, focused on Term 1 CST students looking to gain a base level of familiarity with game engines and early knowledge of object-oriented programming fundamentals. By the end of this guide, you should have a game scene ready for use and expansion, including a scriptable player and camera object.
Milestones
In this guide, you will:
- Create a new Unity Project.
- Prepare the enivronment/scene and player object.
- Add basic movement script to the player object.
- Add basic camera script to go along with the player object.
Prerequisites
To follow along, this guide requires that you have:
- A Windows 11 (22h2 or newer) capable computer that meets the minimum specs for Unity (System requirements)
- Unity hub and Unity Editor version 6.4 installed on your computer (This guide will not cover installation)
- An IDE compatible with Unity (This guide will use Visual Studio Code)
Typographical Conventions
-
Code is shown like this:
-
Actions you need to perform and window titles are bolded:
Select Transform to change the scale
-
Buttons, names and menu options are italicized:
click Add Project to add a project
-
File Paths are marked in blockquotes:
C:\users\[name]\
Admonitions Used
Throughout this documentation, we will use message blocks to grab your attention. Each possible message block, from most important to least important:
Warning
used to warn the reader for possible errors.
Success
Used to indicate that you did something right!
Tip
Used to give useful information that might aid the reader
Question
Used to answer any question the reader may have