// [MenuItem ("Window/xARM/xARM Preview")] public static void ShowxARMPreviewWindow() { // undock msg if(EditorUtility.DisplayDialog ("xARM will now undock the GameView", "Please keep the GameView undocked while working with xARM.", "OK", "Cancel")){ _myWindow = GetWindow<xARMPreviewWindow>(); _myWindow.title = myWindowTitle; _myWindow.minSize = new Vector2(300, 150); // undock GameView only on window open (not while switching between Editor and Play mode) xARMManager.FloatingGameView (xARMManager.DefaultGameViewResolution); } }
// [MenuItem ("Window/xARM/xARM Preview")] public static void ShowxARMPreviewWindow() { // undock msg if (EditorUtility.DisplayDialog("xARM will now undock the GameView", "Please keep the GameView undocked while working with xARM.", "OK", "Cancel")) { _myWindow = GetWindow <xARMPreviewWindow>(); _myWindow.title = myWindowTitle; _myWindow.minSize = new Vector2(300, 150); // undock GameView only on window open (not while switching between Editor and Play mode) xARMManager.FloatingGameView(xARMManager.DefaultGameViewResolution); } }