Class DefaultRaycastProvider
The default implementation of IMixedRealityRaycastProvider.
Inherited Members
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. |