In the new unity 4.6 beta update, there is a lot of new UI features. It looks a little confusing about functioning the buttons, but I don’t need help with that. I needed to know if it’s possible to draw that convey thing when you pause them game, example when you press Escape?
I’m assuming you are already familiar with how to get input and actually pause the game? I’ll just talk to making the GUI appear.
All new GUI elements are all GameObjects. So you make them appear and disappear the same way you handle all other GameObjects. There are a couple of ways to accomplish this.
- Create a prefab of your pause menu by dragging into the inspector. Instantiate and destroy as needed in your pause script
- Create your pause menu in scene and enable and disable using GameObject.SetActive();