Component image File:TextGizmoComponent.pngText Gizmo component as seen in the Scene Inspector
The TextGizmo component is commonly found on newly spawned text elements and is used to quickly edit the text of a spawned text element. This component and it's visuals delete themselves after the user selects the text element using a development tip or inspector.
Fields
Name | Type | Description |
---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't. |
_target
|
direct RelayRef`1<TextRenderer> | The text renderer to edit the text of. |
_editor
|
TextEditor | The text editor Component that targets _target for its editing.
|
_editIconPosition
|
field drive of Float3 | The position field of the start editing icon. |
_editIconScale
|
field drive of Float3 | The scale field of the start editing icon. |
Sync Delegates
Method Name | Method type and Arguments. | Is the method hidden? | Description |
---|---|---|---|
EditTouched:TouchEvent
|
TouchEvent | ✓ | Is called when the user wants to start editing _target via using this gizmo.
|
Usage
Examples
Is commonly found on Basic and Outline text elements created through the create new menu brought up via the dev tip.