Skip to content

Commit 05d27c2

Browse files
committed
"Nicify" default labels in the EditorButtonAttribute
1 parent ad8836f commit 05d27c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Assets/Editor Toolbox/Editor/Drawers/Toolbox/Decorator/EditorButtonAttributeDrawer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ protected override void OnGuiCloseSafe(EditorButtonAttribute attribute)
8282
using (new EditorGUI.DisabledScope(disable))
8383
{
8484
var label = string.IsNullOrEmpty(attribute.ExtraLabel)
85-
? attribute.MethodName
85+
? ObjectNames.NicifyVariableName(attribute.MethodName)
8686
: attribute.ExtraLabel;
8787
var tooltip = attribute.Tooltip;
8888
var content = new GUIContent(label, tooltip);

0 commit comments

Comments
 (0)