Hi all,
I'm using Vuforia 5.5 and runs AR/VR sample on my phone, it starts in a stereoscopy AR mode, and change to stereoscopy VR mode if I gazes the "VR" on the model.
Now I want to set a button to switch between handheld mono AR (classic AR) mode and stereoscopy AR mode, I don't know much about code, I hope that someone can help me.
Something like this?
void Start() { mCurrentMode = GetMixedRealityMode(); Button btn = this.GetComponent<Button>(); btn.onClick.AddListener(Onclick); } private void Onclick(){ if (mCurrentMode == MixedRealityController.Mode.VIEWER_AR) { MixedRealityController.Instance.SetMode(MixedRealityController.Mode.HANDHELD_AR); } else { MixedRealityController.Instance.SetMode(MixedRealityController.Mode.VIEWER_AR); } }
Thanks in advance!
anyone can help?