The semester has already taken a toll on me because as my frustration with the background image disappearing continued I only now realized that I made a simple mistake. At first, I was looking through the Unity forums for a way to create make the camera transparent because I thought it was masking the background.
Upon further inspection when watching the game through the play window, I realized that when the game started by loading the first paragraph, the background Gameobject (which was the only object in the canvas) was destroyed. I then looked back in the script and saw that it was written so that the canvas only held the objects in the Ink script (text and buttons) as it would destroy everything in the canvas when transitioning to the next game choice.
This I found was easily fixed by moving the background outside of the canvas as its own gameObject. The frustration that came out of this was the fact that ended up spending a lot of time trying to fix this problem when there is still much to do - such as now finding a way to add the rest of the background images into the scene as a way to make the game more interactive.
Comments