# Enabling and Disabling Attached Static Mesh Collisions and Visibility using Flip Flop

**URL:** <https://forums.unrealengine.com/t/enabling-and-disabling-attached-static-mesh-collisions-and-visibility-using-flip-flop/308956>\
**Category:** Rendering\
**Tags:** visibility, attachment, unreal-engine, Collision, Blueprint, question\
**Created:** [March 3, 2015, 4:56pm UTC](https://forums.unrealengine.com/t/enabling-and-disabling-attached-static-mesh-collisions-and-visibility-using-flip-flop/308956 "2015-03-03T16:56:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_91481301](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_91481301](https://forums.unrealengine.com/u/anonymous_user_91481301)\
**Post date:** [March 3, 2015, 4:56pm UTC](https://forums.unrealengine.com/t/enabling-and-disabling-attached-static-mesh-collisions-and-visibility-using-flip-flop/308956/1 "2015-03-03T16:56:47Z")

</div>

Hey Folks,  
in advance any and all help appreciated.

I have set up a scene which has a function that turns on and off the visibility of static meshes. These static meshes are attached in a parent and child structure. The parent has 8 children.

I have worked out turning on and off the visibility of the static meshes in blueprints.

However when I add the ability to enable or disable the collision of the actor it only affects the collision of the parent actor and not the children.

I am aware that I can include the 8 items into blueprints and enable / disable their collisions manually, however future parent objects may have about 100 children - so to keep it neat is there any way to only use the parent actor and still turn on and off the collision with the visibility

.

[http://s7.postimg.org/c00xride2/visibility.jpg](http://s7.postimg.org/c00xride2/visibility.jpg)

Above I have included an image of my blueprint script.

Any help would be appreciated and high fives given.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8c0982dd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8c0982dd](https://forums.unrealengine.com/u/anonymous_user_8c0982dd)\
**Post date:** [January 24, 2017, 9:00am UTC](https://forums.unrealengine.com/t/enabling-and-disabling-attached-static-mesh-collisions-and-visibility-using-flip-flop/308956/2 "2017-01-24T09:00:32Z")

</div>

There is a Get All Child Actors which contains an Array of all the Childs. If you loop For Each Loop on that array and set collision each time.

Is that maybe what you are looking for?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8c0982dd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8c0982dd](https://forums.unrealengine.com/u/anonymous_user_8c0982dd)\
**Post date:** [January 27, 2017, 2:24pm UTC](https://forums.unrealengine.com/t/enabling-and-disabling-attached-static-mesh-collisions-and-visibility-using-flip-flop/308956/3 "2017-01-27T14:24:58Z")

</div>

Did you solve it?  
If so, please set my answer below to Solved so others with similar question can see it.

---

<div class="post-metadata">

**Author:** ![MonsOlympus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/monsolympus/32/619062_2.png) [@MonsOlympus](https://forums.unrealengine.com/u/MonsOlympus)\
**Post date:** [January 28, 2017, 5:41am UTC](https://forums.unrealengine.com/t/enabling-and-disabling-attached-static-mesh-collisions-and-visibility-using-flip-flop/308956/4 "2017-01-28T05:41:55Z")

</div>

Im not sure your answer is the correct one, though I would encourage the sharing of the correct solution and accepting correcting answers. This question is from 2015 which could be why the user hasnt responded.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8c0982dd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8c0982dd](https://forums.unrealengine.com/u/anonymous_user_8c0982dd)\
**Post date:** [January 28, 2017, 8:53am UTC](https://forums.unrealengine.com/t/enabling-and-disabling-attached-static-mesh-collisions-and-visibility-using-flip-flop/308956/5 "2017-01-28T08:53:27Z")

</div>

Ah I see, didn’t look for the date. I guess that’s why 🙂
