API reference
API reference
Select your platform
No SDKs available
No versions available

HandPinchOffset Class

Extends MonoBehaviour
Standalone MonoBehaviour representation of a pinch offset for a specific IHand.
Though not deprecated, this is considered a legacy type and should not be used in new code without careful consideration.

Properties

The IHand to which this joint belongs.
This property is populated during MonoBehaviour start-up with the value of the _hand field, which is set through the UnityEditor.
When the attached IHand's handedness is set to Left, this property will mirror the offsets.
This allows for offset values to be set in Right hand coordinates for both Left and Right hands.
Gets and sets the position offset associated with this HandPinchOffset.
This is a low-level value which can be set to fundamentally change the behavior of the pinch offset, but this is something only experts should consider trying.
Gets and sets the rotation offset associated with this HandPinchOffset.
This is a low-level value which can be set to fundamentally change the behavior of the pinch offset, but this is something only experts should consider trying.

Protected Fields

bool _started[Get]

Protected Functions

virtual void Awake ( )
virtual void Start ( )
virtual void OnEnable ( )
virtual void OnDisable ( )

Member Functions

Convenience method for adding all required dependencies to a dynamically-instantiated HandPinchOffset, combining InjectHand(IHand) and InjectHandGrabAPI(HandGrabAPI).
Adds a IHand to a dynamically instantiated HandPinchOffset.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Adds a HandGrabAPI to a dynamically instantiated HandPinchOffset.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Adds a Unity Collider to a dynamically instantiated HandPinchOffset.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon