void DrawEmulationModeOnGUI()
        {
            EditorGUI.BeginDisabledGroup(EditorApplication.isPlayingOrWillChangePlaymode);
            EditorGUI.BeginChangeCheck();
            WindowsMREmulationMode previousMode = WindowsMREmulation.mode;
            WindowsMREmulationMode currentMode  = (WindowsMREmulationMode)EditorGUILayout.Popup(s_EmulationModeText, (int)previousMode, s_ModeStrings);

            if (EditorGUI.EndChangeCheck())
            {
                if (previousMode == WindowsMREmulationMode.Remoting)
                {
                    WindowsMRRemoting.Disconnect();
                }
                WindowsMREmulation.mode = currentMode;
            }
            EditorGUI.EndDisabledGroup();
        }
예제 #2
0
 static void UnityWindowsMR_Emulation_SetMode(WindowsMREmulationMode mode)
 {
 }
예제 #3
0
 static extern void UnityWindowsMR_Emulation_SetMode(WindowsMREmulationMode mode);