Search Unity

  1. Get all the Unite Berlin 2018 news on the blog.
    Dismiss Notice
  2. Unity 2018.2 has arrived! Read about it here.
    Dismiss Notice
  3. Improve your Unity skills with a certified instructor in a private, interactive classroom. Learn more.
    Dismiss Notice
  4. ARCore is out of developer preview! Read about it here.
    Dismiss Notice
  5. Magic Leap’s Lumin SDK Technical Preview for Unity lets you get started creating content for Magic Leap One™. Find more information on our blog!
    Dismiss Notice
  6. 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:
    8
    '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:
    549
    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:
    8
    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.