This website uses cookies to improve our services and deliver relevant ads.
By interacting with this site, you agree to this use. For more information, see our Cookies Policy

Unity 1.26 Reference Guide

UnityEngine::EventSystems::OVRPhysicsRaycaster Class Reference

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

Object Data

const int
Const to use for clarity when no event mask is set
LayerMask
Layer mask used to filter events.

Properties

override Camera
eventCamera ( ) [Get]
int
depth ( ) [Get]
Depth used to determine the order of event processing.
override int
int
finalEventMask ( ) [Get]
Event mask used to determine which objects will receive events.
LayerMask
eventMask ( ) [Get]
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

Detailed Description

Very closely based on UnityEngine.EventSystems.PhysicsRaycaster

Object Data Documentation

const int UnityEngine.EventSystems.OVRPhysicsRaycaster.kNoEventMaskSet ( )
Const to use for clarity when no event mask is set
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.

Property Documentation

override Camera UnityEngine.EventSystems.OVRPhysicsRaycaster.eventCamera ( )
virtual int UnityEngine.EventSystems.OVRPhysicsRaycaster.depth ( )
Depth used to determine the order of event processing.
override int UnityEngine.EventSystems.OVRPhysicsRaycaster.sortOrderPriority ( )
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.

Field Documentation

int UnityEngine.EventSystems.OVRPhysicsRaycaster.sortOrder ( )

Object Data Documentation

UnityEngine.EventSystems.OVRPhysicsRaycaster.OVRPhysicsRaycaster ( )

Member Function Documentation

override void UnityEngine.EventSystems.OVRPhysicsRaycaster.Raycast ( PointerEventData eventData, List< RaycastResult > resultAppendList )
Perform a raycast using the worldSpaceRay in eventData.
Parameters
eventData resultAppendList
void UnityEngine.EventSystems.OVRPhysicsRaycaster.Spherecast ( PointerEventData eventData, List< RaycastResult > resultAppendList, float radius )
Perform a Spherecast using the worldSpaceRay in eventData.
Parameters
eventData resultAppendList radius
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
The documentation for this class was generated from the following file: Oculus/VR/Scripts/Util/OVRPhysicsRaycaster.cs