is there any way to set a variable for another blueprint without knowing what is the actor blueprint name ? for example i can set a variable with casting objects to their blueprint name , but i can set that variable with using “cast to actor”.
i need that because i have a lot of actors with different blueprints but with some common variables , and it will be so hard to set them one by one. is there any procedural way to fix this problem ?
When you cast to an actor, you can only access things that are common for all actors. If you have a few blueprints that you know you want to ask have something in common. You can make a base blueprint and then make child blueprints from that.
All actors that inherit from that base blueprint will have those properties and will be accessible through a cast.