LabelText on enum values not applied on dropdown correctly

Issue #657 resolved
Hugo Blanc created an issue

LabelText can be applied on enum values like this:

private enum Check
{
  [LabelText("=")]
  Equal,
  [LabelText("<")]
  Below,
  [LabelText("<=")]
  BelowOrEqual,
  [LabelText(">")]
  Above,
  [LabelText(">=")]
  AboverOrEqual,
}

It’s useful in this case to show forbidden characters in enum values like <, > or =
In my case that would also mean I can reduce the width of the dropdown.

It’s partially working, the text shows the correct label in the dropdown list, see attachment 1.
It should show the label on dropdown button too like in attachement 2.

Unity 2019.3.10f1 / Windows 10
Odin 2.1.12
Editor Only mode enabled

Comments (1)

  1. Tor Esa Vestergaard

    Thanks for the report; I've fixed this in our stable branch, and it'll be in the next patch release.

  2. Log in to comment