mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0releases/2.3.0releases/2.4.0releases/2.5.0releases/2.5.1releases/2.5.2releases/2.5.3

We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

Search Results for

    Show / Hide Table of Contents

    Interface IMixedRealityCursor

    Cursor Interface for handling input events and setting visibility.

    Inherited Members
    IMixedRealityFocusChangedHandler.OnBeforeFocusChange(FocusEventData)
    IMixedRealityFocusChangedHandler.OnFocusChanged(FocusEventData)
    IMixedRealitySourceStateHandler.OnSourceDetected(SourceStateEventData)
    IMixedRealitySourceStateHandler.OnSourceLost(SourceStateEventData)
    IMixedRealityPointerHandler.OnPointerDown(MixedRealityPointerEventData)
    IMixedRealityPointerHandler.OnPointerDragged(MixedRealityPointerEventData)
    IMixedRealityPointerHandler.OnPointerUp(MixedRealityPointerEventData)
    IMixedRealityPointerHandler.OnPointerClicked(MixedRealityPointerEventData)
    Namespace: Microsoft.MixedReality.Toolkit.Input
    Assembly: cs.temp.dll.dll
    Syntax
    public interface IMixedRealityCursor : IMixedRealityFocusChangedHandler, IMixedRealitySourceStateHandler, IMixedRealityPointerHandler, IEventSystemHandler

    Properties

    DefaultCursorDistance

    The maximum distance the cursor can be with nothing hit

    Declaration
    float DefaultCursorDistance { get; set; }
    Property Value
    Type Description
    Single

    GameObjectReference

    Returns the IMixedRealityCursor's GameObject reference.

    Declaration
    GameObject GameObjectReference { get; }
    Property Value
    Type Description
    GameObject

    The GameObject this IMixedRealityCursor component is attached to.

    IsVisible

    Is the cursor currently visible?

    Declaration
    bool IsVisible { get; }
    Property Value
    Type Description
    Boolean

    LocalScale

    Local scale of the IMixedRealityCursor.

    Declaration
    Vector3 LocalScale { get; }
    Property Value
    Type Description
    Vector3

    Pointer

    The IMixedRealityPointer this IMixedRealityCursor is associated with.

    Declaration
    IMixedRealityPointer Pointer { get; set; }
    Property Value
    Type Description
    IMixedRealityPointer

    Position

    Position of the IMixedRealityCursor.

    Declaration
    Vector3 Position { get; }
    Property Value
    Type Description
    Vector3

    Rotation

    Rotation of the IMixedRealityCursor.

    Declaration
    Quaternion Rotation { get; }
    Property Value
    Type Description
    Quaternion

    SetVisibilityOnSourceDetected

    Sets the visibility of the IMixedRealityCursor when the source is detected.

    Declaration
    bool SetVisibilityOnSourceDetected { get; set; }
    Property Value
    Type Description
    Boolean

    SurfaceCursorDistance

    Surface distance to place the cursor off of the surface at

    Declaration
    float SurfaceCursorDistance { get; }
    Property Value
    Type Description
    Single

    Methods

    Destroy()

    Utility method to destroy cursor dependencies (e.g. event subscriptions) in the system explicitly in the middle update loop. This is a "replacement" of Unity OnDestroy. Relying on Unity OnDestroy may cause event handler subscription to become invalid at the point of destroying.

    Declaration
    void Destroy()

    SetVisibility(Boolean)

    Sets the visibility of the IMixedRealityCursor.

    Declaration
    void SetVisibility(bool visible)
    Parameters
    Type Name Description
    Boolean visible

    True if cursor should be visible, false if not.

    In This Article
    • Properties
      • DefaultCursorDistance
      • GameObjectReference
      • IsVisible
      • LocalScale
      • Pointer
      • Position
      • Rotation
      • SetVisibilityOnSourceDetected
      • SurfaceCursorDistance
    • Methods
      • Destroy()
      • SetVisibility(Boolean)
    Back to top Generated by DocFX