# Get all static mesh components on actor in BP?

**URL:** <https://forums.unrealengine.com/t/get-all-static-mesh-components-on-actor-in-bp/310807>\
**Category:** Asset Creation\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [March 13, 2015, 1:08pm UTC](https://forums.unrealengine.com/t/get-all-static-mesh-components-on-actor-in-bp/310807 "2015-03-13T13:08:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![laggyluk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@laggyluk](https://forums.unrealengine.com/u/laggyluk)\
**Post date:** [March 13, 2015, 1:08pm UTC](https://forums.unrealengine.com/t/get-all-static-mesh-components-on-actor-in-bp/310807/1 "2015-03-13T13:08:48Z")

</div>

as in the topic, is it possible in BP?

---

<div class="post-metadata">

**Author:** ![DG\_Gage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DG\_Gage](https://forums.unrealengine.com/u/DG_Gage)\
**Post date:** [March 13, 2015, 2:31pm UTC](https://forums.unrealengine.com/t/get-all-static-mesh-components-on-actor-in-bp/310807/2 "2015-03-13T14:31:30Z")

</div>

First, cast to the BP instance in question and save it like so:

 ![34000-screenshot+(41).png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/4/6c464c643c653592ed68af2cb4880820a6fb494c.png)

Then, use a Get Components By Class node from your saved variable and use the Static Mesh Component Class as your Component Class. The Array Element from that ForEachLoop will let you do what you need to do with each resulting static mesh component.

 ![34013-screenshot+(40).png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/9/0/790bfb51aecd9e9412109713cb2b112508ca9470.png)

---

<div class="post-metadata">

**Author:** ![laggyluk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@laggyluk](https://forums.unrealengine.com/u/laggyluk)\
**Post date:** [March 13, 2015, 3:15pm UTC](https://forums.unrealengine.com/t/get-all-static-mesh-components-on-actor-in-bp/310807/3 "2015-03-13T15:15:44Z")

</div>

worked, thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_261c28a1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_261c28a1](https://forums.unrealengine.com/u/anonymous_user_261c28a1)\
**Post date:** [February 24, 2017, 8:52am UTC](https://forums.unrealengine.com/t/get-all-static-mesh-components-on-actor-in-bp/310807/4 "2017-02-24T08:52:44Z")

</div>

That _getComponentByClass_ node really saved my day. Needed to get all the static mesh components within an actor that wasn’t specific (Couldn’t cast).  
It worked splendidly, thanks!
