Edit

Share via


ICursorModifier Interface

Definition

Interface for cursor modifiers that can modify a GameObject's properties.

public interface class ICursorModifier : Microsoft::MixedReality::Toolkit::Input::IMixedRealityFocusChangedHandler, UnityEngine::EventSystems::IEventSystemHandler
public interface ICursorModifier : Microsoft.MixedReality.Toolkit.Input.IMixedRealityFocusChangedHandler, UnityEngine.EventSystems.IEventSystemHandler
type ICursorModifier = interface
    interface IMixedRealityFocusChangedHandler
    interface IEventSystemHandler
Public Interface ICursorModifier
Implements IEventSystemHandler, IMixedRealityFocusChangedHandler
Derived
Implements
IMixedRealityFocusChangedHandler UnityEngine.EventSystems.IEventSystemHandler

Properties

CursorNormalOffset

Direction of the IMixedRealityCursor offset.

CursorParameters

IMixedRealityCursor animation parameters to set when this GameObject is focused. Leave empty for none.

CursorPositionOffset

How much a IMixedRealityCursor's position should be offset from the surface of the GameObject when overlapping.

CursorScaleOffset

Scale of the IMixedRealityCursor when looking at this GameObject.

HideCursorOnFocus

Should the IMixedRealityCursor be hidden when this GameObject is focused?

HostTransform

Transform for which this IMixedRealityCursor modifies applies its various properties.

SnapCursorPosition

Should the IMixedRealityCursor snap to the GameObject's position?

UseGazeBasedNormal

If true, the normal from the pointing vector will be used to orient the IMixedRealityCursor instead of the targeted GameObject's normal at point of contact.

Methods

GetCursorVisibility()

Indicates whether the IMixedRealityCursor should be visible or not.

GetModifiedPosition(IMixedRealityCursor)

Returns the IMixedRealityCursor position after considering this modifier.

GetModifiedRotation(IMixedRealityCursor)

Returns the IMixedRealityCursor rotation after considering this modifier.

GetModifiedScale(IMixedRealityCursor)

Returns the IMixedRealityCursor's local scale after considering this modifier.

GetModifiedTransform(IMixedRealityCursor, Vector3, Quaternion, Vector3)

Returns the modified Transform for the IMixedRealityCursor after considering this modifier.

OnBeforeFocusChange(FocusEventData)

Focus event that is raised before the focus is actually changed.

(Inherited from IMixedRealityFocusChangedHandler)
OnFocusChanged(FocusEventData)

Focus event that is raised when the focused object is changed.

(Inherited from IMixedRealityFocusChangedHandler)

Applies to