편집

다음을 통해 공유


GenericPointer Class

Definition

Base Class for pointers that don't inherit from MonoBehaviour.

public ref class GenericPointer abstract : Microsoft::MixedReality::Toolkit::Input::IMixedRealityPointer, System::Collections::IEqualityComparer
public abstract class GenericPointer : Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer, System.Collections.IEqualityComparer
type GenericPointer = class
    interface IMixedRealityPointer
    interface IEqualityComparer
Public MustInherit Class GenericPointer
Implements IEqualityComparer, IMixedRealityPointer
Inheritance
GenericPointer
Derived
Implements

Constructors

GenericPointer(String, IMixedRealityInputSource)

Constructor.

Properties

BaseCursor

The pointer's cursor.

Controller

The pointer's current controller reference.

CursorModifier

The currently active cursor modifier.

FocusTarget

The currently focused target.

InputSourceParent

This pointer's input source parent.

IsActive

Controls whether the pointer dispatches input.

IsFocusLocked

Is the focus for this pointer currently locked?

IsInteractionEnabled

Is the pointer active and have the conditions for the interaction been satisfied to enable the interaction?

IsTargetPositionLockedOnFocusLock

Specifies whether the pointer's target position (cursor) is locked to the target object when focus is locked.

PointerExtent

The pointer's maximum extent when raycasting.

PointerId

This pointer's id.

PointerName

This pointer's name.

Position

Pointer position.

PrioritizedLayerMasksOverride

The physics layers to use when performing scene queries.

Rays

The scene query rays.

RayStabilizer

Ray stabilizer used when calculating position of pointer end point.

Result

The scene query pointer result.

Rotation

Pointer rotation.

SceneQueryType

The type of physics scene query to use.

SphereCastRadius

The radius to use when SceneQueryType is set to Sphere or SphereColliders.

TeleportHotSpot System.Object.TeleportHotSpot

Methods

Equals(IMixedRealityPointer, IMixedRealityPointer)
Equals(Object)
GetHashCode()

Serves as the default hash function.

OnPostSceneQuery()

Called after performing the scene query.

OnPreCurrentPointerTargetChange()

Called during the scene query just before the current pointer target changes.

OnPreSceneQuery()

Called before performing the scene query.

Reset()

Resets pointer to initial state. After invoked pointer should be functional and ready for re-use.

Explicit Interface Implementations

IEqualityComparer.Equals(Object, Object)

Determines whether the specified objects are equal.

IEqualityComparer.GetHashCode(Object)

Returns a hash code for the specified object.

Applies to