This week is a “2-parter” as we have a limited number of meetings throughout the semester. The first part of the class covered the basics of what makes up a “game engine”, a demonstration of downloading the Unity Hub and installing our Unity version that we will use for the semester, a tour of the Unity interface, and a never-ending fountain of prefab boxes.
To review today’s class, you can watch the recording by logging into our course on Canvas, navigating to the Zoom page, and selecting the “Course Recordings” tab.
The assignment from this part of the class is as follows:
- download the latest stable version of Unity (the Long Term Support or LTS) which is: Unity 2021.3.8f1
- complete the Roll-a-Ball Tutorial on the Unity Learn site. There is nothing to submit and this assignment is not graded, it is just recommended to give you some hands on experience with the editor interface.
Each week, this blog will feature detailed write-ups of the concepts discussed in class and code workshops found in the videos, so make sure that you bookmark this site.
Here is the code we wrote in class to create the “box fountain”:
BoxFountain.cs
using System.Collections; using System.Collections.Generic; using UnityEngine; public class BoxFountain : MonoBehaviour { public GameObject myBox; // Start is called before the first frame update void Start() { Instantiate(myBox); } // Update is called once per frame void Update() { Instantiate(myBox); } }