Search Unity

What stops Reference Point tracking?

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

  1. unitynoob24

    unitynoob24

    Joined:
    Dec 27, 2014
    Posts:
    398
    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):
    1.  
    2.  //hide the reference point?
    3.         foreach(var referencePointPrefab in aRReferencePointManager.trackables){
    4.             referencePointPrefab.gameObject.SetActive(false);
    5.         }
    6.  
    Thanks guys!