# Prefab Too Small Marker Tracking Unity

**URL:** <https://forum.magicleap.cloud/t/prefab-too-small-marker-tracking-unity/3701>\
**Category:** Unity Development\
**Tags:** development, unity, openxr\
**Created:** [June 25, 2024, 4:27pm UTC](https://forum.magicleap.cloud/t/prefab-too-small-marker-tracking-unity/3701 "2024-06-25T16:27:51Z")\
**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 25, 2024, 4:27pm UTC](https://forum.magicleap.cloud/t/prefab-too-small-marker-tracking-unity/3701/1 "2024-06-25T16:27:51Z")

</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/) but with a different prefab. However, the prefab size is being transformed to fit within the marker. How do I change the size of the prefab to expand outside of 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 25, 2024, 4:50pm UTC](https://forum.magicleap.cloud/t/prefab-too-small-marker-tracking-unity/3701/2 "2024-06-25T16:50:11Z")

</div>

Hi @faziz  
Welcome to the forum. If you want to change how scaling works in the marker tracking example you should look at the last few lines where it says

```auto
if (marker.transform.localScale.x != markerSize)
{
       marker.localScale = new Vector3(markerSize, markerSize, markerSize);
}

```

You could disable this section in order to not scale the prefab to the marker size, or if you do still want scaling, just make sure that the prefab you are using is the appropriate size when scaled to Vector3.One.  
-Sidney

---

<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:** [July 17, 2024, 8:18pm UTC](https://forum.magicleap.cloud/t/prefab-too-small-marker-tracking-unity/3701/3 "2024-07-17T20:18:15Z")

</div>


