Log in or register to post comments

Device tracker enable function

April 23, 2018 - 12:02am #1

Hello. In my case i have a problem with setting Vuforia configuration. I have two scenes which contains marker target (1st scene) and ground plane (2nd scene). For 2nd one I need to enable trackpose in Vuforia configuration, but the marker scene doesn't work with this, so i need to disable pose tracking. So how I can done with this? I was try to init Device Tracker in 2nd scene in start (and awake), but it's doesn't work for me. If configurations contain function with enable or disable device tracking please tell me. Thank you.

AttachmentSize
Image icon TrackPose.PNG1.87 KB

Device tracker enable function

April 24, 2018 - 12:08pm #2

Hello Zabakot,

You can use this code to get the Positional Device Tracker and then either enable or disable it depending on which scene you are entering.

PositionalDeviceTracker pdt = TrackerManager.Instance.GetTracker<PositionalDeviceTracker>();
         
if( pdt != null && pdt.IsActive )
         
{

        //pdt.Stop();

        //pdt.Start();         
}


Thanks,

Vuforia Support

Log in or register to post comments