API reference

OVRPhysicsRaycaster Class

Extends BaseRaycaster
Simple event system using physics raycasts.
Very closely based on UnityEngine.EventSystems.PhysicsRaycaster

Constructors

OVRPhysicsRaycaster ()
Signature
UnityEngine.EventSystems.OVRPhysicsRaycaster.OVRPhysicsRaycaster()

Protected Fields

m_EventMask : LayerMask
Layer mask used to filter events.
Always combined with the camera's culling mask if a camera is used.
Signature
LayerMask UnityEngine.EventSystems.OVRPhysicsRaycaster.m_EventMask

Fields

sortOrder : int
Signature
int UnityEngine.EventSystems.OVRPhysicsRaycaster.sortOrder

Protected Static Fields

kNoEventMaskSet : const int
Const to use for clarity when no event mask is set.
Signature
const int UnityEngine.EventSystems.OVRPhysicsRaycaster.kNoEventMaskSet

Properties

depth : int
[Get]
Depth used to determine the order of event processing.
Signature
virtual int UnityEngine.EventSystems.OVRPhysicsRaycaster.depth
eventCamera : override Camera
[Get]
Signature
override Camera UnityEngine.EventSystems.OVRPhysicsRaycaster.eventCamera
eventMask : LayerMask
[Get][Set]
Layer mask used to filter events.
Always combined with the camera's culling mask if a camera is used.
Signature
LayerMask UnityEngine.EventSystems.OVRPhysicsRaycaster.eventMask
finalEventMask : int
[Get]
Event mask used to determine which objects will receive events.
Signature
int UnityEngine.EventSystems.OVRPhysicsRaycaster.finalEventMask
sortOrderPriority : override int
[Get]
Signature
override int UnityEngine.EventSystems.OVRPhysicsRaycaster.sortOrderPriority

Methods

GetScreenPos ( worldPosition )
Get screen position of this world position as seen by the event camera of this OVRPhysicsRaycaster.
Signature
Vector2 UnityEngine.EventSystems.OVRPhysicsRaycaster.GetScreenPos(Vector3 worldPosition)
Parameters
worldPosition: Vector3
Returns
Vector2
Raycast ( eventData , resultAppendList )
Perform a raycast using the worldSpaceRay in eventData.
Signature
override void UnityEngine.EventSystems.OVRPhysicsRaycaster.Raycast(PointerEventData eventData, List< RaycastResult > resultAppendList)
Parameters
eventData: PointerEventData
resultAppendList: List< RaycastResult >
Returns
override void
Spherecast ( eventData , resultAppendList , radius )
Perform a Spherecast using the worldSpaceRay in eventData.
Signature
void UnityEngine.EventSystems.OVRPhysicsRaycaster.Spherecast(PointerEventData eventData, List< RaycastResult > resultAppendList, float radius)
Parameters
eventData: PointerEventData
resultAppendList: List< RaycastResult >
radius: float  Radius of the sphere
Returns
void