Getting Started

COGS 300 Lab Software Setup Guide

The instructions on this page should be completed before attending your first lab.

Unity Installation

Unity is a 3D physics engine which is designed primarily for creating video games. This is the main piece of software we will be using to make labs.

  1. First, go here and download and install Unity Hub
    • The individual -> personal version is fine. No need to get the student version (unless you really want to)
    • This is a management tool that will make it much easier for you to manage your Unity projects and the different versions of Unity
  2. Follow the instructions under the same link above to install (using Unity Hub) the Unity Editor
    • You should install the version 2020.1.2f1 AND the latest release available
    • When selecting modules to install, you can uncheck the Microsoft Visual Studio option, as we won’t be using it as our main code editor in this lab. However, if you have issues installing VS Code, you can come back and install Visual Studio just so you have a way to access the code in Unity
  3. In Unity Hub, create a new 3D project under the Projects tab named “Hello World Project”
  4. Make sure the Hello World Project can be opened without any errors popping up

 

Visual Studio Code Installation

Visual Studio (VS) Code is a code editor that is compatible with Unity and will be where you write most of your Unity project code

  1. First, download VS Code here
  2. Follow the “Prerequisites” instructions in this article to install everything necessary for VS Code to work with Unity
    • You can also the video instructions here (from 1:00 to 1:50):
  3. If you haven’t already, go through the Unity Installation steps above and open your Hello World Project
  4. Create a new C# script called HelloWorld.cs
    • Detailed instructions here:
  5. Follow the instructions under the “Setup VS Code as Unity Script Editor” section of the article link or the video link (both from step 2 above) from 1:50 to 3:12, to set up VS Code as your default code editor in Unity
    • Open the HelloWorld.cs file you created earlier from the Unity window and test if IntelliSense is working e.g. try typing GameObject and see if a suggestion pops up for you
    • If you encounter issues with the setup or IntelliSense, keep reading through the article for some general troubleshooting guide

 

Live Share Installation

Live Share is an extension in VS Code that allows you to collaborate live with others when writing code (similar to Google Docs). It is recommended that you use this feature to collaborate with your group members during a lab so everyone can work on the same file at the same time

  1. If you haven’t already, follow the VS Code installation guide above and open Visual Studio Code
  2. On the left column, click on the Extensions icon and search for “Live Share”
  3. Click on “Live Share” and install the extension
    • You can also read up on its features and how to get started here
  4. Feel free to try out this feature and do some exploration on your own. Live Share will be expected to be used more prominently in later labs once the groups are formed