BaseControllerPointer.OnSceneQuery Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
OnSceneQuery(LayerMask[], Boolean, MixedRealityRaycastHit, RayStep, Int32) |
Called to have the pointer query the scene to determine which objects it is hitting. Updates hitinfo. Used when the method for querying the scene utilizes a RaycastHit, such as when using UnityEngine.Physics.Raycast |
OnSceneQuery(LayerMask[], Boolean, GameObject, Vector3, Single) |
Called to have the pointer query the scene to determine which objects it is hitting. Updates hitObject, hitPoint, and hitDistance. Used when the method for querying the scene does not utilize a RaycastHit. Examples of this include UnityEngine.Physics.SphereOverlap, which performs no raycast calls |
OnSceneQuery(LayerMask[], Boolean, MixedRealityRaycastHit, RayStep, Int32)
Called to have the pointer query the scene to determine which objects it is hitting. Updates hitinfo. Used when the method for querying the scene utilizes a RaycastHit, such as when using UnityEngine.Physics.Raycast
public:
virtual bool OnSceneQuery(cli::array <UnityEngine::LayerMask> ^ prioritizedLayerMasks, bool focusIndividualCompoundCollider, [Runtime::InteropServices::Out] Microsoft::MixedReality::Toolkit::Input::MixedRealityRaycastHit % hitInfo, [Runtime::InteropServices::Out] Microsoft::MixedReality::Toolkit::Physics::RayStep % Ray, [Runtime::InteropServices::Out] int % rayStepIndex);
public virtual bool OnSceneQuery (UnityEngine.LayerMask[] prioritizedLayerMasks, bool focusIndividualCompoundCollider, out Microsoft.MixedReality.Toolkit.Input.MixedRealityRaycastHit hitInfo, out Microsoft.MixedReality.Toolkit.Physics.RayStep Ray, out int rayStepIndex);
abstract member OnSceneQuery : UnityEngine.LayerMask[] * bool * MixedRealityRaycastHit * RayStep * int -> bool
override this.OnSceneQuery : UnityEngine.LayerMask[] * bool * MixedRealityRaycastHit * RayStep * int -> bool
Public Overridable Function OnSceneQuery (prioritizedLayerMasks As LayerMask(), focusIndividualCompoundCollider As Boolean, ByRef hitInfo As MixedRealityRaycastHit, ByRef Ray As RayStep, ByRef rayStepIndex As Integer) As Boolean
Parameters
- prioritizedLayerMasks
- UnityEngine.LayerMask[]
- focusIndividualCompoundCollider
- Boolean
- hitInfo
- MixedRealityRaycastHit
- Ray
- RayStep
- rayStepIndex
- Int32
Returns
Implements
Applies to
OnSceneQuery(LayerMask[], Boolean, GameObject, Vector3, Single)
Called to have the pointer query the scene to determine which objects it is hitting. Updates hitObject, hitPoint, and hitDistance. Used when the method for querying the scene does not utilize a RaycastHit. Examples of this include UnityEngine.Physics.SphereOverlap, which performs no raycast calls
public:
virtual bool OnSceneQuery(cli::array <UnityEngine::LayerMask> ^ prioritizedLayerMasks, bool focusIndividualCompoundCollider, [Runtime::InteropServices::Out] UnityEngine::GameObject ^ % hitObject, [Runtime::InteropServices::Out] UnityEngine::Vector3 % hitPoint, [Runtime::InteropServices::Out] float % hitDistance);
public virtual bool OnSceneQuery (UnityEngine.LayerMask[] prioritizedLayerMasks, bool focusIndividualCompoundCollider, out UnityEngine.GameObject hitObject, out UnityEngine.Vector3 hitPoint, out float hitDistance);
abstract member OnSceneQuery : UnityEngine.LayerMask[] * bool * GameObject * Vector3 * single -> bool
override this.OnSceneQuery : UnityEngine.LayerMask[] * bool * GameObject * Vector3 * single -> bool
Public Overridable Function OnSceneQuery (prioritizedLayerMasks As LayerMask(), focusIndividualCompoundCollider As Boolean, ByRef hitObject As GameObject, ByRef hitPoint As Vector3, ByRef hitDistance As Single) As Boolean
Parameters
- prioritizedLayerMasks
- UnityEngine.LayerMask[]
- focusIndividualCompoundCollider
- Boolean
- hitObject
- UnityEngine.GameObject
- hitPoint
- UnityEngine.Vector3
- hitDistance
- Single