Show / Hide Table of Contents

    Class FingerCursor

    Cursor used to aide in near finger interactions.

    Inheritance
    Object
    BaseCursor
    FingerCursor
    Implements
    IMixedRealityCursor
    IMixedRealityFocusChangedHandler
    IMixedRealitySourceStateHandler
    IMixedRealityPointerHandler
    IEventSystemHandler
    Inherited Members
    BaseCursor.InputSystem
    BaseCursor.CursorState
    BaseCursor.CursorContext
    BaseCursor.SurfaceCursorDistance
    BaseCursor.UseUnscaledTime
    BaseCursor.PositionLerpTime
    BaseCursor.ScaleLerpTime
    BaseCursor.RotationLerpTime
    BaseCursor.LookRotationBlend
    BaseCursor.PrimaryCursorVisual
    BaseCursor.IsSourceDetected
    BaseCursor.SourceDownIds
    BaseCursor.IsPointerDown
    BaseCursor.TargetedObject
    BaseCursor.VisibleSourcesCount
    BaseCursor.targetPosition
    BaseCursor.targetScale
    BaseCursor.targetRotation
    BaseCursor.Pointer
    BaseCursor.IsPointerValid
    BaseCursor.DefaultCursorDistance
    BaseCursor.Position
    BaseCursor.Rotation
    BaseCursor.LocalScale
    BaseCursor.SetVisibility(Boolean)
    BaseCursor.Destroy()
    BaseCursor.IsVisible
    BaseCursor.SetVisibilityOnSourceDetected
    BaseCursor.GameObjectReference
    BaseCursor.OnSourceDetected(SourceStateEventData)
    BaseCursor.OnSourceLost(SourceStateEventData)
    BaseCursor.OnBeforeFocusChange(FocusEventData)
    BaseCursor.OnFocusChanged(FocusEventData)
    BaseCursor.OnPointerDown(MixedRealityPointerEventData)
    BaseCursor.OnPointerDragged(MixedRealityPointerEventData)
    BaseCursor.OnPointerClicked(MixedRealityPointerEventData)
    BaseCursor.OnPointerUp(MixedRealityPointerEventData)
    BaseCursor.Start()
    BaseCursor.OnEnable()
    BaseCursor.OnDisable()
    BaseCursor.RegisterManagers()
    BaseCursor.UnregisterManagers()
    BaseCursor.LerpToTargetTransform()
    BaseCursor.SnapToTargetTransform()
    BaseCursor.OnInputDisabled()
    BaseCursor.OnInputEnabled()
    BaseCursor.CheckCursorState()
    BaseCursor.CheckCursorContext()
    BaseCursor.OnCursorStateChange(CursorStateEnum)
    BaseCursor.OnCursorContextChange(CursorContextEnum)
    Namespace: Microsoft.MixedReality.Toolkit.Input
    Assembly: cs.temp.dll.dll
    Syntax
    public class FingerCursor : BaseCursor, IMixedRealityCursor, IMixedRealityFocusChangedHandler, IMixedRealitySourceStateHandler, IMixedRealityPointerHandler, IEventSystemHandler

    Fields

    indexFingerRingRenderer

    Declaration
    protected Renderer indexFingerRingRenderer
    Field Value
    Type Description
    Renderer

    Methods

    Awake()

    Declaration
    protected virtual void Awake()

    IsNearGrabbableObject(out Single)

    Gets if the associated sphere pointer on this controller is near any grabbable objects.

    Declaration
    protected virtual bool IsNearGrabbableObject(out float dist)
    Parameters
    Type Name Description
    Single dist

    Out parameter gets the distance to the grabbable.

    Returns
    Type Description
    Boolean

    True if associated sphere pointer is near any grabbable objects, else false.

    TryGetJoint(TrackedHandJoint, out Vector3, out Quaternion)

    Tries and get's hand joints based on the current pointer.

    Declaration
    protected bool TryGetJoint(TrackedHandJoint joint, out Vector3 position, out Quaternion rotation)
    Parameters
    Type Name Description
    TrackedHandJoint joint

    The joint type to get.

    Vector3 position

    Out parameter filled with joint position, otherwise Vector3.zero

    Quaternion rotation

    Out parameter filled with joint rotation, otherwise Quaternion.identity

    Returns
    Type Description
    Boolean

    UpdateCursorTransform()

    Override base behavior to align the cursor with the finger, else perform normal cursor transformations.

    Declaration
    protected override void UpdateCursorTransform()
    Overrides
    BaseCursor.UpdateCursorTransform()

    UpdateVisuals(Renderer, Single, Boolean)

    Applies material overrides to a ring renderer.

    Declaration
    protected virtual void UpdateVisuals(Renderer ringRenderer, float distance, bool visible)
    Parameters
    Type Name Description
    Renderer ringRenderer

    Renderer using an MRTK/Standard material with the round corner feature enabled.

    Single distance

    Distance between the ring and surface.

    Boolean visible

    Should the ring be visible?

    Implements

    IMixedRealityCursor
    IMixedRealityFocusChangedHandler
    IMixedRealitySourceStateHandler
    IMixedRealityPointerHandler
    IEventSystemHandler
    Back to top Generated by DocFX