private static void RepaintSceneAndGameViews() { SceneView.RepaintAll(); UnityEngine.Object[] array = Resources.FindObjectsOfTypeAll(typeof(GameView)); for (int i = 0; i < array.Length; i++) { GameView gameView = (GameView)array[i]; gameView.Repaint(); } }