Reputation: 3
I want to create a GUI that could be at the bottom of a player's screen all the time. Not a main-menu UI, but an interactive, in-game UI.
For example:
It is crucial that the player in unity must be able to interact with the UI (i.e. click it) and it is also extremely crucial that the UI can be controlled by code (C#). I must be able to create and control this UI programmatically.
How would I go about this?
I have the very latest version of Unity3d installed.
Upvotes: 0
Views: 1424
Reputation: 125245
First of all, you can't learn that here.
1. Learn Basic UI. Go to the Unity website and lean each UI compoent such as Button, Image, Panels...
https://unity3d.com/learn/tutorials/topics/user-interface-ui
2. Learn photoshop/Illustrator to get the good UI quality from the first link or hire a UI artist. Many videos on Youtube for photoshop/Illustrator UI design.
https://www.youtube.com/results?search_query=photoshop+ui+design+tutorial
3. Learn C#. Important Unity API for this:
Unity events
IPointerClickHandler
IPointerDownHandler
IPointerEnterHandler
IPointerExitHandler
IPointerUpHandler
Button.onClick ((Button.onClick event)
Text
Image
Slider
Good luck!
Upvotes: 4