Grabbable Item component
Grabbable Items allow players to grab and move objects.
If you attach a Grabbable Item, Movable Item component is automatically added
Grabbable Items cannot be attached to Ridable Items, Product Display Items, Interact Item Triggers.
property
property | function |
---|---|
Grip | A reference to a Transform specifying the handle coordinates and rotation. If not set, the point specified by the player will be grabbed. |
detail
In order to specify the range where objects can be grabbed, at least one Collider component is required in the same hierarchy as the Grabbable Item component or as a child.
Layers are automatically set on the GameObject to which this component is attached and on child GameObjects.