I am creating a HUD blueprint that has numerous textboxes. From my level blueprint, I am creating the HUD widget and storing it as a variable. Is there a way I can use this reference variable to access the text variables that are stored within the HUD from the level blueprint and modify them?
If you already have a reference, drag a wire off the get / set node and acess the variablea.
Or are you trying to access variables in a blueprint that is not the Level Buleprint?
Generally speaking, avoid scripting in LB for things that are not unique to this very level. If in doubt, do tell briefly what the plan is, it may be easier to advise how to organise it. While you can communicate with LB, it’s somewhat awkward.
I’ve since changed my approach, but I was trying to pass my HUD widget as a reference within my level blueprint and use this reference to modify the textboxes in the widget from there. I was a bit confused because I thought that if I had a reference to an object I could use it to modify variables contained within the object, but I couldn’t figure out how to do this.
That’s how things work, yes:
Set
to write data, Get
to read it.
Thanks for your help, I was looking in the wrong place for the get and set nodes.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.