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.

    Show / Hide Table of Contents

    Class DefaultRaycastProvider

    The default implementation of IMixedRealityRaycastProvider.

    Inheritance
    Object
    BaseService
    BaseEventSystem
    BaseCoreSystem
    DefaultRaycastProvider
    Implements
    IMixedRealityEventSystem
    IMixedRealityRaycastProvider
    IMixedRealityService
    IDisposable
    Inherited Members
    BaseCoreSystem.Registrar
    BaseEventSystem.enableDanglingHandlerDiagnostics
    BaseEventSystem.EventHandlersByType
    BaseEventSystem.EventListeners
    BaseEventSystem.HandleEvent<T>(BaseEventData, ExecuteEvents.EventFunction<T>)
    BaseEventSystem.RegisterHandler<T>(IEventSystemHandler)
    BaseEventSystem.UnregisterHandler<T>(IEventSystemHandler)
    BaseEventSystem.Register(GameObject)
    BaseEventSystem.Unregister(GameObject)
    BaseEventSystem.Destroy()
    BaseService.DefaultPriority
    BaseService.Name
    BaseService.Priority
    BaseService.ConfigurationProfile
    BaseService.Initialize()
    BaseService.Reset()
    BaseService.Enable()
    BaseService.Update()
    BaseService.LateUpdate()
    BaseService.Disable()
    BaseService.disposed
    BaseService.Dispose()
    BaseService.Dispose(Boolean)
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.Input
    Assembly: cs.temp.dll.dll
    Syntax
    public class DefaultRaycastProvider : BaseCoreSystem, IMixedRealityEventSystem, IMixedRealityRaycastProvider, IMixedRealityService, IDisposable

    Constructors

    DefaultRaycastProvider(IMixedRealityServiceRegistrar, MixedRealityInputSystemProfile)

    Declaration
    public DefaultRaycastProvider(IMixedRealityServiceRegistrar registrar, MixedRealityInputSystemProfile profile)
    Parameters
    Type Name Description
    IMixedRealityServiceRegistrar registrar
    MixedRealityInputSystemProfile profile

    Methods

    GraphicsRaycast(EventSystem, PointerEventData, LayerMask[])

    Performs a graphics raycast against the specified layerMasks.

    Declaration
    public RaycastResult GraphicsRaycast(EventSystem eventSystem, PointerEventData pointerEventData, LayerMask[] layerMasks)
    Parameters
    Type Name Description
    EventSystem eventSystem
    PointerEventData pointerEventData
    LayerMask[] layerMasks
    Returns
    Type Description
    RaycastResult

    The RaycastResult of the raycast.

    Raycast(RayStep, LayerMask[], Boolean, out MixedRealityRaycastHit)

    Performs a raycast using the specified RayStep.

    Declaration
    public bool Raycast(RayStep step, LayerMask[] prioritizedLayerMasks, bool focusIndividualCompoundCollider, out MixedRealityRaycastHit hitInfo)
    Parameters
    Type Name Description
    RayStep step
    LayerMask[] prioritizedLayerMasks
    Boolean focusIndividualCompoundCollider
    MixedRealityRaycastHit hitInfo
    Returns
    Type Description
    Boolean

    Whether or not the raycast hit something.

    SphereCast(RayStep, Single, LayerMask[], Boolean, out MixedRealityRaycastHit)

    Performs a sphere cast with the specified RayStep and radius.

    Declaration
    public bool SphereCast(RayStep step, float radius, LayerMask[] prioritizedLayerMasks, bool focusIndividualCompoundCollider, out MixedRealityRaycastHit hitInfo)
    Parameters
    Type Name Description
    RayStep step
    Single radius
    LayerMask[] prioritizedLayerMasks
    Boolean focusIndividualCompoundCollider
    MixedRealityRaycastHit hitInfo
    Returns
    Type Description
    Boolean

    Whether or not the SphereCast hit something.

    Implements

    IMixedRealityEventSystem
    IMixedRealityRaycastProvider
    IMixedRealityService
    System.IDisposable
    Back to top Generated by DocFX