Image Tracker + Instant Tracker
Is it possible to use Image Tracker and instant tracker at the same time? Or can I switch between them? I tried a few things but it seems which ever I turn on first keeps working and the other one doesn't.
This is what I tried,
- Sperated the Image and Instant Tracker
- Turned them off from the inspector
- Enabled only one when needed
- Turned the camera off on OnDisable()
1. SDK Version: 5.0
2. Development Environment: Unity-Android, Unity-iOS
3. Tracker/Scanner: Image Tracker , Instant Tracker
4. License Type:Free / Pro-One Time Fee
5. Target Device(Optional):Android
In the current state, you can't use both trackers at the same time.
However, you can switch them. You must call the singleton method TrackerManager.GetInstance().StopTracker() to stop your tracking.
Otherwise, it will remain alive. Just turning off in inspector will not likely to call that method.
Basically what happens when you turn off in inspector, is calling OnDisable, not OnDistory.
I recommend you to make your own script with ImageTrackerSample.cs and InstantTrackerSample.cs.
A little pseudo code for you.
SwitchTracker ( button callback )
if tracker == inatant
tracker == image
... ( change to Instant Tracker )
Note that this logic reloads every Tracker again and again.
I'm not sure if theres a way to hold Tracker Datas.
If this is too slow, come again and we'll figure it out.
MAXST Support Team
Great help. thanks!
I only had to call the
on on disable and I called the Start method from ImageTrackerSample.cs and InstantTrackerSample.cs OnEnable. And it works as I wanted. It has a small delay but It's acceptable for my case.