Skip to content

Text Input

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.

Opacity
Change the opacity, between 0 (fully transparent) and 255 (opaque).

Placeholder
Change the placeholder.

Read-only
Set (or unset) if the text input is read-only.

Text
Change the text.

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.

Opacity
Compare the opacity, between 0 (fully transparent) and 255 (opaque).

Placeholder
Compare the placeholder.

Read-only
Check if the text input is read-only.

Text
Compare the text.

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.Opacity() Return the opacity, between 0 (fully transparent) and 255 (opaque).
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.