Creating aVR game in Unity
For our first assignment this semester we are learning a game developing software, Unity, and a new code language C # (sharp).
The first assignment was to create a mini-game called, Roll-a-ball. The object of the game is for the player to roll a ball and collect little cubes. It seems like a simple game but for a beginner coder like myself it was a bit of a struggle.
I completed the tutorial last week and set up my game, as seen below:
This week I wanted to take it a step further and add some custom materials and textures manually through code.
I followed a YouTube tutorial that was very helpful. However, things did not run smoothly, nor work.
I kept receiving these error codes:
The solutions I kept looking at online were to just carefully comb through the scripts and make sure there were no errors in the code. I did that, for hours. Even in VS Studio it said there were no errors, leaving me absolutely confused. After combing lines of code, I tried deleting the new script I made and running the game but it still wouldn't work. Then the software froze and I got the spiny rainbow wheel stuck on my screen for a half hour. I restarted my laptop and still no luck. Not too sure why this isn't working, maybe I need a second set of eyes to see my mistake.
Moving forward I would like to find the bug and expand the game board and add custom materials to the objects.