Property | Type | Description | |
---|---|---|---|
controller | SteamVR_Controller.Device, | ||
createRenderModel | bool | ||
hoverLayerMask | LayerMask | ||
hoverSphereRadius | float | ||
hoverSphereTransform | Transform | ||
hoverUpdateInterval | float | ||
noSteamVRFallbackCamera | Camera | ||
otherHand | VRHand, | ||
showDebugText | bool | ||
showRenderModel | bool | ||
spewDebugText | bool | ||
startingHandType | HandType |
Method | Description | |
---|---|---|
AttachObject ( GameObject objectToAttach, AttachmentFlags flags = defaultAttachmentFlags, string attachmentPoint = "" ) : void |
Attach a GameObject to this GameObject.
|
|
Awake ( ) : void | ||
DestroyAttachedObjects ( ) : void | ||
DetachObject ( GameObject objectToDetach, bool restoreOriginalParent = true ) : void |
Detach this GameObject from the attached object stack of this VRHand.
|
|
GetAttachmentTransform ( string attachmentPoint = "" ) : Transform | ||
GetStandardInteractionButton ( ) : bool |
Is the standard interaction button being pressed? In VR, this is a trigger press. In 2D fallback, this is a mouse left-click.
|
|
GetStandardInteractionButtonDown ( ) : bool |
Was the standard interaction button just pressed? In VR, this is a trigger press. In 2D fallback, this is a mouse left-click.
|
|
GetStandardInteractionButtonUp ( ) : bool |
Was the standard interaction button just released? In VR, this is a trigger press. In 2D fallback, this is a mouse left-click.
|
|
GetTrackedObjectAngularVelocity ( ) : Vector3 |
Get the world angular velocity of the VR Hand. Note: controller velocity value only updates on controller events (Button but and down) so good for throwing
|
|
GetTrackedObjectVelocity ( ) : Vector3 |
Get the world velocity of the VR Hand. Note: controller velocity value only updates on controller events (Button but and down) so good for throwing
|
|
GuessCurrentHandType ( ) : HandType |
Guess the type of this VRHand.
|
|
HoverLock ( VRInteractable interactable ) : void |
Continue to hover over this object indefinitely, whether or not the VRHand moves out of its interaction trigger volume.
|
|
HoverUnlock ( VRInteractable interactable ) : void |
Stop hovering over this object indefinitely.
|
|
OnDisable ( ) : void | ||
OnDrawGizmos ( ) : void | ||
OnEnable ( ) : void | ||
Update ( ) : void | ||
UpdateDebugText ( ) : void | ||
UpdateHovering ( ) : void | ||
UpdateNoSteamVRFallback ( ) : void |
Method | Description | |
---|---|---|
CleanUpAttachedObjectStack ( ) : void | ||
InitController ( int index ) : void | ||
Start ( ) : IEnumerator | ||
VRHandDebugLog ( string msg ) : void |
public AttachObject ( GameObject objectToAttach, AttachmentFlags flags = defaultAttachmentFlags, string attachmentPoint = "" ) : void | ||
objectToAttach | GameObject | The GameObject to attach. |
flags | AttachmentFlags | The flags to use for attaching the object. |
attachmentPoint | string | Name of the GameObject in the hierarchy of this VRHand which should act as the attachment point for this GameObject. |
return | void |
public DetachObject ( GameObject objectToDetach, bool restoreOriginalParent = true ) : void | ||
objectToDetach | GameObject | The GameObject to detach from this VRHand |
restoreOriginalParent | bool | |
return | void |
public GetAttachmentTransform ( string attachmentPoint = "" ) : Transform | ||
attachmentPoint | string | |
return | Transform |
public GetStandardInteractionButton ( ) : bool | ||
return | bool |
public GetStandardInteractionButtonDown ( ) : bool | ||
return | bool |
public GetStandardInteractionButtonUp ( ) : bool | ||
return | bool |
public GetTrackedObjectAngularVelocity ( ) : Vector3 | ||
return | Vector3 |
public GetTrackedObjectVelocity ( ) : Vector3 | ||
return | Vector3 |
public HoverLock ( VRInteractable interactable ) : void | ||
interactable | VRInteractable | The VRInteractable to hover over indefinitely. |
return | void |
public HoverUnlock ( VRInteractable interactable ) : void | ||
interactable | VRInteractable | The hover-locked VRInteractable to stop hovering over indefinitely. |
return | void |
public SteamVR_Controller.Device, controller | ||
return | SteamVR_Controller.Device, |