Custom editor windows are flashing when undocked

I have an issue where my custom editor windows I created are flashing. It’s not a Unity bug or something I think, but rather something else that is wrong… It only occurs with editor windows I created myself, not Unity’s editor windows.

Can someone help me?

Here is a video of it:

EDIT: It only occurs when my 2 custom editor windows are overlapping

Look in the very top left corner. Looks like “Help” is flashing too. It may not be a Unity issue at its root. Still could be though, but I cannot reproduce it. Granted, I am using the Pro version with Pro skin (different skin set), and I am on a Mac, and not a PC.

Are you on a Mac or PC? Can you show a sample of your code that opens the windows, to see how it is all set up?

are you manually repainting your windows?

Here is some code:

void OnEnable()
    {
        //toolBar = EditorPrefs.GetInt("index",0); //Get the last toolbar selection
        toolBar = 0;
        listSize = 1;
        previewBackgroundTexture = (Texture2D) EditorGUIUtility.Load("GreySquared.png");
        SceneView.onSceneGUIDelegate += SceneGUI;
        if(objects == null) objects = new List<PaintObject>();
        layerNames = new List<string>();
        for(int i =0; i <= 10; i++) layerNames.Add(LayerMask.LayerToName(i));
        //this.Focus();
    }

    //Called when the object goes out of scope or when the object is destroyed
    void OnDisable()
    {
        //EditorPrefs.SetInt("index",toolBar);
        SceneView.onSceneGUIDelegate -= SceneGUI;
        if(paintPosition) DestroyImmediate(paintPosition.gameObject);
        Cleaner.RemoveGameObject("TemporaryRockName");
    }

    public static void ShowWindow()
    {
        EditorWindow.GetWindow (typeof(RockStudio));
    }

So I guess I’m not manually repainting them? You mean calling Repaint(); right?

yeah… I dont know what the issue is

It’s not that big of a deal, the two windows don’t need to be open at the same time anyways so it’s all good :wink: If it’s a bug the customer isn’t going to experience, it’s not a bug.

For curiosity-sake. Does this affect anything>

public static void ShowWindow() {
EditorWindow.ShowWindow(typeof(MyEditorWindow), “My Editor Window”, Dock.NextToInspector);
}

Change Dock to whatever, or omit.