All Unity EditorStyles

Example of all EditorStyles
Examples of all options within EditorStyles

Reference image for the properties in EditorStyles when making custom inspectors.

Used the following code to generate it:

var width = EditorGUILayout.GetControlRect(GUILayout.Height(0f)).width;
foreach (var style in typeof(EditorStyles).GetProperties()) {
    if (style.GetValue(null) is GUIStyle guistyle) {
        var content = new GUIContent(style.Name);
        var rect = EditorGUILayout.GetControlRect(false, guistyle.CalcHeight(content, width), guistyle);
        GUI.Box(rect, content, guistyle);
    }
}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s