- Home /
 
 
               Best Answer 
              
 
              Answer by turbanov · Jan 13, 2017 at 10:57 AM
An internal system window can be repainted like this (Build Settings case, change the GetType string to repaint some other window):
 var buildSettingsType = System.Type.GetType("UnityEditor.BuildPlayerWindow,UnityEditor");
 var windows = Resources.FindObjectsOfTypeAll(buildSettingsType);
 if (windows != null && windows.Length > 0)
 {
     var window = (EditorWindow)windows[0];
     if (window)
         window.Repaint();
 }
 
              To find the name of the internal class, try looking it up in decompiled Unity sources: https://github.com/$$anonymous$$attRix/UnityDecompiled
Your answer
 
             Follow this Question
Related Questions
How do I repaint/refresh/focus without calling Key Events multiple times? 1 Answer
Can a GameObject's full inspector be drawn in a custom Editor Window ? 1 Answer
How to set the editor's layer mask from script? 2 Answers
Highlighting / Focusing on an Editor Window Through Code 1 Answer
How to query the Animation Editor window's scrubber time? 0 Answers