Did a search through API can’t seem to find a way or the function Name to Autofocus or activate InputText.
Is there a simple way of doing this?
Thank’s
Did a search through API can’t seem to find a way or the function Name to Autofocus or activate InputText.
Is there a simple way of doing this?
Thank’s
The input text class does have a focus function
Is that what you were looking for?
I can’t get it to work:
Here are two ways to get focus to work:
InputText auto focus | Babylon.js Playground (babylonjs.com)
You need to render the element at least once in order to get everything ready. In this example I am focusing on the next frame, and also every time you click in the scene.
Hello @charliesideroad just checking in if your question was answered
Somehow I found out that you have to add focus after addControl();