Search Unity

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