//GUI Buttons static public void callGradientEditor(Material focusedMat = null) { GUILayout.BeginHorizontal(); GUILayout.FlexibleSpace(); GUI.skin = null; if (GUILayout.Button("Open Gradient Editor", GUILayout.Width(200), GUILayout.Height(20))) { XSGradientEditor.focusedMat = focusedMat; XSGradientEditor.Init(); } GUILayout.FlexibleSpace(); GUILayout.EndHorizontal(); }
static public void Init() { XSGradientEditor window = EditorWindow.GetWindow <XSGradientEditor>(false, "XSToon: Gradient Editor", true); window.minSize = new Vector2(450, 390); }