Component:ScaleElement: Difference between revisions

From Resonite Wiki
Automated: update Fields
add info
 
Line 7: Line 7:
|Name=Scale Element
|Name=Scale Element
}}
}}
The '''ScaleElement''' component scales itself up or down depending on if it is the selected scale element in a [[Component:ScaleGroup|Scale Group.]].


<!--T:2-->
<!--T:2-->
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|Group|{{RootFieldType|RelayRef`1|[[Component:ScaleGroup|ScaleGroup]]}}|TypeAdv0=true|
|Group|{{RootFieldType|RelayRef`1|[[Component:ScaleGroup|ScaleGroup]]}}|TypeAdv0=true| The group this belongs to. If there is a group in this component's parents, the group is auto filled into this field on attach.
|RespondToPhysicalTouch|Bool|
|RespondToPhysicalTouch|Bool| Whether to make this item selected upon physical touch.
|RespondToRemoteTouch|Bool|
|RespondToRemoteTouch|Bool| Whether to make this item selected upon clicking via laser.
|_scaleTarget|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv3=true|
|_scaleTarget|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv3=true| The field to drive in order to influence the scale of this slot when selecting/deselecting.
}}
}}


<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
Used along with a [[Component:ScaleGroup|Scale Group]] to make a list of selectable items via touching them.


<!--T:4-->
<!--T:4-->
== Examples ==
== Examples ==
{{stub}}


<!--T:5-->
<!--T:5-->
== Related Components ==
== See Also ==
* [[Component:ScaleGroup]]
</translate>
</translate>
[[Category:ComponentStubs]]
[[Category:Components{{#translation:}}|Scale Element]]
[[Category:Components{{#translation:}}|Scale Element]]
[[Category:Components:Transform:Interaction{{#translation:}}|Scale Element]]
[[Category:Components:Transform:Interaction{{#translation:}}|Scale Element]]

Latest revision as of 16:44, 2 February 2025


This article or section is a Stub. You can help the Resonite Wiki by expanding it.


Component image 
Scale Element component as seen in the Scene Inspector

The ScaleElement component scales itself up or down depending on if it is the selected scale element in a Scale Group..

Fields

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. Some components stop their functionality when this field is disabled, but some don't.
Group direct RelayRef`1<ScaleGroup> The group this belongs to. If there is a group in this component's parents, the group is auto filled into this field on attach.
RespondToPhysicalTouch Bool Whether to make this item selected upon physical touch.
RespondToRemoteTouch Bool Whether to make this item selected upon clicking via laser.
_scaleTarget field drive of Float3 The field to drive in order to influence the scale of this slot when selecting/deselecting.

Usage

Used along with a Scale Group to make a list of selectable items via touching them.

Examples

This article or section is a Stub. You can help the Resonite Wiki by expanding it.


See Also