I’m having a tough time figuring out how to manage/use UI elements correctly and aslso from scratch. I cant even find good videos on it. Anyone found any for Unity5 which explain a ton of stuff about UI – especially InputFields and using them? UI is very indepth and I did watch Unity Technology vids but theyre not helping me understand UI elements in code very well. And even UI design in code.
Well, anyway I’ll keep looking, I didn’t realize until recently that all UI elements are pretty much these giant constructions of 3D objects with different interact-able properties. Its kinda making it weird for me in my head to manage. Especially figuring out where they should be rendered in comparison to what the camera is seeing.
Well the Unity learn section has a load of stuff on the UI system and even more in the Unity manual.
But there is at least one book on the new UI and a fair few UI training videos done by the community.
As for versioning, I don’t thik it matters if it is for V4 or V5 where you see Unity UI tutorials, it is pretty much the same system with a few extra bells and whistles, so any information on the UI system is all current. With the Exception of explanations on OnFillVBO / OnPopulateMesh and so on, as that has changed a few times.
You are welcome to check out my series of tutorials. They show a few different ways to manipulate UI with code. It does assume you understand all of the learn section videos.
In general the UI system follows the ‘Unity way’ of doing things. That means in most cases a pure code approach is not that efficient. You are better off building prefabs and instantiating them in code, just like you would a regular GameObject.