Hi, given an actor with a widget component, can you get that actor from inside the widget blueprint?
I’m trying to avoid Get Actor Of Class.
Thanks.
So you can simple access owner from the widget itself
if you have an actor with widget component and you are trying to access actor from widget
you can simply pass a variable defined to the widget that holds reference to actor.
Thanks. I thought there was a way to go up the chain, that I was missing. I’ll pass a variable, like you said.
Definetely you can do communication in multiple things between classes apart from the umg. Hard referencing is not a good practice , on the other hand its ok to have hard referencing on umg especially during such gameplay moments when player is interacting with things. You are making a both way comms so you can use either a hard reference, an interface, event or something else. There is no down side to it especially if there is no hundereds of actors in level.