Color selector dropdown

I wanted to make a dropdown to select a color from a given selection and realized that I there is no way to do that with the UI.Dropdown element.

The thing is, there is a list of Dropdown element that are generated when showing the dropdown, but they are private and can’t be accessed. I checked to edit the original dropdown code but the version of the ui on bitbucket is from last January (5.3.2) and seem outdated.

Anyone found a solution? I’m thinking about adding an OnClick event, find the generated dropdown its items, but that feels really unclean.

If you are interested in changing the behavior of the Dropdown component or doing a custom version of it, you can view / download the components code here:

https://bitbucket.org/Unity-Technologies/ui/src/2ab730c794ce2278a12285578e0154028bdb68c6/UnityEngine.UI/UI/Core/Dropdown.cs?at=5.3&fileviewer=file-view-default

Cool, the bit bucket has just been updated :slight_smile: I will change the dropdown a bit then. Add this to my other changes to better support splitscreen.