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.

Constructors

OVRRaycaster ()
Signature
OVRRaycaster()

Fields

pointer : GameObject
Signature
GameObject pointer
sortOrder : int
Signature
int sortOrder

Properties

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

Protected Methods

Start ()
Signature
override void Start()
Returns
override void

Methods

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