Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

What stops Reference Point tracking?

Discussion in 'AR' started by unitynoob24, Dec 6, 2019.

  1. unitynoob24


    Dec 27, 2014
    Hey guys,

    So I have a simple project where I place a reference point on a plane, then I attach it to plane and then I spawn my character to the reference point.

    I use a reference point prefab to visualize this and it works great.

    My issue is, once the character is placed I want to remove the reference point prefab (the visual part) but not the reference point from tracking.

    So this is what I'm doing now, and it removes the prefab from visibility in the scene. I am wondering if this also stops tracking for this reference point?

    Code (csharp):
    2.  //hide the reference point?
    3.         foreach(var referencePointPrefab in aRReferencePointManager.trackables){
    4.             referencePointPrefab.gameObject.SetActive(false);
    5.         }
    Thanks guys!