azerion / phaser-input

Adds input boxes to Phaser like CanvasInput, but also works for WebGL and Mobile, made for Phaser only.
MIT License
203 stars 64 forks source link

Set input value #38

Closed roskhill closed 7 years ago

roskhill commented 7 years ago

This is not necessarily an issue but, just wasn't sure where else to raise it.

In CanvasInput you can set a value for the field, is this something you can achieve with phaser-input?

So when a text input field is created it is automatically populated with an existing value ( If one exists ). Is this something that can be achieved using JavaScript alone if the ability is unavailable in phaser-input?

AleBles commented 7 years ago

You can use inputField.setText() :)

roskhill commented 7 years ago

Thanks, can see it has been added to the documentation now as well