Text Input Reference
A text field the player can type text into.
Text input
A text field the player can type text into.
Object actions
Focus
Focus the input so that text can be entered (like if it was touched/clicked).
See parameters & details
- Parameter 0 (👾 Object): Text input
Technical note: this action internal type (in GDevelop JSON) is
TextInput::TextInputObject::Focus.
Border color
Set the border color of the object.
See parameters & details
- Parameter 0 (👾 Object): Text input
- Parameter 1: color
Technical note: this action internal type (in GDevelop JSON) is
TextInput::TextInputObject::SetBorderColor.
Border opacity
Change the border opacity, between 0 (fully transparent) and 255 (opaque).
See parameters & details
- Parameter 0 (👾 Object): Text input
- Parameter 1: 🟰 Operator
- Parameter 2 (🔢 Number): Opacity (0-255)
Technical note: this action internal type (in GDevelop JSON) is
TextInput::TextInputObject::SetBorderOpacity.
Border width
Change the border width.
See parameters & details
- Parameter 0 (👾 Object): Text input
- Parameter 1: 🟰 Operator
- Parameter 2 (🔢 Number): Value
Technical note: this action internal type (in GDevelop JSON) is
TextInput::TextInputObject::SetBorderWidth.
Disabled
Set (or unset) if the text input is disabled.
See parameters & details
- Parameter 0 (👾 Object): Text input
- Parameter 1 (❓ Yes or No): New value
Technical note: this action internal type (in GDevelop JSON) is
TextInput::TextInputObject::SetDisabled.
Fill color
Set the fill color of the object.
See parameters & details
- Parameter 0 (👾 Object): Text input
- Parameter 1: color
Technical note: this action internal type (in GDevelop JSON) is
TextInput::TextInputObject::SetFillColor.
Fill opacity
Change the fill opacity, between 0 (fully transparent) and 255 (opaque).
See parameters & details
- Parameter 0 (👾 Object): Text input
- Parameter 1: 🟰 Operator
- Parameter 2 (🔢 Number): Opacity (0-255)
Technical note: this action internal type (in GDevelop JSON) is
TextInput::TextInputObject::SetFillOpacity.
Font size
Change the font size.
See parameters & details
- Parameter 0 (👾 Object): Text input
- Parameter 1: 🟰 Operator
- Parameter 2 (🔢 Number): Value
Technical note: this action internal type (in GDevelop JSON) is
TextInput::TextInputObject::SetFont size.
Font name
Set the font of the object.
See parameters & details
- Parameter 0 (👾 Object): Text input
- Parameter 1 (fontResource): Font resource name
Technical note: this action internal type (in GDevelop JSON) is
TextInput::TextInputObject::SetFontResourceName.
Input type
Change the input type.
See parameters & details
- Parameter 0 (👾 Object): Text input
- Parameter 1: 🟰 Operator
- Parameter 2 (🔤 String): Input type (one of: "text", "text area", "email", "password", "number", "telephone number", "url", "search")
Technical note: this action internal type (in GDevelop JSON) is
TextInput::TextInputObject::SetInputType.
Placeholder
Change the placeholder.
See parameters & details
- Parameter 0 (👾 Object): Text input
- Parameter 1: 🟰 Operator
- Parameter 2 (string): Text
Technical note: this action internal type (in GDevelop JSON) is
TextInput::TextInputObject::SetPlaceholder.
Read-only
Set (or unset) if the text input is read-only.
See parameters & details
- Parameter 0 (👾 Object): Text input
- Parameter 1 (❓ Yes or No): Read-only?
Technical note: this action internal type (in GDevelop JSON) is
TextInput::TextInputObject::SetReadOnly.
Spell check enabled
Set (or unset) if spell check is enabled.
See parameters & details
- Parameter 0 (👾 Object): Text input
- Parameter 1 (❓ Yes or No): New value
Technical note: this action internal type (in GDevelop JSON) is
TextInput::TextInputObject::SetSpellCheck.
Text color
Set the text color of the object.
See parameters & details
- Parameter 0 (👾 Object): Text input
- Parameter 1: color
Technical note: this action internal type (in GDevelop JSON) is
TextInput::TextInputObject::SetTextColor.
Object conditions
Border opacity
Compare the border opacity, between 0 (fully transparent) and 255 (opaque).
See parameters & details
- Parameter 0 (👾 Object): Text input
- Parameter 1: 🟰 Relational operator
- Parameter 2 (🔢 Number): Opacity (0-255)
Technical note: this condition internal type (in GDevelop JSON) is
TextInput::TextInputObject::BorderOpacity.
Border width
Compare the border width.
See parameters & details
- Parameter 0 (👾 Object): Text input
- Parameter 1: 🟰 Relational operator
- Parameter 2 (🔢 Number): Value to compare
Technical note: this condition internal type (in GDevelop JSON) is
TextInput::TextInputObject::BorderWidth.
Disabled
Check if the text input is disabled.
See parameters & details
- Parameter 0 (👾 Object): Text input
Technical note: this condition internal type (in GDevelop JSON) is
TextInput::TextInputObject::Disabled.
Fill opacity
Compare the fill opacity, between 0 (fully transparent) and 255 (opaque).
See parameters & details
- Parameter 0 (👾 Object): Text input
- Parameter 1: 🟰 Relational operator
- Parameter 2 (🔢 Number): Opacity (0-255)
Technical note: this condition internal type (in GDevelop JSON) is
TextInput::TextInputObject::FillOpacity.
Focused
Check if the text input is focused (the cursor is in the field and player can type text in).
See parameters & details
- Parameter 0 (👾 Object): Text input
Technical note: this condition internal type (in GDevelop JSON) is
TextInput::TextInputObject::Focused.
Font size
Compare the font size.
See parameters & details
- Parameter 0 (👾 Object): Text input
- Parameter 1: 🟰 Relational operator
- Parameter 2 (🔢 Number): Value to compare
Technical note: this condition internal type (in GDevelop JSON) is
TextInput::TextInputObject::Font size.
Font name
Compare the font name.
See parameters & details
- Parameter 0 (👾 Object): Text input
- Parameter 1: 🟰 Relational operator
- Parameter 2 (string): Value to compare
Technical note: this condition internal type (in GDevelop JSON) is
TextInput::TextInputObject::FontResourceName.
Input type
Compare the input type.
See parameters & details
- Parameter 0 (👾 Object): Text input
- Parameter 1: 🟰 Relational operator
- Parameter 2 (🔤 String): Input type (one of: "text", "text area", "email", "password", "number", "telephone number", "url", "search")
Technical note: this condition internal type (in GDevelop JSON) is
TextInput::TextInputObject::InputType.
Input is submitted
Check if the input is submitted, which usually happens when the Enter key is pressed on a keyboard, or a specific button on mobile virtual keyboards.
See parameters & details
- Parameter 0 (👾 Object): Text input
Technical note: this condition internal type (in GDevelop JSON) is
TextInput::TextInputObject::IsInputSubmitted.
Placeholder
Compare the placeholder.
See parameters & details
- Parameter 0 (👾 Object): Text input
- Parameter 1: 🟰 Relational operator
- Parameter 2 (string): Text
Technical note: this condition internal type (in GDevelop JSON) is
TextInput::TextInputObject::Placeholder.
Read-only
Check if the text input is read-only.
See parameters & details
- Parameter 0 (👾 Object): Text input
Technical note: this condition internal type (in GDevelop JSON) is
TextInput::TextInputObject::ReadOnly.
Spell check enabled
Check if spell check is enabled.
See parameters & details
- Parameter 0 (👾 Object): Text input
Technical note: this condition internal type (in GDevelop JSON) is
TextInput::TextInputObject::SpellCheck.
Object expressions
| Expression | Description | |
|---|---|---|
Object.BorderOpacity() |
Return the border opacity, between 0 (fully transparent) and 255 (opaque). | |
Object.BorderWidth() |
Return the border width. | |
Object.FillOpacity() |
Return the fill opacity, between 0 (fully transparent) and 255 (opaque). | |
Object.Font size() |
Return the font size. | |
Object.FontResourceName() |
Return the font name. | |
Object.InputType() |
Return the input type. | |
Object.Placeholder() |
Return the placeholder. |
The Text Input extension is always installed in all GDevelop projects: there is no need to add it from the Project Manager.
This page is an auto-generated reference page about the Text Input feature of GDevelop, the open-source, cross-platform game engine designed for everyone. Learn more about all GDevelop features here.