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 GUIStyle GetCustomStyle(UnityEditorLayoutStyles referenceExplorerStyle) { return(Skin.customStyles.First(guiStyle => guiStyle.name == GetStyleFromEnum(referenceExplorerStyle))); }
public static void FromStyle(UnityEditorLayoutStyles style) { GUILayout.Label("", UnityEditorLayoutStyle.GetCustomStyle(style)); }
public static string GetStyleFromEnum(UnityEditorLayoutStyles referenceExplorerStyle) { return(StylesMap[referenceExplorerStyle]); }