Search Unity

  1. Unity 2019.1 beta is now available.
    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. We're looking for insight from anyone who has experience with game testing to help us better Unity. Take our survey here. If chosen to participate you'll be entered into a sweepstake to win an Amazon gift card.
    Dismiss Notice
  4. On February 28th the Feedback website will shut down and be redirected to the Unity forums. See the full post for more information.
    Dismiss Notice
  5. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  6. Unity 2018.3 is now released.
    Dismiss Notice
  7. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    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:
    12
    '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:
    12
    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.