{{Quotation|Grabbable is a complicated thing|AlexFromAlaska}}
{{Quotation|Grabbable is a complicated thing|AlexFromAlaska}}
The '''Grabbable''' component allows you to grab any slot it is attached to, provided it has some type of [[Collider]]
The '''Grabbable''' component allows you to grab any slot it is attached to, provided it has some type of [[Collider]].
== Usage ==
== Usage ==
Line 37:
Line 37:
#If an [[:Category:GrabbableExtensions|Grabbable Extension]] exists above this component in the hierarchy, and it is within the <code>MaxDepth</code> specified in the block, the slot will be parented to [[Local User Space]]
#If an [[:Category:GrabbableExtensions|Grabbable Extension]] exists above this component in the hierarchy, and it is within the <code>MaxDepth</code> specified in the block, the slot will be parented to [[Local User Space]]
#Otherwise, the slot is parented to root.
#Otherwise, the slot is parented to root.
----You can drive the scale of a Grabbable object if the <code>Scalable</code> boolean is false.
== Examples ==
== Examples ==
Revision as of 20:43, 12 January 2024
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
When released, the following will be evaluated, in order:
If ReparentOnRelease is true, the slot will be parented to the value in _lastParent
If PreserveUserSpace and _lastParentIsUserSpace is true, the slot will be parented to Local User Space
If an Grabbable Extension exists above this component in the hierarchy, and it is within the MaxDepth specified in the block, the slot will be parented to Local User Space
Otherwise, the slot is parented to root.
You can drive the scale of a Grabbable object if the Scalable boolean is false.
Examples
This article or section is a Stub. You can help the Resonite Wiki by expanding it.