Hi!
First time posting here, I’m quite new to the unreal engine scene. I set up an actor blueprint with a variable “Pick Velocity” Here:
https://imgur.com/XG3iTYn
And I want to read the value in a widget here:
How do I reference the variable from outside the blueprint it was created in? I was able to do this with the Character pawn because it can only have one current instance in-game, but I’m a bit confused how do it because there can be multiple instances of the actor.
The way I do this is after I create the widget node you have another variable inside your widget named pick velocity that is also a float. you drag the blue reference from the create node and set it using the value from the blueprint you have in the first pic. Hope this makes sense, basically you set the variable when the widget is created so that the widget already has this value set if you were to grab and print its value from the event construct node in the widget blueprint.
The pics you have don’t have the create widget node they have a spawn actor, but I assume somewhere inside your code is the create widget node and that is where you would set it.