Hello,
How would I go about displaying tips in the loading menu?
I am wanting to add some tips during the loading screen and just wanted some ideas on how to do it.
I am thinking of storing these tips in an Enum and calling that randomly in the UI text.
What do you all think?
Have them in a data table and get a random row.
Thank you! Will do some testing using a data table
I would suggest watching this quick video to learn all about Data Tables and how to use them.
And you can use the “Get Data Table Row Names” node to get all the row names in the Data Table.
Thank you! that seems to work!
Though when its attached to the text box it cycles through everything in the DT, perhaps if I were to clamp it?
You’re probably using a loop, removing it should fix it.
Perhaps you could then explain how this function is called.
of course!
I am not calling is per say, but this function is a bind event for a text box for a loading screen
They execute every frame. This is then generating 60 / 120 randoms per second, depending on how fast the game is running. As a general rule of thumb, avoid function binding.
Generate the tip text when needed only and then set the text block to show it.
Ah I see! I didn’t know they execute every frame.
Though the only way I could find to set the text block to show text way via a bind
Flag the text block as variable:
So you can then access is directly:
Hard to advise more precisely without knowing how / when the widget gets created / needs updating.
so the text block is flagged as a variable, I dont see how to imitate the set value with target as well as text.
The loading widget is the same as the cropout sample that Epic released recently, hope that helps
No idea what that is. If you wanted the widget text to be random when this widget is created, all that is needed:
To assign values to widget fields, you drag a wire and then search for what is needed:
Here’s are 3 example of assigning text to widgets:
They advice is not to use 1 & 2, and rightly so. Function binding and variable polling happens every frame. No need to do something 60 times per second when it can be done once. Easier to debug, too.
Yay it works! Thank you very much! I didnt know there was the method of assigning values to widgets!
Really appreciate your help!
You will probably see me post a lot more in the community, so dont be a stranger
Could you point me in the right direction?
Of course, here is a link. I am using this for the base of my project as it contains a lot of solid building blocks but there is a lot to build on.
I’ll run out of life before I learn all the features.
They just keep coming…
I believe you can learn all the features!