# HandVisualizer.cs

**URL:** <https://forum.magicleap.cloud/t/handvisualizer-cs/1373>\
**Category:** Unity Development\
**Created:** [January 11, 2023, 12:11am UTC](https://forum.magicleap.cloud/t/handvisualizer-cs/1373 "2023-01-11T00:11:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pepone](https://avatars.discourse-cdn.com/v4/letter/p/9fc348/32.png) [@pepone](https://forum.magicleap.cloud/u/pepone)\
**Post date:** [January 11, 2023, 12:11am UTC](https://forum.magicleap.cloud/t/handvisualizer-cs/1373/1 "2023-01-11T00:11:05Z")

</div>

Hi folks,

I try to attach my own GameObjects to the handvisualiser bubbles, what works fine in the simulator, but as soon I do anything with the objects the script won't work on the Magic Leap itself ☹

Any ideas, why the result is different running on the device? Any better approach to get the positional  
and rotational data of each bubble, so I can place different meshes instead? Thanks!

HandVisualizer.cs:::

private bool once = true;

```
    void Update()
    {
        if (!this.handDevice.isValid)
        {
            Initialize();
            return;
        }

        if (once)
        {
            for (int i = 0; i < this._middleFingerBones.Count; ++i) obj[i].transform.parent = this._middleFinger[i].transform;
            once = false;
        }

```

---

<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 11, 2023, 4:45pm UTC](https://forum.magicleap.cloud/t/handvisualizer-cs/1373/2 "2023-01-11T16:45:27Z")

</div>

@pepone can you provide more information on this? Can you try using the default Hand Visualizer script from the Magic Leap Unity Examples and see if it works on device?

---

<div class="post-metadata">

**Author:** ![pepone](https://avatars.discourse-cdn.com/v4/letter/p/9fc348/32.png) [@pepone](https://forum.magicleap.cloud/u/pepone)\
**Post date:** [January 11, 2023, 6:00pm UTC](https://forum.magicleap.cloud/t/handvisualizer-cs/1373/3 "2023-01-11T18:00:02Z")

</div>

Hi kbalinski! I found a solution and just put my gameObjects on the correct position/ rotation instead of using the spheres. Thanks.
