Component:GrabbableReparentBlock: Difference between revisions

From Resonite Wiki
imported>Xekri
 
m type not types
Line 11: Line 11:
{{Table ComponentFields
{{Table ComponentFields
|DontReparent|Bool| Don't allow this slot to be reparented. Subject to the rules explained in [[Grabbable (Component)#Behavior|Grabbable - Behavior]]
|DontReparent|Bool| Don't allow this slot to be reparented. Subject to the rules explained in [[Grabbable (Component)#Behavior|Grabbable - Behavior]]
|MaxDepth|Int| Objects beyond this level in the hierarchy will not be effected. Set to [[:Category:Types:Int#MaxValue|Int MaxValue]] by default
|MaxDepth|Int| Objects beyond this level in the hierarchy will not be effected. Set to [[:Category:Type:Int|Int MaxValue]] by default
}}
}}
== Behavior ==
== Behavior ==

Revision as of 18:11, 18 January 2024


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


Component image 
GrabbableReparentBlock component as seen in the Scene Inspector

Intoduction

The GrabbableReparentBlock component prevents any slot below it in the hierarchy, up to MaxDepth levels deep, from being reparented to any slot above it.

Usage

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.
DontReparent Bool Don't allow this slot to be reparented. Subject to the rules explained in Grabbable - Behavior
MaxDepth Int Objects beyond this level in the hierarchy will not be effected. Set to Int MaxValue by default

Behavior

Examples

Related Components