# Two scene and actionManager question

**URL:** <https://forum.babylonjs.com/t/two-scene-and-actionmanager-question/19712>\
**Category:** Questions\
**Created:** [April 5, 2021, 4:26pm UTC](https://forum.babylonjs.com/t/two-scene-and-actionmanager-question/19712 "2021-04-05T16:26:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Icyrockton](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/icyrockton/32/13964_2.png) [@Icyrockton](https://forum.babylonjs.com/u/Icyrockton)\
**Post date:** [April 5, 2021, 4:26pm UTC](https://forum.babylonjs.com/t/two-scene-and-actionmanager-question/19712/1 "2021-04-05T16:26:00Z")

</div>

Hi,I have two scenes. when one scene is hide , the actionManager in the hidden scene still works .  
is there a way to avoid that?  
see line 117 ~ 125 and 151 ~ 153  
after 3 seconds , the hand is hidden , but actionManager still work  
[https://playground.babylonjs.com/#L0IMUD#118](https://playground.babylonjs.com/#L0IMUD#118)

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [April 5, 2021, 4:36pm UTC](https://forum.babylonjs.com/t/two-scene-and-actionmanager-question/19712/2 "2021-04-05T16:36:23Z")

</div>

The good idea here is to call scene.detachControl() when you hide it (and call attachControl() back when you display it)

---

<div class="post-metadata">

**Author:** ![Icyrockton](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/icyrockton/32/13964_2.png) [@Icyrockton](https://forum.babylonjs.com/u/Icyrockton)\
**Post date:** [April 5, 2021, 4:37pm UTC](https://forum.babylonjs.com/t/two-scene-and-actionmanager-question/19712/3 "2021-04-05T16:37:24Z")

</div>

Thank you for your quick reply I will try it
