private static void Main(string[] args) { Application.Run(() => { var colors = new Color[] { Color.Red, Color.Green, Color.Blue }; for (var i = 0; i < colors.Length; i++) { var example = new WindowExample(i, colors[i]); example.Window.Position = (100 + i * 600, 100); example.Start(); } }); }
public static void ShowWindow() { instance = EditorWindow.GetWindow(typeof(WindowExample)) as WindowExample; instance.titleContent = new GUIContent("Window"); }