상속: EditorWindow
예제 #1
0
//	[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);
		}		
    }
예제 #2
0
//	[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);
        }
    }