By cronem
on Sun, 08/13/2017 - 23:34
Hello,
I created a Custom Viewer Type inside Digital Eyewear and I'm trying to access it during runtime using:
IEnumerable<IViewerParameters> viewerParameters = Device.Instance.GetViewerList().GetAllViewers(); foreach (IViewerParameters vp in viewerParameters) { if (vp.GetName ().Equals ("Custom")) { MixedRealityController.Instance.SetViewerParameters (vp); } }
but it isn't working. I run Debug.Log (vp.GetName()) and found out that "Custom" isn't showing as an option, only "Cardboard v1", "C1-Glass", "VR Goggles" and "VR ONE".
How can select the Custom Viewer Type via script?
Thanks,
Hello cronem,
Hello cronem,
That list will only contain the eyewear devices officially support by Vuforia. If you would like to select a custom viewer at runtime, you'll need to create an instance of a customer viewer at runtime and set this as the current viewer.