Trying to make a constrained class container selection for a device for the user to choose which container to use for different editables but ‘where’ only works in parameter definitions and numerical constraints.
constrainted_type := type{T:type where type:subtype(some_class)}
...
@editable
Type:constrained_type = some_subclass
There’s no definition of using a subtype as an editable in the documentation so was curious if anyone would know the use or if there would be a solution to my original problem.
This is only possible in NPC Behaviors (as of v32.00), creative device editables do not support that kind of thing, what you can do instead is expose your both subtypes as optionals :