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

OVRRaycaster Class

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

Constructors

OVRRaycaster ()
Signature
OVRRaycaster.OVRRaycaster()

Fields

pointer : GameObject
Signature
GameObject OVRRaycaster.pointer
sortOrder : int
Signature
int OVRRaycaster.sortOrder

Properties

eventCamera : override Camera
[Get]
Signature
override Camera OVRRaycaster.eventCamera
sortOrderPriority : override int
[Get]
Signature
override int OVRRaycaster.sortOrderPriority

Protected Methods

Start ()
Signature
override void OVRRaycaster.Start()
Returns
override void

Methods

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