1
\$\begingroup\$

i'm using Unreal Engine 4 and I want to get the variable mode from some actors by referencing them but the only option that i can find in the menu is actor specific like this.

enter image description here

So what i want is a version of the component in my image that is not "Target H1" specific. And i also need the same thing for the "set" component please. and if this is not possble can someone tell me please.

\$\endgroup\$
1
\$\begingroup\$

If I'm understanding your question correctly it sounds like you need to create a base class for all actors that you want to reference this way.

For example say you had an Actor of type Chair, and an Actor of type Table, and you wanted to be able to access a variable that stores the Actors color. If you create a base Actor called Furniture that holds this color variable, you can extend child Actors from this blueprint to be able access the variable regardless of whether the target is a chair or a table or any other child of the base class.

To extend a blueprint from a base actor, simply right click on the blueprint you have created and select 'Create Child Blueprint Class' for each Actor you wish to access the variable from. The important thing is to make sure the variable is stored in the base Actor blueprint, and not the child blueprints.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.