Component:GrabTransformReset: Difference between revisions

From Resonite Wiki
Automated: create new component page
 
add info
 
Line 3: Line 3:
|Name=Grab Transform Reset
|Name=Grab Transform Reset
}}
}}
{{stub}}
The '''GrabTransformReset''' component resets transforms of a grabbable on the same slot upon grab and/or release.


== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|ResetPositionOnGrab|Bool|
|ResetPositionOnGrab|Bool| Whether to set the grabbable position to 0 on grab.
|ResetRotationOnGrab|Bool|
|ResetRotationOnGrab|Bool| Whether to set the grabbable rotation to 0 on grab.
|ResetScaleOnGrab|Bool|
|ResetScaleOnGrab|Bool| Whether to set the grabbable scale to 1 on grab.
|ResetPositionOnRelease|Bool|
|ResetPositionOnRelease|Bool| Whether to set the grabbable position to 0 on release.
|ResetRotationOnRelease|Bool|
|ResetRotationOnRelease|Bool| Whether to set the grabbable rotation to 0 on release.
|ResetScaleOnRelease|Bool|
|ResetScaleOnRelease|Bool| Whether to set the grabbable scale to 1 on release.
}}
}}


== Behavior ==
== Usage ==
Attach to the same slot as a grabbable Component to utilize its features.


== Examples ==
== Examples ==
{{stub}}


== See Also ==
== See Also ==
Line 23: Line 25:
[[Category:Components:Transform:Interaction{{#translation:}}|Grab Transform Reset]]
[[Category:Components:Transform:Interaction{{#translation:}}|Grab Transform Reset]]
[[Category:Components{{#translation:}}|Grab Transform Reset]]
[[Category:Components{{#translation:}}|Grab Transform Reset]]
[[Category:ComponentStubs]]

Latest revision as of 04:14, 20 January 2025

Component image 
Grab Transform Reset component as seen in the Scene Inspector

The GrabTransformReset component resets transforms of a grabbable on the same slot upon grab and/or release.

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.
ResetPositionOnGrab Bool Whether to set the grabbable position to 0 on grab.
ResetRotationOnGrab Bool Whether to set the grabbable rotation to 0 on grab.
ResetScaleOnGrab Bool Whether to set the grabbable scale to 1 on grab.
ResetPositionOnRelease Bool Whether to set the grabbable position to 0 on release.
ResetRotationOnRelease Bool Whether to set the grabbable rotation to 0 on release.
ResetScaleOnRelease Bool Whether to set the grabbable scale to 1 on release.

Usage

Attach to the same slot as a grabbable Component to utilize its features.

Examples

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

See Also