Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question C# I'm able to feed an InputField but ¿How do you call it? press enter or invoke it via script?

Discussion in 'UGUI & TextMesh Pro' started by AlanMattano, Nov 27, 2020.

  1. AlanMattano

    AlanMattano

    Joined:
    Aug 22, 2013
    Posts:
    1,501
    Change the text on the InputField via script [c#] is simple.

    myInputField.text = "";


    But I wish to make it run
    How do I execute the input field simulating the keyboard [ENTER] via script?
    Is that Invoke?

    Partial Solution: As a workaround, instead of the InputField, I call directly the function that the Input Filed was calling
     
    Last edited: Dec 1, 2020