Ejemplo n.º 1
0
    void Awake()
    {
        XRSettings.enabled = isEnabled;
        if (isEnabled)
        {
            XRSettings.gameViewRenderMode        = gameViewRenderMode;
            XRSettings.eyeTextureResolutionScale = eyeTectureResolutionScale;
            XRSettings.occlusionMaskScale        = occlusionMaskScale;
            XRSettings.renderViewportScale       = renderViewportScale;
            XRSettings.useOcclusionMesh          = useOcclusionMesh;

            PokeXRUIDebuggerData pokeXRUIDebuggerData = GameObject.FindWithTag("UIXRDebugConsole").GetComponent <PokeXRUIDebuggerData>();
            if (pokeXRUIDebuggerData == null)
            {
                Debug.LogError("Failed to get pokeXRUIDebuggerData");
            }
            else
            {
                DO("Successfully got debugger data!");
            }
            pokeXRInputDevices = new PokeXRInputDevices(debuggerMode);
            pokeXRUIDebugger   = new PokeXRUIDebugger(pokeXRInputDevices, pokeXRUIDebuggerData, debuggerMode);
            DO("Setup Complete");
        }
    }
Ejemplo n.º 2
0
 public PokeXRUIDebugger(PokeXRInputDevices pokeXRInputDevices, PokeXRUIDebuggerData pokeXRUIDebuggerData, bool enable)
 {
     PokeXRUIDebuggerData = pokeXRUIDebuggerData;
     PokeXRInputDevices   = pokeXRInputDevices;
     if (enable)
     {
         this.enable();
     }
 }