# How to get all components in level blueprint

**URL:** <https://forums.unrealengine.com/t/how-to-get-all-components-in-level-blueprint/438692>\
**Category:** Asset Creation\
**Tags:** get, unreal-engine, level, question\
**Created:** [December 2, 2018, 2:26am UTC](https://forums.unrealengine.com/t/how-to-get-all-components-in-level-blueprint/438692 "2018-12-02T02:26:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_a2fc88241](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a2fc88241](https://forums.unrealengine.com/u/anonymous_user_a2fc88241)\
**Post date:** [December 2, 2018, 2:26am UTC](https://forums.unrealengine.com/t/how-to-get-all-components-in-level-blueprint/438692/1 "2018-12-02T02:26:44Z")

</div>

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.

 ![261084-question20181202.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/b/1/3b1bb2d0cbc313271269dd03ff81050b14f4c27a.jpeg)

---

<div class="post-metadata">

**Author:** ![LazerTale](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lazertale/32/1071682_2.png) [@LazerTale](https://forums.unrealengine.com/u/LazerTale)\
**Post date:** [December 2, 2018, 3:06am UTC](https://forums.unrealengine.com/t/how-to-get-all-components-in-level-blueprint/438692/2 "2018-12-02T03:06:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a2fc88241](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a2fc88241](https://forums.unrealengine.com/u/anonymous_user_a2fc88241)\
**Post date:** [December 2, 2018, 4:28am UTC](https://forums.unrealengine.com/t/how-to-get-all-components-in-level-blueprint/438692/3 "2018-12-02T04:28:22Z")

</div>

thank you I will use it with BeginPlay function.

could get all meshes by the node.
