Method StartSocketSnapping
StartSocketSnapping(XRGrabInteractable)
Initiates socket snapping for a specified XRGrabInteractable object.
Declaration
protected virtual bool StartSocketSnapping(XRGrabInteractable grabInteractable)
Parameters
| Type | Name | Description |
|---|---|---|
| XRGrabInteractable | grabInteractable | The XRGrabInteractable object to initiate socket snapping for. |
Returns
| Type | Description |
|---|---|
| bool | Returns true if the operation is successful; false if the socket snapping has already started for the interactable or if the number of interactables with socket transformer exceeds the socket limit. |
Remarks
If the socket snapping has already started for the interactable, or if the number of interactables with socket transformer exceeds the socket limit, the method does nothing. Otherwise, it adds the specified grab interactable to the socket grab transformer and adds it to the global and local interactables with socket transformer lists.