Introduction to Unity Basics

Table of contents

Introduction

Download and installation

Create new Unity project

Brief intro to Unity interface

Making your First Unity game

Additional resources

References

Introduction

Unity is a game engine that can be used to develop 2D, 3D, AR/VR games. It can also be used to create interactive simulations for training, education, and various industries. The end product can be built and deployed to mobile, desktop, and web platforms. Unity provides a user-friendly interface for users to design and develop the interface of their projects. The game logic is scripted in C#. Below is a beginner’s guide for how to set up and get started with Unity.

Download and Installation

Download Unity Hub

Unity Hub is a management tool that can be used to organize Unity projects, install different versions of Unity Editor, manage licenses and access the Unity Asset Store efficiently. It can be used with the Unity Editor version 5.6 or higher.

To get started, download Unity Hub from the official Unity website. Choose the correct installer of Unity Hub for your operating system (Mac, Windows, or Linux). Open the installer file and follow the instructions in the Unity Hub setup window to install Unity Hub on your machine.

License Activation:

An activated license is needed to use Unity. When you sign in to the Unity Hub for the first time, you will be asked to add an active license. At the top of Unity Hub, click Manage licenses. If you do not see this, you can manage licenses by clicking on the Preferences (or Settings) icon on the top of the left tab bar beside your account icon > then select the license tab in the window that pops up. Click Add to add a new license. You can choose to get a free personal license or get an educational (student) license by applying for the Unity student plan on this website.

image

Install Unity Editor through Unity Hub:

Create New Unity Project

Once you have Unity downloaded, you can create a new project by:

Brief Intro to the Unity Interface

Once you create a new project/open a project in Unity, you will see an interface similar to this. I have split the interface into 5 main sections and will briefly introduce each section. Unity_interface

  1. Hierarchy window: The hierarchy window displays everything in a Scene. In Unity, the things in a Scene, such as the Main Camera, Directional Light, and the SampleObject, are called GameObjects. You can use the Hierarchy window to add, delete, group and organize the GameObjects into different levels.
  2. Scene/Game view: The scene view displays the current GameObjects you placed in a scene. You can use the Scene view to manipulate GameObjects and view them from various angles. The game view displays the rendered view that you will see in the final game product. It’s like a “preview” of your game. You can switch between Scene/Game view in the top left corner of this section.
  3. Inspector window: If you click on a GameObject inside the hierarchy window, the inspector window will open on the right side of your screen. You will be able to see and edit the properties and components of this GameObject in the Inspector window.
  4. Project window: The project window acts as a file browser, organizing asset files in folders. An asset is a representation of any item that can be used in your game or project, such as images, audio, 3D models, sprites, and texture files. It also contains C# scripts, files, or folders that we create. You can create or import assets and scripts by right-clicking in the project window. Besides the Project window, there is a Console window that logs debug information when you run your game.
  5. Toolbar: The toolbar is at the top of the Unity Editor. You can press the play/pause button in the middle to run/stop the game in the Game view. The toolbar also contains tabs to access your Unity Account, Unity Cloud Services, and Unity Collaborate.

Note that you can customize your Unity Interface. You can drag and move the windows to different places and add/remove windows to change the interface appearance according to your preference. Some Unity tutorials that you might find may also have a different appearance of the interface.

Script Editor

If you double-click on a script in your Project window, your script will be opened in your default script editor. You will be able to edit the scripts in the editor and see changes reflected in the Unity Editor.

If you have not set the default editor or want to change the default editor, you can:

Get started with making your first Unity game

After you setup and get familiar with the Unity interface, you can start creating your own game in Unity. Here are some resources that could be useful to help you get started:

Additional Resources

Reference

What is the Unity Hub?
Getting started with the Unity Editor
Unity Manual
Introduction to Unity Editor and Unity Interface