Well with a stroke of Inspiration from God I knew there must be some simple solution to my problem and there was.
Newbie as I am with no background in any computer language I was able to find what worked for me. I hope it helps you.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Vuforia;
public class ArMode : MonoBehaviour {
// Use this for initialization
void Start () {
MixedRealityController.Instance.SetMode (MixedRealityController.Mode.HANDHELD_AR);
}
}
Name the script as you wish for the different modes and plug in the Mixed reality controller mode you need. Attach it to the ARcamera and it should switch from the preconfigured mode to the new mode when your scene loads.
I imagine any subsequent scene will go back to the preconfigured mode but I have not tested it out.
A few short scripts and you should easily be able to set any configuration to the camera at scene load. (I think)
Of course this only helps with the viewer mode configuration. Not sure which configuration you were looking for.
Mode
VIEWER_AR
VIEWER_VR
ROTATIONAL_VIEWER_AR
HANDHELD_AR
HANDHELD_VR
ROTATIONAL_HANDHELD_AR
Hope this helps. Wish I could have helped earlier.
Well with a stroke of Inspiration from God I knew there must be some simple solution to my problem and there was.
Newbie as I am with no background in any computer language I was able to find what worked for me. I hope it helps you.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Vuforia;
public class ArMode : MonoBehaviour {
// Use this for initialization
void Start () {
MixedRealityController.Instance.SetMode (MixedRealityController.Mode.HANDHELD_AR);
}
}
Name the script as you wish for the different modes and plug in the Mixed reality controller mode you need. Attach it to the ARcamera and it should switch from the preconfigured mode to the new mode when your scene loads.
I imagine any subsequent scene will go back to the preconfigured mode but I have not tested it out.
A few short scripts and you should easily be able to set any configuration to the camera at scene load. (I think)
Of course this only helps with the viewer mode configuration. Not sure which configuration you were looking for.
Mode
VIEWER_AR
VIEWER_VR
ROTATIONAL_VIEWER_AR
HANDHELD_AR
HANDHELD_VR
ROTATIONAL_HANDHELD_AR
Hope this helps. Wish I could have helped earlier.