Component:TouchableTextField

From Resonite Wiki
Revision as of 23:40, 12 September 2024 by AmasterAmaster (talk | contribs) (Added a sentence about fixing issues with touching text for editing.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Component image 
Touchable Text Field component as seen in the Scene Inspector


The TouchableTextField component, similar to a TextField for UIX, this component when combined with a TextEditor on the same slot, will allow any text in the world to be clicked on to make it become editable.

This allows the text to be edited in both directions: In the component and in the world directly.

Fields

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.
TextEditor TextEditor The TextField to allow for bi-directional editing.
AcceptOutOfSightTouch Bool Allows the user to click and edit while not looking directly at the editable text.
AcceptPhysicalTouch Bool Allows a user to physically touch on the text.
AcceptRemoteTouch Bool Allows a user to click on the text with the laser.
EditModeOnly Bool Allows for the user to only edit this text in Edit Mode.
ActiveUserRootOnly Bool Allows to only be editable when under the active user.

Usage

Great for when you don't want to be bound by UIX to make editable texts.

If the text is not responding or is not editing properly, try adding the BoxCollider component.

Examples

Related Components