- Home /
Any way to programmatically invoke a UI event?
I have an input field that brings up a virtual keyboard on click. When the user is done entering text, I want to send a SubmitText event to the InputField object so it can process the text. Is there a way to do that?
Answer by homer_3 · Jun 25, 2016 at 02:28 AM
I found out the way to do it is to use the ExecuteEvents API.
Answer by Invertex · Jun 25, 2016 at 12:21 AM
When your user presses the button to submit text, simply have it call a function that reads your InputField.text and parses it however you want then clears its value.
Your answer
![](https://koobas.hobune.stream/wayback/20220612083626im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
How do Delegates and Events work? 1 Answer
Event OnClick on text object? 1 Answer
How to subscribe to Application Pause event from a non-MonoBehaviour script? 0 Answers