Getting parent variables

Hello guys!

I can’t get working what i need.

Lets say I have a BluePrint_1 with a variable_1 and a BluePrint_2 with a variable_2.
Both have for child the same ActorComponent ( that allow some functions)

Is it possible to insert a function in this actor component to pop up a widget ( for exemple) printing variable_1 when the parent is BluePrint_1 and variable2 when the parent is BluePrint_2 ?

Or maybe just transmit a trigger to the parent ? ( Where both will print different informations according to their type)

Or i don’t have the good approach ?

Thank you !!

Best to use an event dispatcher in this case:

Actor Component:

Actor 1:

Actor 2:

image

It’s better not to burden the component with any info about the actor.

My Products

1 Like

Thank you Supremative, I’ll try this out !