Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Focusing InputField in script weird behaviour

Discussion in 'UGUI & TextMesh Pro' started by janlovsin, Jun 30, 2019.

  1. janlovsin

    janlovsin

    Joined:
    Jun 7, 2018
    Posts:
    12
    How do you focus another input field on onEndEdit? I call inputField.ActivateInputField() in script to the one I want activated which works fine on PC but on android some random S*** is happening. Also calling inputField1.ActivateInputField(), inputField1.DeactivateInputField(), inputField2.ActivateInputField() in the same function works on PC but not on android.

    I have tried alot but I can't get it to work on android. Any ideas?

    EDIT: While on PC it's working as expected, just calling for example the 2nd field, will automaticly go to 2nd, 3rd and go out on android.
     
    Last edited: Jun 30, 2019