SetParentInspector() public method

public SetParentInspector ( UnityEditor.InspectorWindow inspector ) : void
inspector UnityEditor.InspectorWindow
return void
Ejemplo n.º 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();
     }
 }