Support nicifying text of LabelTextAttribute

Issue #702 resolved
Laicasaane created an issue
[field: SerializeField, LabelText(nameof(ALongConfigurationField))]
public int ALongConfigurationField { get; private set; }

Expected result: the label will show “A Long Configuration Field“

Actual result: it shows “ALongConfigurationField” instead

Suggestion: add a parameter to LabelTextAttribute to indicate whether its text should be nicified

Workaround using expression at the moment:

[LabelText("@ObjectNames.NicifyVariableName(\"" + nameof(ALongConfigurationField) + "\")")]

But this is too verbose and repetitive considered the regularity of this functionality.

Comments (1)

  1. Tor Esa Vestergaard

    Since I was just doing a few passes over 3.0 anyways, I had a little think and decided to quickly add this. It will be in the final 3.0 release.

  2. Log in to comment