Log in or register to post comments

Activate/Deactivate "Track Device Pose" by script

February 25, 2019 - 11:29am #1

Hey guys,

I'm trying to create a Vuforia app with 2 scenes:

- Scene One: which requires the use of a positional tracker ("Track Device Pose" should be checked in Vuforia Configuration).

- Scene Two: which requires the "Track Device Pose" to be unchecked in Vuforia Configuration.

I need to switch this flag depending on the scene i'm in using a C# script but Vuforia doesn't seem to have an open API for this sort of thing.

Any idea how to go about this?

AttachmentSize
Image icon Screenshot 2019-02-25 at 20.28.42.png56.27 KB

Activate/Deactivate "Track Device Pose" by script

January 7, 2020 - 5:16am #3

Hi,

This should be achievable by below script:

var pdt = TrackerManager.Instance.GetTracker<PositionalDeviceTracker>();

pdt.Stop();

To start it again, use the Start() method.

Thank you.

Vuforia Engine Support

 

Activate/Deactivate "Track Device Pose" by script

December 24, 2019 - 12:27pm #2

Hey, i present the same problem, could you solve it, tks

Log in or register to post comments