- Home /
HUD with prefabs
It is now obvious to me that the way I am currently making my HUD(with GUI.DrawTexture), isn't working. It looks very nice, but I cannot change the values via a function. The bar size simply will not update unless you hard-code the value. So I'm looking for options. I want a box to surround the HUD, if I can change the material color of it, even better. I have three bars: one for life, one for stamina and one for energy(magic). There is a also a gemstone where the character name is and a circle behind it that shows the alignment of the player with color. Starts off medium gray and gets progressively lighter or darker with quests, deeds, etc.
When I instantiate a prefab-style bar, the surrounding box disappears. Suggestions? Options? I'm open. Thanks!
http://www.tasharen.com/?page_id=140
http://www.starscenesoftware.com/flyingtext3d.html
http://starscenesoftware.com/vectrosity.html
You need an option that you find easy to use, and supports all the things you want to do. This is just a sample list of GUI alternatives. I personally wrote my own after using UIToolkit (it was free but I didn't like using C# with JS). Apparently NGUI is free to use privately. The other 2 products I have heard very good things about. Also check out the asset store.
Answer by MathieuBarbier · Aug 29, 2012 at 04:01 PM
I use NGUI in my project and it's easy and powerful. I have the paid version but I think you can pretty much do what you want with the free one. Take a look at UISlider.
Very interesting. They are supposed to revamp the entire way GUIs are done in Unity 4, so I'm not sure about spending any money on NGUI, although it is very nice.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Prefab Variables Problem 0 Answers