Component:GrabbableParenter: Difference between revisions

From Resonite Wiki
Automated: update Fields
add info
Line 7: Line 7:
|Name=Grabbable Parenter
|Name=Grabbable Parenter
}}
}}
Grabbable Parenter is a component that when paired with a [[colliders|collider]] that is not set to a Trigger or StaticTrigger type, it will recieve objects that are released within it's collider.


<!--T:2-->
<!--T:2-->
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|ParentUnder|Slot|
|ParentUnder|Slot| The slot to parent objects under instead of the slot this component is on.
|Filter|{{RootFieldType|SyncDelegate`1|[[Type:Func`2|Func`2]]&lt;[[Type:IGrabbable|IGrabbable]], [[Type:Bool|Bool]]&gt;}}|TypeAdv1=true|
|Filter|{{RootFieldType|SyncDelegate`1|[[Type:Func`2|Func`2]]&lt;[[Type:IGrabbable|IGrabbable]], [[Type:Bool|Bool]]&gt;}}|TypeAdv1=true| A [[Sync Delegate]] that takes an [[Type:IGrabbable|IGrabbable]] and returns a [[Type:Bool|boolean]]. If a grabbable returns false when fed into this function, that IGrabbable will not be parented by this component.
}}
}}


Line 24: Line 25:
<!--T:5-->
<!--T:5-->
== Related Components ==
== Related Components ==
[[Component:Grabbable|Grabbable]]
</translate>
</translate>
[[Category:ComponentStubs]]
[[Category:Components{{#translation:}}|Grabbable Parenter]]
[[Category:Components{{#translation:}}|Grabbable Parenter]]
[[Category:Components:Transform:Interaction{{#translation:}}|Grabbable Parenter]]
[[Category:Components:Transform:Interaction{{#translation:}}|Grabbable Parenter]]

Revision as of 16:44, 20 October 2024


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


Component image 
Grabbable Parenter component as seen in the Scene Inspector

Grabbable Parenter is a component that when paired with a collider that is not set to a Trigger or StaticTrigger type, it will recieve objects that are released within it's collider.

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.
ParentUnder Slot The slot to parent objects under instead of the slot this component is on.
Filter Func`2<IGrabbable, Bool> A Sync Delegate that takes an IGrabbable and returns a boolean. If a grabbable returns false when fed into this function, that IGrabbable will not be parented by this component.

Usage

Examples

Related Components

Grabbable