A text input that can be rendered on screen.
new TextInput(scene, config);
scene—SceneThe scene this Object is a part of.config—ObjectTheTextInput's config object.x—numberThisTextInputobject's x-coordinate.y—numberThisTextInputobject's y-coordinate.maxWidth—numberThe maximum width of theTextInput.value—stringThe text to display. (use"\n"for newlines)color—stringOptional text color.activeColor—stringOptional text color for active character.backgroundColor—stringOptional background color.backgroundColorActive—stringOptional background color for active key.fontWeight—stringOptional font weight.autoFocus—booleanAutomatically focus on element once it is instantiated.onChange—functionCallback that runs when the input's value changes.onKeyDown—functionCallback that runs when the input receives a keypress.onFocus—functionCallback that runs when focus on this input is gained.onBlur—functionCallback that runs when focus on this input is lost.maxLength—numberAn optional maximum input length.
The current position of the caret.
The renderable PixelMesh representation of the TextInput, including text color, background color, and caret behavior.