- Home /
create own GUI in unity
Hi guys, I would like to know how you can make your own GUI, so you can build your own main menu with your own GUI. Does anyone knows how to do that?
Thanks
Answer by T27M · May 11, 2014 at 09:27 PM
Make some graphics e.g buttons, icons etc. Site them as sprites, use a separate camera to render the UI over the game camera. Attach a 2D box collider to each sprite and a script that does something when they are clicked. You can take advantage of the OnMouseDown() and other similar events. I know this works as I've done it myself, whether it was worth it...well that is yet to be determined, it was fun regardless. My code was slightly more complex that was I described here and contains various options for each GUI item.
Here is some pics to give you an idea of what mine looks like.
Your answer
Follow this Question
Related Questions
GuiTexture For Jump A Character 0 Answers
The gui box is overloaded with the background 1 Answer
Question regarding Hearthstone and Unity3d? 3 Answers
Resize UI Button via Script 2 Answers