Skip Type-Dropdown when there is only one type to add to a List

Issue #675 new
Salomon Zwecker created an issue


Lists / Arrays of certain classes opens the type-selection drop down in the inspector even if there is only one type available (and null).

In the very most cases the user wants to add that type and not null. Therefore, this extra mouse movement and click is very annoying.

Solution in Mind

If there is only one type, the dropdown should be skipped and that type should be added automatically. The user can then still change the type of the added item to null if required.

Additional Options

  • The ListDrawerSettings should have an option to bring back the original behavior where it is useful.
  • There is a global switch in the preferences of odin to switch between this and the original behavior (the behavior described here should be the default)

Comments (0)

  1. Log in to comment