The '''LegacyTextField''' component was used to edit text in old content migrated from other platforms. This component should not be used in new content, and should be replaced whenever possible.
|_textEditor|'''[[Component:TextEditor|TextEditor]]'''|TypeAdv10=true| The text editor that allows direct editing of the value this UI element controls.
|_textBounds|{{RootFieldType|FieldDrive`1|[[Type:Float2|Float2]]}}|TypeAdv13=true| The field to drive with the bounds of the text to keep the UI around it.
|_colliderSize|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv14=true| The field to drive with what the size of this UI's collider should be.
|_textLeftBounds|{{RootFieldType|FieldDrive`1|[[Type:Float2|Float2]]}}|TypeAdv17=true| The field to drive with the bounds of the text on the left button so the UI stays wrapped around it.
|_textRightBounds|{{RootFieldType|FieldDrive`1|[[Type:Float2|Float2]]}}|TypeAdv18=true| The field to drive with the bounds of the text on the right button so the UI stays wrapped around it.
|_colliderLeftSize|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv21=true| The field to drive with what the size of the left collider should be.
|_colliderRightSize|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv22=true| The field to drive with what the size of the right collider should be.
|_leftOffset|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv23=true| The field to drive with what the offset of the left collider should be.
|_rightOffset|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv24=true| The field to drive with what the offset of the right collider should be.
|_leftTextPosition|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv25=true| The field to drive wiyh what the position of the text on the left button should be.
|_rightTextPosition|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv26=true| The field to drive wiyh what the position of the text on the right button should be.
|_hintTextBounds|{{RootFieldType|FieldDrive`1|[[Type:Float2|Float2]]}}|TypeAdv29=true| the field to drive with the bounds of the hint text for keeping a UI wrapped around it.
|_hintTextEnabled|{{RootFieldType|FieldDrive`1|[[Type:Bool|Bool]]}}|TypeAdv30=true| Whether the hint text should be enabled or not.
}}
== Sync Delegates ==
{{Table ComponentTriggers
|OnLeftTouched:[[Type:TouchEvent|TouchEvent]]|[[Type:TouchEvent|TouchEvent]]|true| Called when the left button is touched.
|OnRightTouched:[[Type:TouchEvent|TouchEvent]]|[[Type:TouchEvent|TouchEvent]]|true| Called when the right button is touched.
}}
}}
== Behavior ==
== Usage ==
Just dont.
== Examples ==
== Examples ==
{{stub}}
== See Also ==
== See Also ==
Line 48:
Line 56:
[[Category:Components:UI:Physical{{#translation:}}|Legacy Text Field]]
[[Category:Components:UI:Physical{{#translation:}}|Legacy Text Field]]
[[Category:Components{{#translation:}}|Legacy Text Field]]
[[Category:Components{{#translation:}}|Legacy Text Field]]
[[Category:ComponentStubs]]
Latest revision as of 20:10, 7 April 2025
This article describes a feature marked as legacy—this usually means there's a newer, better alternative. Legacy features might not be removed but they will not be updated, and the team will not provide any support for them.
The LegacyTextField component was used to edit text in old content migrated from other platforms. This component should not be used in new content, and should be replaced whenever possible.