UnityTech / UIWidgets

UIWidget is a Unity Package which helps developers to create, debug and deploy efficient, cross-platform Apps.
Other
1.97k stars 256 forks source link

Question about DropdownButton #416

Closed Linspirit98 closed 4 years ago

Linspirit98 commented 4 years ago

Hi,

I am trying to put the country code of phone numbers into a dropdown box using dropdown button. I read the country code from json file with keys and values.

However, UI widgets doesn't have map function. I cound't find any sample the address this issue. Are there any solutions?

zhuxingwei commented 4 years ago

Maybe this can help? https://stackoverflow.com/questions/2142935/what-is-the-c-sharp-equivalent-of-map-function-in-haskell Feel free to let me know if this doesn't work as you wished

Linspirit98 commented 4 years ago

Thank you for your reply! This issue has been solved! The solution was found in date_and_time_picker_demo.cs.