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(); }
static void UnityWindowsMR_Emulation_SetMode(WindowsMREmulationMode mode) { }
static extern void UnityWindowsMR_Emulation_SetMode(WindowsMREmulationMode mode);