hello
Is there a way to get all static meshes in level (map) blueprints?
For example, when i want to render two types of sequences,
one as all meshes with white material.
second as all meshes with color material.
If i could collect all meshes by one process, it would be easy.
LazerTale
(LazerTale)
2
yes you can get all the the static meshes in the level.
Use GetAllActorsOfClass
to get all the actors in the level of a specified class.
![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/0/e/00ea64b0a2acf5c94b49c4ee53fbace85744605e.png)
Actor class should be StaticMeshActor
for static meshes.
However, do not use this in a tick function if your world has thousands of actors. It is really slow.
thank you I will use it with BeginPlay function.
could get all meshes by the node.