API reference
API reference
Select your platform
No SDKs available
No versions available

RayInteractor Class

Properties

CandidateProperties : override object
[Get]
Signature
override object Oculus.Interaction.RayInteractor.CandidateProperties
CollisionInfo : SurfaceHit?
[Get]
Signature
SurfaceHit? Oculus.Interaction.RayInteractor.CollisionInfo
End : Vector3
[Get][Set]
Signature
Vector3 Oculus.Interaction.RayInteractor.End
Forward : Vector3
[Get]
Signature
Vector3 Oculus.Interaction.RayInteractor.Forward
MaxRayLength : float
[Get][Set]
Signature
float Oculus.Interaction.RayInteractor.MaxRayLength
Origin : Vector3
[Get]
Signature
Vector3 Oculus.Interaction.RayInteractor.Origin
Ray : Ray
[Get]
Signature
Ray Oculus.Interaction.RayInteractor.Ray
Rotation : Quaternion
[Get]
Signature
Quaternion Oculus.Interaction.RayInteractor.Rotation

Protected Methods

Awake ()
Signature
override void Oculus.Interaction.RayInteractor.Awake()
Returns
override void
ComputeCandidate ()
Signature
override RayInteractable Oculus.Interaction.RayInteractor.ComputeCandidate()
Returns
override RayInteractable
ComputeCandidateTiebreaker ( a , b )
Signature
override int Oculus.Interaction.RayInteractor.ComputeCandidateTiebreaker(RayInteractable a, RayInteractable b)
Returns
override int
ComputePointerPose ()
Signature
override Pose Oculus.Interaction.RayInteractor.ComputePointerPose()
Returns
override Pose
DoPreprocess ()
Signature
override void Oculus.Interaction.RayInteractor.DoPreprocess()
Returns
override void
DoSelectUpdate ()
Signature
override void Oculus.Interaction.RayInteractor.DoSelectUpdate()
Returns
override void
InteractableSelected ( interactable )
Signature
override void Oculus.Interaction.RayInteractor.InteractableSelected(RayInteractable interactable)
Parameters
interactable: RayInteractable
Returns
override void
InteractableUnselected ( interactable )
Signature
override void Oculus.Interaction.RayInteractor.InteractableUnselected(RayInteractable interactable)
Parameters
interactable: RayInteractable
Returns
override void
Start ()
Signature
override void Oculus.Interaction.RayInteractor.Start()
Returns
override void

Methods

InjectAllRayInteractor ( selector , rayOrigin )
Sets all required values for a <cref="RayInteractor" /> on a dynamically instantiated GameObject.
Signature
void Oculus.Interaction.RayInteractor.InjectAllRayInteractor(ISelector selector, Transform rayOrigin)
Parameters
selector: ISelector
rayOrigin: Transform
Returns
void
InjectOptionalEqualDistanceThreshold ( equalDistanceThreshold )
Sets an equal distance threshold for a dynamically instantiated GameObject.
Signature
void Oculus.Interaction.RayInteractor.InjectOptionalEqualDistanceThreshold(float equalDistanceThreshold)
Parameters
equalDistanceThreshold: float
Returns
void
InjectRayOrigin ( rayOrigin )
Sets a ray origin for a dynamically instantiated GameObject.
Signature
void Oculus.Interaction.RayInteractor.InjectRayOrigin(Transform rayOrigin)
Parameters
rayOrigin: Transform
Returns
void
InjectSelector ( selector )
Sets a selector for a dynamically instantiated GameObject.
Signature
void Oculus.Interaction.RayInteractor.InjectSelector(ISelector selector)
Parameters
selector: ISelector
Returns
void

Inner Class

RayCandidateProperties Class

Constructors

RayCandidateProperties ( closestInteractable , candidatePosition )
Signature
Oculus.Interaction.RayInteractor.RayCandidateProperties.RayCandidateProperties(RayInteractable closestInteractable, Vector3 candidatePosition)
Parameters
closestInteractable: RayInteractable
candidatePosition: Vector3

Properties

CandidatePosition : Vector3
[Get]
Signature
Vector3 Oculus.Interaction.RayInteractor.RayCandidateProperties.CandidatePosition
ClosestInteractable : RayInteractable
[Get]
Signature
RayInteractable Oculus.Interaction.RayInteractor.RayCandidateProperties.ClosestInteractable