Search Unity

Automatically docking a window beside Scene

Discussion in 'Scripting' started by Brian-Brookwell, Feb 10, 2016.

  1. Brian-Brookwell

    Brian-Brookwell

    Joined:
    Sep 14, 2012
    Posts:
    47
    I've got a working editor extension that creates a window. However, when it is created it's a floating window. I'd like to have it automatically docked beside the scene tab the way Animator works.

    Here's my code fragment:

    FuzzyLogicWindow window = EditorWindow.GetWindow<FuzzyLogicWindow> ("FuzzyLogic", false, typeof(SceneView));
    window.Show();

    Any help would be appreciated!!
     
  2. Brian-Brookwell

    Brian-Brookwell

    Joined:
    Sep 14, 2012
    Posts:
    47
    OK. Now I'm really confused. After adding and then deleting some unrelated code, it's now working properly.