Search Issue Tracker
Fixed in 2018.3.X
Votes
0
Found in
Issue ID
1065934
Regression
No
UIElements: Creating custom Popups is limited by internal API.
Creating a custom popup field that derives from BasePopupField or PopupField is limited because the 2 functions GetValueToDisplay and AddMenuItems are marked as internal and so cannot be overridden outside of internal assemblies.
If a user wants to customize the displayed values they have to override ToString which is not always possible or simple.
For example:
I want a popup list that displays a selection of types that inherit from a base type. I wanted to remove the namespace from the labels and just show the class names. I was able to do this for the selected type by overriding the value property, however, there is no way to get to the menu items and so my popup shows the full namespace for the items but the cleaner value when selected.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [URP][Lighting] The skybox doesn't render after changing the settings of the Material when using the URP Render Pipeline
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
Add comment