Edit Text Field

The Edit Text Field behavior opens the keyboard to edit a label on the scene. This behavior triggers when the keyboard has been closed. You can dismiss the keyboard at any point by disabling the behavior or destroying the label that's being edited.

 

Properties Description
Object A

Select a label object to edit. Note that you can only edit one label object at a time.

Keyboard Type

The type of keyboard to display when editing labels.

  • Default - The default keyboard used for texting, containing emojis.

  • Alphabetic - Only containing alphanumeric characters and some special symbols.

  • Numeric - Same as the alphabetic keyboard, but the keyboard initially displays numbers instead of alphabetic letters.

  • Email Address - Similar as the alphabetic keyboard, but with additional buttons for symbols used for emails like @.

  • URL - Similar as the alphabetic keyboard, but with additional buttons to help type URLS like .com.

Dismiss on Return

If enabled, the keyboard will close when the user presses enter. Only turn this off if the user is editing a text label that should be multiple lines long.

Limits Characters You can limit the amount of characters that can be typed into the label. If the maximum character limit is reached, no more characters can be entered.
Autocapitalization Type

Determines how to autocapitalize text as the user is typing.

  • None - No autocapitalization.
  • All Characters - Capitalize all characters. Great for abbreviations such as "US".
  • Each Word - Capitalize the first letter of every word.
  • Each Sentence - Capitalize the first letter of every sentence.

Smart Quotes Type

(iOS 13.0+)

Whether smart quotes should be enabled or not. If enabled, all quotation marks will be curly. If set to system settings, the smart quotes will be enabled if it is toggled on in system settings.

Smart Dashes Type

(iOS 13.0+)

Whether smart dashes should be enabled or not. If enabled, double hyphens (--) will be converted to a dash (). If set to system settings, the smart dashes will be enabled if it is toggled on in system settings.

 

Example

You can create a name input field for your game.

F6034C38-45B3-446D-B120-565A282AD2CA.gif

 

Related

Edit Text Event

 

0 Comments

Article is closed for comments.