Component:TextField

From Resonite Wiki
Revision as of 06:30, 20 January 2024 by ProbablePrime (talk | contribs) (ProbablePrime moved page TextField (Component) to Component:TextField: Creating component Namespace)


This article or section is a Stub. You can help the Resonite Wiki by expanding it.


Component image 
TextField component as seen in the Scene Inspector


Intoduction

The TextField component is used in conjunction with a TextEditor, Text, and Button component to provide an editable text field. The Text component stores the text, the TextEditor is the editor for the text, and the Button allows the text editor to appear when then text field is selected.

You must drag a reference to the Text component into the Text property of the TextEditor in order for the editor to know what text it is editing.

Usage

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.
Editor TextEditor A reference to the text editor component.
__text Text
EditingStarted Action<TextEditor>
EditingChanged Action<TextEditor>
EditingFinished Action<TextEditor>

Behavior

Examples

Related Components