Component:ProjectedRectSlotDriver: Difference between revisions

From Resonite Wiki
Automated: update Fields, Categories
Added a description. Added a usage description. Added field descriptions.
 
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|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv0=true|
|_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|{{RootFieldType|FieldDrive`1|[[Type:FloatQ|FloatQ]]}}|TypeAdv2=true|
|_rotation|{{RootFieldType|FieldDrive`1|[[Type:FloatQ|FloatQ]]}}|TypeAdv2=true|Internal - The rotation of the target slot.
|_scale|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv3=true|
|_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.


<!--T:5-->
<!--T:5-->
Line 32: Line 31:
</translate>
</translate>
[[Category:Components{{#translation:}}|Projected Rect Slot Driver]]
[[Category:Components{{#translation:}}|Projected Rect Slot Driver]]
[[Category:ComponentStubs]]
[[Category:Components:UIX:Utility{{#translation:}}|Projected Rect Slot Driver]]
[[Category:Components:UIX:Utility{{#translation:}}|Projected Rect Slot Driver]]

Latest revision as of 01:14, 29 July 2024

Component image 
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.

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.
_position field drive of Float3 Internal - The position of the target slot.
Target Slot The slot to reposition onto this UIX.
_rotation field drive of FloatQ Internal - The rotation of the target slot.
_scale field drive of Float3 Internal - The scale of the target slot.
_originalParent Slot Internal - The original parent this slot came from.
_lastTarget Slot Internal - The last known slot target this component used.

Usage

This can be used if you want to place a slot to where some UIX is at anytime.

Examples

Related Components