Extension of GraphicRaycaster to support ray casting with world space rays instead of just screen-space pointer positions More...

Inheritance diagram for OVRRaycaster:

Public Member Functions

override void Raycast (PointerEventData eventData, List< RaycastResult > resultAppendList)
 Performs a raycast using eventData.worldSpaceRay More...
 
void RaycastPointer (PointerEventData eventData, List< RaycastResult > resultAppendList)
 Performs a raycast using the pointer object attached to this OVRRaycaster More...
 
Vector2 GetScreenPosition (RaycastResult raycastResult)
 Get screen position of worldPosition contained in this RaycastResult More...
 
bool IsFocussed ()
 Is this the currently focussed Raycaster according to the InputModule More...
 
void OnPointerEnter (PointerEventData e)
 

Public Attributes

GameObject pointer
 
int sortOrder = 0
 

Protected Member Functions

 OVRRaycaster ()
 
override void Start ()
 

Properties

override Camera eventCamera [get]
 
override int sortOrderPriority [get]
 

Detailed Description

Extension of GraphicRaycaster to support ray casting with world space rays instead of just screen-space pointer positions

Constructor & Destructor Documentation

◆ OVRRaycaster()

OVRRaycaster.OVRRaycaster ( )
protected

Member Function Documentation

◆ GetScreenPosition()

Vector2 OVRRaycaster.GetScreenPosition ( RaycastResult  raycastResult)

Get screen position of worldPosition contained in this RaycastResult

Parameters
worldPosition
Returns

◆ IsFocussed()

bool OVRRaycaster.IsFocussed ( )

Is this the currently focussed Raycaster according to the InputModule

Returns

◆ OnPointerEnter()

void OVRRaycaster.OnPointerEnter ( PointerEventData  e)

◆ Raycast()

override void OVRRaycaster.Raycast ( PointerEventData  eventData,
List< RaycastResult >  resultAppendList 
)

Performs a raycast using eventData.worldSpaceRay

Parameters
eventData
resultAppendList

◆ RaycastPointer()

void OVRRaycaster.RaycastPointer ( PointerEventData  eventData,
List< RaycastResult >  resultAppendList 
)

Performs a raycast using the pointer object attached to this OVRRaycaster

Parameters
eventData
resultAppendList

◆ Start()

override void OVRRaycaster.Start ( )
protected

Member Data Documentation

◆ pointer

GameObject OVRRaycaster.pointer

◆ sortOrder

int OVRRaycaster.sortOrder = 0

Property Documentation

◆ eventCamera

override Camera OVRRaycaster.eventCamera
get

◆ sortOrderPriority

override int OVRRaycaster.sortOrderPriority
get

The documentation for this class was generated from the following file: