Added a description. Added a usage description. Added field descriptions.
(2 intermediate revisions by 2 users not shown)
Line 2:
Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=ProjectedRectSlotDriverComponent.png
|Image=ProjectedRectSlotDriverComponent.png
Line 9:
Line 8:
<!--T:2-->
<!--T:2-->
== Intoduction ==
The '''ProjectedRectSlotDriver''' component takes a [[Slot]] in the <code>Target</code> field and places that slot in the center of where this compoennt's [[UIX]] element's transform is. This target slot will be resized to match a pizel scale that the UIX [[Component:Canvas|Canvas]] uses.
<!--T:3-->
<!--T:3-->
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|_position|Float3|
|_position|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv0=true|Internal - The position of the target slot.
|Target|Slot|
|Target|Slot|The slot to reposition onto this UIX.
|_rotation|FloatQ|
|_rotation|{{RootFieldType|FieldDrive`1|[[Type:FloatQ|FloatQ]]}}|TypeAdv2=true|Internal - The rotation of the target slot.
|_scale|Float3|
|_scale|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv3=true|Internal - The scale of the target slot.
|_originalParent|Slot|
|_originalParent|Slot|Internal - The original parent this slot came from.
|_lastTarget|Slot|
|_lastTarget|Slot|Internal - The last known slot target this component used.
}}
}}
<!--T:4-->
<!--T:4-->
== Behavior ==
== Usage ==
This can be used if you want to place a slot to where some [[UIX]] is at anytime.
ProjectedRectSlotDriver component as seen in the Scene Inspector
The ProjectedRectSlotDriver component takes a Slot in the Target field and places that slot in the center of where this compoennt's UIX element's transform is. This target slot will be resized to match a pizel scale that the UIX Canvas uses.