m Made the example video embedded, also fixed a typo.
(6 intermediate revisions by 4 users not shown)
Line 7:
Line 7:
|Name=Grabbable Parenter
|Name=Grabbable Parenter
}}
}}
Grabbable Parenter is a component that when paired with a [[collider]] that is not set to a Trigger or StaticTrigger type, it will receive objects that are released within it's collider. This is a volume based alternative to [[Component:GrabbableReceiverSurface|Grabbable Receiver Surface]].
<!--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|WorldDelegate|
|Filter|{{RootFieldType|SyncDelegate`1|[[Type:Func`2|Func`2]]<[[Type:IGrabbable|IGrabbable]], [[Type:Bool|Bool]]>}}|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.
}}
}}
<!--T:3-->
<!--T:3-->
== Usage ==
== Behavior ==
Unlike [[Component:GrabbableReceiverSurface|Grabbable Receiver Surface]], [[Component:Grabbable|Grabbable]] objects parented to this Slot will be reparented to it when dropped outside of its collider. This can be prevented with the [[Component:GrabbableReparentBlock|GrabbableReparentBlock]] component.
<!--T:4-->
<!--T:4-->
== Examples ==
== Examples ==
* [https://www.youtube.com/watch?v=sEAePnKuXGk GrabbableParenter] by [[User:ProbablePrime|ProbablePrime]]
[[User:ProbablePrime|ProbablePrime]]'s tutorial on GrabbableParenter:
Grabbable Parenter is a component that when paired with a collider that is not set to a Trigger or StaticTrigger type, it will receive objects that are released within it's collider. This is a volume based alternative to Grabbable Receiver Surface.
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.