# How to control the grab interactable length in Magic leap 2

**URL:** <https://forum.magicleap.cloud/t/how-to-control-the-grab-interactable-length-in-magic-leap-2/4248>\
**Category:** Unity Development\
**Tags:** getting-started, input, xri\
**Created:** [September 18, 2024, 5:53am UTC](https://forum.magicleap.cloud/t/how-to-control-the-grab-interactable-length-in-magic-leap-2/4248 "2024-09-18T05:53:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![acharya](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@acharya](https://forum.magicleap.cloud/u/acharya)\
**Post date:** [September 18, 2024, 5:53am UTC](https://forum.magicleap.cloud/t/how-to-control-the-grab-interactable-length-in-magic-leap-2/4248/1 "2024-09-18T05:53:30Z")

</div>

Hi everyone,  
I just check this documentation related to grabbing and interacting with object.  
[Grab Interactable](https://developer-docs.magicleap.cloud/docs/guides/unity/getting-started/unity-simple-interaction/)  
How can I set the length between the object and the controller for which the object is grabbable. (Lets say the distance should be grater than the 1.5 m ).

---

<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:** [September 18, 2024, 4:12pm UTC](https://forum.magicleap.cloud/t/how-to-control-the-grab-interactable-length-in-magic-leap-2/4248/2 "2024-09-18T16:12:50Z")

</div>

That tutorial provides a simplified overview of using Unity's XRI package with Magic Leap 2. The Magic Leap controller maps to the generic `XRController` input so you can use the resources that are available online.

For more detailed information see Unity's Official Documentation.  
[https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@3.0/manual/index.html](https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@3.0/manual/index.html)

If you have any questions regarding XRI, I recommend reaching out on Unity's Discussion site.

> **[Topics tagged xr-input](https://discussions.unity.com/tag/xr-input)**
>
> Topics tagged xr-input

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/bd9b737a4d45ea243aa7eb177d60a773b806899a.svg) [@system](https://forum.magicleap.cloud/u/system)\
**Post date:** [November 19, 2024, 6:43pm UTC](https://forum.magicleap.cloud/t/how-to-control-the-grab-interactable-length-in-magic-leap-2/4248/3 "2024-11-19T18:43:43Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
