Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Oct 08, 2019 at 08:43 PM by Hellium for the following reason:

Known bug See https://issuetracker.unity3d.com/issues/events-generated-by-the-player-input-component-do-not-have-callbackcontext-set-as-their-parameter-type

avatar image
1
Question by Lockstep · Sep 18, 2019 at 04:35 PM · uidropdown

Dropdown OnValueChanged no dynamic Value

Hello, I have trouble withe the UI Dropdown. It seems like I can't pass the selected value to the OnValueChanged Event. I tried adding a reference to a method which takes exactly one int but I am not offered to use the dynamic value (selected value). Only static values work.

I simply created the Dropdown via ContextMenu -> UI -> Dropdown. What do I need to do in order to make it work?

What is odd also, is that the inspector shows "On Value Changed ()" while the manual reads "On Value Changed (int32)".

My version is 2019.2.5f1 personal. Thanks!

alt text

dropdownerror.jpg (79.4 kB)
Comment
Add comment · Show 7
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Lockstep · Sep 20, 2019 at 10:11 PM 0
Share

I've worked around the issue by giving the listener a reference to the dropdown and subscribing to OnValueChanged from code.

 myDropdown.onValueChanged.AddListener(Foo);   

This works but I need to pass a reference to the dropdown around which is annoying. I'd rather tell the dropdown which actions to perform. So if anybody knows why this does not work for me, your input is very welcome.

avatar image DimaWMD · Sep 28, 2019 at 05:06 PM 0
Share

Same issue here. I think there is a problem with Android platform as currently I can't see dynamic values with dropdowns. Checkbox for example works as it should.

avatar image Mehrdad995 · Oct 08, 2019 at 07:04 PM 0
Share

I have the same issue too using the Android platform, upgraded to 2019.2.5f1 and cant see any "Dynamic value" section to select functions from. however the values I've had set in previous version is still working but is being showed in inspector like " and if I alter it, it wont work anymore. must be a bug, please report if you can.

avatar image DimaWMD Mehrdad995 · Oct 09, 2019 at 11:11 AM 0
Share

I'm on 2019.2.8f1 now and it looks like the problem has been fixed

avatar image MichaelPacheco · Nov 27, 2019 at 03:27 PM 0
Share

The same problem here.

avatar image Bonfire-Boy MichaelPacheco · Nov 27, 2019 at 03:43 PM 0
Share

What version of Unity?

avatar image MichaelPacheco Bonfire-Boy · Nov 27, 2019 at 09:12 PM 0
Share

2019.2.6f1 personal Win10 x64

0 Replies

  • Sort: 

Follow this Question

Answers Answers and Comments

194 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

dropdown menu after effects 1 Answer

How can i make dropdown menu which opens within Menu? 0 Answers

Cannot edit appearence of dropdown UI Unity 5.6 1 Answer

Make Dropdown List Scroll When Bottom Option is Selected With Controller? 1 Answer

Check marks in my dropdowns and disappearing UI elements... 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges