Unity Box Assignment

Hello Internet!

So, in one of my classes we were given an assignemnt to essentilly create a scene in Unity with up to 10 blank box game objects. We were to create a script to attach to each box that  would assign a color to each box. The primary constraint/goal of this exercise/project was that the script must assign the color to each box. The following video will showcase my final product and below the video I will show the code I used (hint: its stupid simple).

the following is the (one, single) line of code used for the project

renderer.material.color = Color(Random.Range(0.0,1.0),Random.Range(0.0,1.0), Random.Range(0.0,1.0));


Popular posts from this blog

Morrowind MDA analysis v2

Morrowind MDA analysis v1