API reference

OVRRaycaster Class

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

Fields

GameObject pointer[Get]
int sortOrder[Get]

Properties

Canvas canvas[Get]
OVRRayTransformer rayTransformer[Get]
override Camera eventCamera[Get]
override int sortOrderPriority[Get]

Protected Functions

OVRRaycaster ( )
override void Start ( )

Member Functions

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