상속: UnityEditor.InspectorWindow
예제 #1
0
 private void DetachPreview(bool exitGUI = true)
 {
     if (Event.current != null)
     {
         Event.current.Use();
     }
     m_PreviewWindow = CreateInstance(typeof(PreviewWindow)) as PreviewWindow;
     m_PreviewWindow.SetParentInspector(this);
     m_PreviewWindow.Show();
     Repaint();
     UIEventRegistration.MakeCurrentIMGUIContainerDirty();
     if (exitGUI)
     {
         GUIUtility.ExitGUI();
     }
 }
예제 #2
0
		private void DetachPreview()
		{
			Event.current.Use();
			this.m_PreviewWindow = (ScriptableObject.CreateInstance(typeof(PreviewWindow)) as PreviewWindow);
			this.m_PreviewWindow.SetParentInspector(this);
			this.m_PreviewWindow.Show();
			base.Repaint();
			GUIUtility.ExitGUI();
		}