Art helps me put a lot of Static Mesh Actors in the scene and classify them by folder. How do I get references to these Actors and bind the corresponding data to initialize? There are more than 8,000 Acotrs in the scene.
You need to do a ‘GetAllActors…’. Depending on how you’ve set them up, the … will change.
GetAllActorsOfClass: for blueprints, static mesh ( not much help here maybe )
GetAllActorsWithTag: Any actor with a tag that you’ve defined
GetAllActorsOfClass → Foreach → GetDisplayName: If you really only have the name to distinguish them by.
Any good?
Does using this node for acquisition result in excessive consumption?
That depends on two things:
-
How many actors you have
-
How often you call it.
It’s ok even with a lot of actors if you only use it on beginplay, and then use an array from then on.