stride icon indicating copy to clipboard operation
stride copied to clipboard

Abstract type UX improvements

Open manio143 opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. When working with abstract types in the editor it should always be clear which implementation type is being used. Both in properties and lists/dictionaries.

See discussion in #1842

Also if selected type is not an EntityComponent we should hide the component picker.

manio143 avatar Sep 30 '23 08:09 manio143

Here is a dropdown type selector that I designed and implemented in Unity for reference.

type-selector-dropdown

fydar avatar Jun 07 '24 21:06 fydar

Also in unity, Odin Inspector image

Do note that our abstract type should also handle object references not just values; the field should work as both a dropdown but also as a an object reference target zone. The two UI example listed thus far fail at this since in both cases they only handle creating and managing values. For example, let's say that you have a field of type IInventory, the engine handles public class MyInventory : IInventory {} but public class MyInventory : SyncScript, IInventory {} is also supported.

Eideren avatar Jun 07 '24 23:06 Eideren