# Magic Leap 2 Marker Prefab Moving Erratically

**URL:** <https://forum.magicleap.cloud/t/magic-leap-2-marker-prefab-moving-erratically/3709>\
**Category:** Unity Development\
**Tags:** development, unity\
**Created:** [June 27, 2024, 4:33pm UTC](https://forum.magicleap.cloud/t/magic-leap-2-marker-prefab-moving-erratically/3709 "2024-06-27T16:33:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![faziz](https://avatars.discourse-cdn.com/v4/letter/f/ecccb3/32.png) [@faziz](https://forum.magicleap.cloud/u/faziz)\
**Post date:** [June 27, 2024, 4:33pm UTC](https://forum.magicleap.cloud/t/magic-leap-2-marker-prefab-moving-erratically/3709/1 "2024-06-27T16:33:01Z")

</div>

Give us as much detail as possible regarding the issue you're experiencing:  
I am using the [Marker Tracking Example](https://developer-docs.magicleap.cloud/docs/guides/unity-openxr/marker-understanding/unity-marker-understanding-example/) with a different Prefab but it keeps moving with the updated Aruco marker. Is there a way to Instatiate the object just once and stop having it move with the marker?  
**Unity Editor version** : 2022.3.31f1  
**ML2 OS version** : 1.7.0  
**Unity SDK version** : 1.7.0  
**Host OS** : (Windows/MacOS) MacOS

**Error messages from logs** (syntax-highlighting is supported via Markdown):

---

<div class="post-metadata">

**Author:** ![sfernandez](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/sfernandez/32/747_2.png) [@sfernandez](https://forum.magicleap.cloud/u/sfernandez)\
**Post date:** [June 28, 2024, 3:57pm UTC](https://forum.magicleap.cloud/t/magic-leap-2-marker-prefab-moving-erratically/3709/2 "2024-06-28T15:57:37Z")

</div>

Hi @faziz  
I am not sure exactly what you are asking. The marker tracking example is supposed to lock a prefab to a marker, following the marker if it is moved. If you are trying to simple instantiate a prefab at a location once then you could update the script to only update the transform of the prefab once right after its instantiated, but this doesn't feel like the most efficient use.

---

<div class="post-metadata">

**Author:** ![sfernandez](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/sfernandez/32/747_2.png) [@sfernandez](https://forum.magicleap.cloud/u/sfernandez)\
**Post date:** [July 8, 2024, 7:11pm UTC](https://forum.magicleap.cloud/t/magic-leap-2-marker-prefab-moving-erratically/3709/3 "2024-07-08T19:11:55Z")

</div>


