
So in Unreal, the UI system uses a visual system called "Blueprint." There are ways to access the elements (and edit them) in C++, but it's a royal pain.
So I thought I'd make a re-usable interface so I don't have to re-invent the wheel every time I make a game.
Basically how it works....
A custom component I wrote goes through the Canvas and gets all the UI components promoted to variable and puts them in a collection. Then you access said collection (preferably once, in the BeginPlay function) and get the variables.
From there it's easy street. Just change the data, including the text, value of slider, whether or not it's hidden, etc...
Instead of that painstaking method of converting everything you want to edit to a binding.
I've tested it and it works. The health bar WITHOUT the script is only halfway filled, and the text without the script reads "Ammo: 0".
So as you can see, the script works because the values have changed.
Later on I will release the code.
UPDATE: code is released.
https://davididev.itch.io/unreal-ui-scanner
I wrote it to make my life easier, and if it makes your life easier that will make me happy ^_^
So I thought I'd make a re-usable interface so I don't have to re-invent the wheel every time I make a game.
Basically how it works....
A custom component I wrote goes through the Canvas and gets all the UI components promoted to variable and puts them in a collection. Then you access said collection (preferably once, in the BeginPlay function) and get the variables.
From there it's easy street. Just change the data, including the text, value of slider, whether or not it's hidden, etc...
Instead of that painstaking method of converting everything you want to edit to a binding.
I've tested it and it works. The health bar WITHOUT the script is only halfway filled, and the text without the script reads "Ammo: 0".
So as you can see, the script works because the values have changed.
Later on I will release the code.
UPDATE: code is released.
https://davididev.itch.io/unreal-ui-scanner
I wrote it to make my life easier, and if it makes your life easier that will make me happy ^_^
Category All / All
Species Unspecified / Any
Size 917 x 531px
File Size 56.1 kB
Comments