I'm working on an app that uses both ar and normal camera in unity depending on what the user wants. The user can switch from one mode to the other at any time in a single scene. I'm trying to enable / disable the ar camera in a proper way. I have try the code as shown in the link below but the code is for an older version.
I have replaced ImageTracker with ObjectTracker but i can't find what i must replace Tracker.Type.IMAGE_TRACKER with. Right now I'm just getting a reference to the ar camera and imagetarget and just use setActive(false / true).
Any ideas or suggestions would be much apreciated.