Optional attributes in editor


I´d like to have an enumerator drop-down on my script component that shows/hides different attributes depending on the value of said enumerator.

Something similar to the existing CollisionComponent where: if the attribute CollisionType == “Sphere” the attribute “Radius” shows up. And if the CollisionType == “Box” the attribute “HalfExtents” shows up.

There are functions to Add/Remove attributes on scripts, however I dont know how to make them get called during the editor mode.

Any help on the matter would be much appreciated!


Can’t be done at the moment unfortunately.