Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Custom Editor window saving layout problem.

Discussion in 'Immediate Mode GUI (IMGUI)' started by KrisDevelopment, Jun 18, 2018.

  1. KrisDevelopment

    KrisDevelopment

    Joined:
    Jul 26, 2015
    Posts:
    36
    '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:
    552
    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:
    36
    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.