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

OVRRaycaster Class

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

Overview

Data Fields

GameObject
pointer[Get]
int

Properties

Canvas
canvas[Get]
override Camera
override int

Object Data

override void
Start ( )

Public Member Functions

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

Details

Fields

GameObject OVRRaycaster.pointer
No description available.
int OVRRaycaster.sortOrder
No description available.

Properties

Canvas OVRRaycaster.canvas
No description available.
OVRRayTransformer OVRRaycaster.rayTransformer
No description available.
override Camera OVRRaycaster.eventCamera
No description available.
override int OVRRaycaster.sortOrderPriority
No description available.

Object Data

OVRRaycaster.OVRRaycaster ( )
No description available.
override void OVRRaycaster.Start ( )
No description available.

Member Functions

override void OVRRaycaster.Raycast
( PointerEventData eventData,
List< RaycastResult > resultAppendList )
Performs a raycast using eventData.worldSpaceRay.
Parameters
eventDataresultAppendList
void OVRRaycaster.RaycastPointer
( PointerEventData eventData,
List< RaycastResult > resultAppendList )
Performs a raycast using the pointer object attached to this OVRRaycaster.
Parameters
eventDataresultAppendList
Vector2 OVRRaycaster.GetScreenPosition
( RaycastResult raycastResult )
Get screen position of worldPosition contained in this RaycastResult.
Parameters
worldPosition
Returns
bool OVRRaycaster.IsFocussed ( )
Is this the currently focussed Raycaster according to the InputModule.
Returns
void OVRRaycaster.OnPointerEnter
( PointerEventData e )
No description available.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon