Log in or register to post comments

Switch between handheld (mono) mode and stereoscopy AR mode - he

March 15, 2016 - 2:02am #1
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!

Switch between handheld (mono) mode and stereoscopy AR mode - he

March 17, 2016 - 4:12am #2

anyone can help? 

Log in or register to post comments