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

OVRPhysicsRaycaster Class

Simple event system using physics raycasts.
UnityEngine::EventSystems::OVRPhysicsRaycaster extends BaseRaycaster.

Overview

Object Data

static const int
Const to use for clarity when no event mask is set.

Object Data

LayerMask
Layer mask used to filter events.

Properties

override Camera
int
depth[Get]
Depth used to determine the order of event processing.
override int
int
Event mask used to determine which objects will receive events.
LayerMask
Layer mask used to filter events.

Data Fields

int

Object Data

Public Member Functions

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

Details

Detailed Description

Very closely based on UnityEngine.EventSystems.PhysicsRaycaster

Object Data

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

Object Data

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

Properties

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

Fields

int UnityEngine.EventSystems.OVRPhysicsRaycaster.sortOrder
No description available.

Object Data

UnityEngine.EventSystems.OVRPhysicsRaycaster.OVRPhysicsRaycaster ( )
No description available.

Member Functions

override void UnityEngine.EventSystems.OVRPhysicsRaycaster.Raycast
( PointerEventData eventData,
List< RaycastResult > resultAppendList )
Perform a raycast using the worldSpaceRay in eventData.
Parameters
eventDataresultAppendList
void UnityEngine.EventSystems.OVRPhysicsRaycaster.Spherecast
( PointerEventData eventData,
List< RaycastResult > resultAppendList,
float radius )
Perform a Spherecast using the worldSpaceRay in eventData.
Parameters
eventDataresultAppendListradius
Radius of the sphere
Vector2 UnityEngine.EventSystems.OVRPhysicsRaycaster.GetScreenPos
( Vector3 worldPosition )
Get screen position of this world position as seen by the event camera of this OVRPhysicsRaycaster.
Parameters
worldPosition
Returns
Did you find this page helpful?
Thumbs up icon
Thumbs down icon