Sunday, September 14, 2014

Unity Tips: Basic Menu JS



In the earliest steps of both learning Unity and making a game, you're going to want a basic menu. There are tons of ways to make menus beautiful and themed later but this is the basic structure. Again, I'm using JS (Unity Script), as that's what I wrote most of my early scripts in.
______________________________________________________________



Function
  • Place menu on a clickable game-object
  • Creates a 3 option menu in your upper right hand corner 
    • edited-out secondary option for centered menu
  • Fourth button to close menu
  • This particular script changes the game object's material
    • assign the materials in the inspector




Your final result should look like this


_______________________________________________________


_______________________________________________________

Check out the Video for the full process


______________________________________________________________

All blog posts by UnityGirl are inspired by my work with Brunelleschi: Age of Architects on the Aesop Games team. Check out our Crowd Funding page(s)!

No comments:

Post a Comment