How to get a large number of Actor references in scenarios

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?

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.

Does using this node for acquisition result in excessive consumption?

That depends on two things:

  1. How many actors you have

  2. 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.