(3 intermediate revisions by one other user not shown)
Line 8:
Line 8:
{{Table ComponentFields
{{Table ComponentFields
|_targetField|IField| The field to generate an editor list for.
|_targetField|IField| The field to generate an editor list for.
|_textEditors|{{RootFieldType|SyncRefList`1|[[Component:TextEditor|TextEditor]]}}|TypeAdv1=true| A list of text editors of the specified <code>_targetField</code>'s components.
|_textEditors|{{RootFieldType|SyncRefList`1|[[Component:TextEditor|TextEditor]]}}|TypeAdv1=true| A list of text editors of the specified <code>_targetField</code>'s components.
|_textDrives|{{RootFieldType|SyncList`1|[[Type:FieldDrive`1|FieldDrive`1]]<[[Type:String|String]]>}}|TypeAdv2=true| A list of text value fields to drive with the contents of the components of the specified <code>_targetField</code>.
|_textDrives|{{RootFieldType|SyncList`1|[[Type:FieldDrive`1|FieldDrive`1]]<[[Type:String|String]]>}}|TypeAdv2=true| A list of text value fields to drive with the contents of the components of the specified <code>_targetField</code>.
}}
== Sync Delegates ==
{{Table ComponentTriggers
|EditingStarted:[[Type:Action`1|Action`1]]<[[Component:TextEditor|TextEditor]]>|[[Type:Action`1|Action`1]]<[[Component:TextEditor|TextEditor]]>|true| Called when editing starts, used with a [[Component:TextEditor|TextEditor]].
|EditingChanged:[[Type:Action`1|Action`1]]<[[Component:TextEditor|TextEditor]]>|[[Type:Action`1|Action`1]]<[[Component:TextEditor|TextEditor]]>|true| Called when editing value changes, used with a [[Component:TextEditor|TextEditor]].
|EditingFinished:[[Type:Action`1|Action`1]]<[[Component:TextEditor|TextEditor]]>|[[Type:Action`1|Action`1]]<[[Component:TextEditor|TextEditor]]>|true| Called when editing finishes, used with a [[Component:TextEditor|TextEditor]].
Called when editing finishes, used with a TextEditor.
Usage
Attach to a slot under a UIX Canvas hiearchy with a RectTransform and then insert an IField into _targetField to be edited for this component to generate an editor for the elements of the specified _targetField.
Examples
An IField<Float3> will make the field editor create a list with the X y and z components of the float3 field.