- Home /
HUD appearence
Hi! I am almost finishing my first game! ^.^
It's almost done, and i have just a few things to do, but i want to add one thing to the gameplay. Did you guys played Counter Strike? Remember when the game loads and then a box appear with a description of the map? That's it, i want to do this.
I want to make a HUD/UI system, that, when you spawn, a box with a text with a description of the map appears and only disappear when you click on CLOSE. How can i do this?
Answer by Aggerwal · Jun 23, 2016 at 05:46 AM
Well I would suggest that you make the code that disappears the box of text. And for the UI Button: "Close" gameobject, you can add that script in the inspector panel at the bottom where it says on click. So when you click on that "Close" button, the text will disappear. But to be able to add it, the function that contains the disappearing code should be public so it can be seen in the inspector :)
Answer by SarperS · Jun 23, 2016 at 05:14 AM
Learn the new UI system https://unity3d.com/learn/tutorials/topics/user-interface-ui