Unity – Lab 0: Intro to Unity

Pre-Lab:

  1. Complete the Getting Started instructions
  2. If you encounter any issues with the installation, let us know on Canvas or via email before the lab
  3. Download the files needed for the lab here (under “Code” you can choose to download everything as a .zip file)
  4. Unzip those files and save the folder somewhere you’ll remember.
  5. Add the folder as a new project in Unity.

 

Lab:

Part 1: TA & Lab Introduction

Brief introduction about your lab TA and the general structure of the lab

 

Part 2: Introduction to Unity

What is Unity and how to use the basic interface.

Play around with the SimpleNavigation scene and do the following:

    1. Change the starting position of the player and the position of the obstacles
    2. Add some more obstacles of different sizes
    3. The camera is currently at roughly the same height as the player and ground. Can you change it so that the whole platform can be viewed from above at an angle?
    4. The player object seems to be moving a bit slow. Can you increase its speed?

 

Part 3: Introduction to C# and coding in C#

  • TA introduces Object Oriented Programming
    • common data types that will show up often in these labs
    • Look at examples of If statements, Foreach loops, For loops, and While loops
  • Play around with the SpawnWithLogic scene to help understand the different types of loops

Post-Lab:

For lab 0, there is an optional postlab submission point which is not for marks. This is for anyone wishing to submit questions about Unity. For all other labs in the future, there will be a Post-Lab component which you are required to submit.

  1. Are there any aspects of Unity which confuse you and you would like us to answer?
  2. What do you think could be improved for this lab?