Hey Guys!
I know there are loads of good HUD tutorials on the wiki/forums, but I decided to take a swing at a more objectified approach.
So far it contains the ability to use object based:
- Labels
- Textures
- Materials
- Animated Materials
- Buttons
- Animated Buttons
- Horizontal Sliders
- Vertical Sliders
I’m working on GUI Windows and GUI Layouts, so as to further match the OnGUI system.
I should be putting up a video soon!
What I’m really happy with, is everything is fully blue-printable.
At least for the defaults anyways.
Everything, such as button states, animation states, etc, are all controlled in editor/material editor,
meaning very little scripting is needed to meet your requirements.
The next version will be able to do everything, without having to touch script at all.
Blueprinted versions of the objects and their functions, so your entire HUD can be done in the Graph editor.
(Without MASSES of nodes for simple UV animations).
Without further ado! Here you go!**
Unity Style HUD system!
****A lovely wee example!
**
**Unity:
**
if(GUI.Button(new Rect(200,400,200,50),"Text"))
{
//Click stuff here
}//if
**UE4:
**
if(Button(TestButton, this, 0, "Text", 0, FLinearColor::White, MousePos, 300, 600, 300, 120, 0.75f))
{
//Stuff goes here for when button is clicked
}//if
I don’ think this is too bad for a 3 day power session! xD
(1351 Lines… Cry…)
If anyone has any queries or anything, feel free to PM me, or respond here in this thread!
Also feel free to contribute and work on any UObject Memory Management issues that may crop up!
Only been using Unreal’s C++ for a few weeks, so there may be a few… (A LOT) of problems!
-****