Download

Get All Actors of Class from an Object Blueprint

Is there a way I can use the “Get all actors of class” node from a blueprint with the parent class of object? It looks like that node is only available from Actor derived blueprints. Looping through all objects would work also…

Object class lies before the actor class in unreal class hierarchy.

Only classes that derive from Actor can be placed in the world and can have direct access to the world they’re placed in.

a very simple solution for you would be to have a function or array to receive all actors of desired class from the actor that owns the object.

in case your pawn has a variable of this object then you get all the actors of desired class in your pawn actor then pass this data to the object. simple?