# Help with controller input actions..

**URL:** <https://forum.magicleap.cloud/t/help-with-controller-input-actions/2326>\
**Category:** Unity Development\
**Created:** [August 5, 2023, 3:50pm UTC](https://forum.magicleap.cloud/t/help-with-controller-input-actions/2326 "2023-08-05T15:50:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ccarrieta](https://avatars.discourse-cdn.com/v4/letter/c/8797f3/32.png) [@ccarrieta](https://forum.magicleap.cloud/u/ccarrieta)\
**Post date:** [August 5, 2023, 3:50pm UTC](https://forum.magicleap.cloud/t/help-with-controller-input-actions/2326/1 "2023-08-05T15:50:09Z")

</div>

Hi, I am trying to use the ML2 to hide and unhide a gameobject. I have a script that can hide an object and I want to trigger that script if a raycast is pointed at an object and I press a button (the menu or the button with 3 lines would do)..

I would really appreciate any help : )

---

<div class="post-metadata">

**Author:** ![kbabilinski](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kbabilinski/32/19_2.png) [@kbabilinski](https://forum.magicleap.cloud/u/kbabilinski)\
**Post date:** [August 5, 2023, 3:53pm UTC](https://forum.magicleap.cloud/t/help-with-controller-input-actions/2326/2 "2023-08-05T15:53:21Z")

</div>

I recommend taking a look at the Unity section in our [Developer Documentation](https://developer-docs.magicleap.cloud/docs/guides/unity/unity-overview). There you will find information on how to integrate the Magic Leap SDK into your project. See the input section in the sidebar for details on how to receive input events from the controller.
