Search Unity

  1. Check out the Unite LA keynote for updates on the Visual Effect Editor, the FPS Sample, ECS, Unity for Film and more! Watch it now!
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Custom Editor window saving layout problem.

Discussion in 'Extensions & OnGUI' started by KrisDevelopment, Jun 18, 2018.

  1. KrisDevelopment

    KrisDevelopment

    Joined:
    Jul 26, 2015
    Posts:
    10
    'Name's Hristo Ivanov,
    You see, I'm doing custom node editor for one of my asset store packages, however there's a problem with saving the custom editor window to the unity layout. So whenever I bring the window to be part of any window group, you know, like next to the scene view for example, and maximize any other view, it disappears and sometimes the console throws an error or two.

    This is the first one of them:
    Here is my show() method that I call the editor window with:
    Code (CSharp):
    1. [MenuItem("Kris Development/IK Plus/Blend Machine Editor")]
    2.     public static void Show () {
    3.         instance = GetWindow<IKPBlendMachineWindow>("Blend Machine");
    4.         instance.minSize = DIMENSION_MIN;
    5.         windowTitle = new GUIContent("IKP Blender", IKPStyle.BlendMachineIcon());
    6.         instance.titleContent = windowTitle;
    7.         instance.Init();
    8.     }
    example.png

    [PS to the moderators: If there's a better place for this thread/problem, please let me know, or move it there, thanks]
     
  2. shawn

    shawn

    Unity Technologies

    Joined:
    Aug 4, 2007
    Posts:
    550
    This very much sounds like it could be a bug on our end. Could you submit a bug report with a repo project showing the issue?
     
  3. KrisDevelopment

    KrisDevelopment

    Joined:
    Jul 26, 2015
    Posts:
    10
    Update: After the bug report, it turns out that it may be an internal problem just with Unity 2017.1.1f1. Many thanks to the unity team for taking their time to look at this issue.