A text entry box.
Properties
ClearTextOnFocus: bool
- Category: Data.
- Serialization: can save and load.
- Thread safety: read safe
CursorPosition: int
- Category: Data.
- Serialization: cannot load or save.
- Thread safety: read safe
LineHeight: float
- Category: Text.
- Serialization: can save and load.
- Thread safety: read safe
LocalizationMatchIdentifier: string
- Category: Text.
- Read security: RobloxScriptSecurity.
- Write security: RobloxScriptSecurity.
- Serialization: can save and load.
- Thread safety: read safe
LocalizationMatchedSourceText: string
- Category: Text.
- Read security: RobloxScriptSecurity.
- Write security: RobloxScriptSecurity.
- Serialization: can save and load.
- Thread safety: read safe
ManualFocusRelease: bool
- Category: Data.
- Read security: RobloxScriptSecurity.
- Write security: RobloxScriptSecurity.
- Serialization: cannot load or save.
- Thread safety: read safe
MaxVisibleGraphemes: int
- Category: Text.
- Serialization: can save and load.
- Thread safety: read safe
MultiLine: bool
- Category: Data.
- Serialization: can save and load.
- Thread safety: read safe
OpenTypeFeatures: string
- Category: Text.
- Serialization: can save and load.
- Thread safety: read safe
OpenTypeFeaturesError: string
- Category: Text.
- Serialization: can save only.
- Thread safety: read safe
OverlayNativeInput: bool
- Category: Data.
- Read security: RobloxScriptSecurity.
- Write security: RobloxScriptSecurity.
- Serialization: cannot load or save.
- Thread safety: read safe
PlaceholderColor3: Color3
- Category: Text.
- Serialization: can save and load.
- Thread safety: read safe
PlaceholderText: string
- Category: Text.
- Serialization: can save and load.
- Thread safety: read safe
ReturnKeyType: ReturnKeyType
- Category: Data.
- Read security: RobloxScriptSecurity.
- Write security: RobloxScriptSecurity.
- Serialization: cannot load or save.
- Thread safety: read safe
RichText: bool
- Category: Text.
- Serialization: can save and load.
- Thread safety: read safe
SelectionStart: int
- Category: Data.
- Serialization: cannot load or save.
- Thread safety: read safe
ShouldEmitReturnEvents: bool
- Category: Data.
- Read security: RobloxScriptSecurity.
- Write security: RobloxScriptSecurity.
- Serialization: cannot load or save.
- Thread safety: read safe
ShouldEmitTabEvents: bool
- Category: Data.
- Read security: RobloxScriptSecurity.
- Write security: RobloxScriptSecurity.
- Serialization: cannot load or save.
- Thread safety: read safe
ShouldEmitUpAndDownArrowEvents: bool
- Category: Data.
- Read security: RobloxScriptSecurity.
- Write security: RobloxScriptSecurity.
- Serialization: cannot load or save.
- Thread safety: read safe
ShowNativeInput: bool
- Category: Data.
- Serialization: can save and load.
- Thread safety: read safe
Text: string
- Category: Text.
- Serialization: can save and load.
- Thread safety: read safe
TextColor3: Color3
- Category: Text.
- Serialization: can save and load.
- Thread safety: read safe
TextDirection: TextDirection
- Category: Text.
- Serialization: can save and load.
- Thread safety: read safe
TextEditable: bool
- Category: Data.
- Serialization: can save and load.
- Thread safety: read safe
TextInputType: TextInputType
- Category: Data.
- Read security: RobloxScriptSecurity.
- Write security: RobloxScriptSecurity.
- Serialization: cannot load or save.
- Thread safety: read safe
TextScaled: bool
- Category: Text.
- Serialization: can save and load.
- Thread safety: read safe
TextSize: float
- Category: Text.
- Serialization: can save and load.
- Thread safety: read safe
TextStrokeColor3: Color3
- Category: Text.
- Serialization: can save and load.
- Thread safety: read safe
TextStrokeTransparency: float
- Category: Text.
- Serialization: can save and load.
- Thread safety: read safe
TextTransparency: float
- Category: Text.
- Serialization: can save and load.
- Thread safety: read safe
TextTruncate: TextTruncate
- Category: Text.
- Serialization: can save and load.
- Thread safety: read safe
TextWrapped: bool
- Category: Text.
- Serialization: can save and load.
- Thread safety: read safe
TextXAlignment: TextXAlignment
- Category: Text.
- Serialization: can save and load.
- Thread safety: read safe
TextYAlignment: TextYAlignment
- Category: Text.
- Serialization: can save and load.
- Thread safety: read safe
Methods
CaptureFocus(): null
- Thread safety: unsafe
IsFocused(): bool
- Thread safety: unsafe
ReleaseFocus(submitted: bool = false): null
| Name | Type | Default |
|---|---|---|
| submitted | bool | false |
- Thread safety: unsafe
ResetKeyboardMode(): null
- Security: RobloxScriptSecurity.
- Thread safety: unsafe
SetTextFromInput(text: string): null
| Name | Type |
|---|---|
| text | string |
- Security: RobloxScriptSecurity.
- Thread safety: unsafe
Events
FocusLost(enterPressed: bool, inputThatCausedFocusLoss: InputObject)
| Name | Type |
|---|---|
| enterPressed | bool |
| inputThatCausedFocusLoss | InputObject |
- Thread safety: unsafe
Focused()
- Thread safety: unsafe
ReturnPressedFromOnScreenKeyboard()
- Thread safety: unsafe
Removed members
Properties
External links[]
- TextBox in the Roblox Creator Documentation
- TextBox in the Roblox API Reference