public static void BackButton(Action callback, params GUILayoutOption[] options) { if (GUILayout.Button("", UnityEditorLayoutStyle.GetCustomStyle(UnityEditorLayoutStyles.BackButton), options)) { callback(); } }
public static void Custom(GUIContent content, UnityEditorLayoutStyles style = UnityEditorLayoutStyles.Label, Color labelColor = default(Color), params GUILayoutOption[] layouts) { var customSyle = UnityEditorLayoutStyle.GetCustomStyle(style); customSyle.normal.textColor = labelColor != default(Color) ? labelColor : customSyle.normal.textColor; GUILayout.Label(content, customSyle, layouts); }
public static void FromStyle(UnityEditorLayoutStyles style) { GUILayout.Label("", UnityEditorLayoutStyle.GetCustomStyle(style)); }
public static void Warning(string hoverMessage = "") { GUILayout.Label(new GUIContent("", hoverMessage), UnityEditorLayoutStyle.GetCustomStyle(UnityEditorLayoutStyles.WarningIcon), GUILayout.MaxWidth(iconSize), GUILayout.MaxHeight(iconSize)); }
public static void VerticalWhiteBox(Action block, params GUILayoutOption[] options) { GUILayout.BeginVertical(UnityEditorLayoutStyle.GetCustomStyle(UnityEditorLayoutStyles.WhiteBox), options); block(); GUILayout.EndVertical(); }
public static void HorizontalBox(Action block, params GUILayoutOption[] options) { GUILayout.BeginHorizontal(UnityEditorLayoutStyle.GetCustomStyle(UnityEditorLayoutStyles.BoxSub)); block(); GUILayout.EndHorizontal(); }