Component:RectSlotDriver: Difference between revisions

From Resonite Wiki
m ProbablePrime moved page RectSlotDriver (Component) to Component:RectSlotDriver: Creating component Namespace
Added a description, added field descriptions, added a usage description.
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=RectSlotDriverComponent.png
|Image=RectSlotDriverComponent.png
Line 9: Line 8:


<!--T:2-->
<!--T:2-->
== Intoduction ==
The '''RectSlotDriver''' component, when attached to a [[UIX]] element [[Slot|slot]], will automatically drive that slot's position and will provide a field <code>_position</code> for the [[User|user]] to use as a reference.


<!--T:3-->
<!--T:3-->
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|_position|Float3|  
|_position|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv0=true|Internal - Sets the position of the slot for driving the value.
}}
}}


<!--T:4-->
<!--T:4-->
== Behavior ==
== Usage ==
Mostly will be used for reference of a position of a [[UIX]] element.


<!--T:5-->
<!--T:5-->
Line 26: Line 25:
== Related Components ==
== Related Components ==
</translate>
</translate>
[[Category:Components{{#translation:}}|RectSlotDriver (Component){{#translation:}}]]
[[Category:Components{{#translation:}}|Rect Slot Driver]]
[[Category:ComponentStubs]]
[[Category:Components:UIX:Utility{{#translation:}}|Rect Slot Driver]]
[[Category:Components:UIX:Utility{{#translation:}}|RectSlotDriver (Component){{#translation:}}]]

Latest revision as of 01:34, 29 July 2024

Component image 
RectSlotDriver component as seen in the Scene Inspector


The RectSlotDriver component, when attached to a UIX element slot, will automatically drive that slot's position and will provide a field _position for the user to use as a reference.

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 - Sets the position of the slot for driving the value.

Usage

Mostly will be used for reference of a position of a UIX element.

Examples

Related Components