# About clicking the gameobject with magic leap 2 controller trigger button

**URL:** <https://forum.magicleap.cloud/t/about-clicking-the-gameobject-with-magic-leap-2-controller-trigger-button/4881>\
**Category:** General\
**Tags:** input\
**Created:** [December 27, 2024, 6:08am UTC](https://forum.magicleap.cloud/t/about-clicking-the-gameobject-with-magic-leap-2-controller-trigger-button/4881 "2024-12-27T06:08:17Z")\
**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:** [December 27, 2024, 6:08am UTC](https://forum.magicleap.cloud/t/about-clicking-the-gameobject-with-magic-leap-2-controller-trigger-button/4881/1 "2024-12-27T06:08:17Z")

</div>

Hi everyone,  
How to select the game object in the scene using magic leap controller trigger ?  
I am using vuforia eyewear sample for model tracking where the UX/UI used is from mixed reality. After placing the model on the scene, I want to select the model with the help of magic leap controller trigger button and change the color of that model. I am unable to select the game object in the scene with the help of controller.

---

<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:** [January 6, 2025, 5:38pm UTC](https://forum.magicleap.cloud/t/about-clicking-the-gameobject-with-magic-leap-2-controller-trigger-button/4881/2 "2025-01-06T17:38:54Z")

</div>

Since this question is not directly related to Magic Leap 2 , I recommend asking questions on the Unity Discussion page :

> **[Unity Discussions](https://discussions.unity.com/)**
>
> The Unity Discussions (previously Unity Forums & Unity Answers) is a place for you to ask questions, discuss, help others, and get help from peers regarding Unity development.

You can also see Unity's XRI tutorials:  
[https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@3.0/manual/tutorials.html](https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@3.0/manual/tutorials.html)

* * *

We do have a simple tutorial that is now deprecated here :

> **[Simple Grab Interaction | MagicLeap Developer Documentation](https://developer-docs.magicleap.cloud/docs/guides/unity/getting-started/unity-simple-interaction/)**
>
> This document provides step-by-step instructions on how to create a cube that can be selected, grabbed and manipulated using Unity's XR Interaction Toolkit and the sample scene created in the Building a Simple App guide.

It can work for the OpenXR workflow with a few changes:

1. You will need to use the OpenXR Input action asset found in the Magic Leap Example Project or, if you are creating a new project, importing the XR Rig and Input actions from the Magic Leap Unity Examples project.
2. Follow the Building a Simple App tutorial to create an app that has a cube in it.

--

Tutorial on importing the Input Action Asset:

> **[XR Origin & ML Rig | MagicLeap Developer Documentation](https://developer-docs.magicleap.cloud/docs/guides/unity-openxr/getting-started/xr-origin-inputs/)**
>
> This section provides information on how to create a Player Rig that is compatible with Magic Leap 2 and is driven by the user's head and controller movement controller. This can be done by either:

Tutorial on creating a cube:

> **[Building a Simple App with OpenXR | MagicLeap Developer Documentation](https://developer-docs.magicleap.cloud/docs/guides/unity-openxr/getting-started/openxr-unity-simple-app/)**
>
> This document describes how to build a Magic Leap 2 application using Unity.

---

<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:** [January 21, 2025, 5:39pm UTC](https://forum.magicleap.cloud/t/about-clicking-the-gameobject-with-magic-leap-2-controller-trigger-button/4881/3 "2025-01-21T17:39:44Z")

</div>

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