Sunday, 17 April 2016
Craig lang - Menu Scripts
I used the same technique I used from my last project to create the menus. I created a function for each button which would then call a menu. What I did differently this time was I created several canvas instead of one. Each canvas was for it's own menu. This was a poor choice as I could of used one. I learnt from my mistakes when I created the main menu and how to play menu as they are in a separate scene from the main game.
For each function I called the canvas I wanted and turned off the others. When transitioning between the main menu and the main game I used the application.load code. I created a separate script when transitioning between the main menu and the how to menu. This was because the menus wouldn't load properly when called as I turned on and off the images and buttons rather than the canvases. I feel my method for the menus was sloppy and inefficient. I should of researched more into creating menus from unity forums rather than relying completely on previous experience.
I will definitely take this in mind for future projects. My only regret is that I don't have enough time to correct my mistake. Focusing on the positives however the menus work and transition between them just fine.
Labels:
Craig Lang,
Scripting,
Unity
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment