private static void Init() { GradientToTexture window = (GradientToTexture)EditorWindow.GetWindow(typeof(GradientToTexture)); window.Show(); }
// Use this for initialization static void Init() { GradientToTexture window = (GradientToTexture)EditorWindow.GetWindow(typeof(GradientToTexture)); window.maxSize = new Vector2(300, 200); }