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).
Border color
Set the border color of the object.
Border opacity
Change the border opacity, between 0 (fully transparent) and 255 (opaque).
Border width
Change the border width.
Disabled
Set (or unset) if the text input is disabled.
Fill color
Set the fill color of the object.
Fill opacity
Change the fill opacity, between 0 (fully transparent) and 255 (opaque).
Font size
Change the font size.
Font name
Set the font of the object.
Input type
Change the input type.
Placeholder
Change the placeholder.
Read-only
Set (or unset) if the text input is read-only.
Text color
Set the text color of the object.
Object conditions
Border opacity
Compare the border opacity, between 0 (fully transparent) and 255 (opaque).
Border width
Compare the border width.
Disabled
Check if the text input is disabled.
Fill opacity
Compare the fill opacity, between 0 (fully transparent) and 255 (opaque).
Focused
Check if the text input is focused (the cursor is in the field and player can type text in).
Font size
Compare the font size.
Font name
Compare the font name.
Input type
Compare the input type.
Placeholder
Compare the placeholder.
Read-only
Check if the text input is read-only.
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. | |
Object.Text() |
Return the text. |
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.