GvrPointerPhysicsRaycaster

This script provides a raycaster for use with the GvrPointerInputModule.

Summary

It behaves similarly to the standards Physics raycaster, except that it utilize raycast modes specifically for Gvr.

View GvrBasePointerRaycaster.cs and GvrPointerInputModule.cs for more details.

Inheritance

Inherits from: GvrBasePointerRaycaster

Protected attributes

NO_EVENT_MASK_SET = -1
const int
Const to use for clarity when no event mask is set.
raycasterEventMask = NO_EVENT_MASK_SET
LayerMask
Layer mask used to filter events. Always combined with the camera's culling mask if a camera is used.

Properties

MaxRaycastHits
int
eventCamera
override Camera
Camera used for masking layers and determining the screen position of the raycast result.
eventMask
LayerMask
Layer mask used to filter events. Always combined with the camera's culling mask if a camera is used.
finalEventMask
int
Event mask used to determine which objects will receive events.

Protected functions

Awake()
override void
GvrPointerPhysicsRaycaster()
PerformRaycast(GvrBasePointer.PointerRay pointerRay, float radius, PointerEventData eventData, List< RaycastResult > resultAppendList)
virtual override bool

Protected attributes

NO_EVENT_MASK_SET

const int NO_EVENT_MASK_SET = -1

Const to use for clarity when no event mask is set.

raycasterEventMask

LayerMask raycasterEventMask = NO_EVENT_MASK_SET

Layer mask used to filter events. Always combined with the camera's culling mask if a camera is used.

Properties

MaxRaycastHits

int MaxRaycastHits

eventCamera

override Camera eventCamera

Camera used for masking layers and determining the screen position of the raycast result.

eventMask

LayerMask eventMask

Layer mask used to filter events. Always combined with the camera's culling mask if a camera is used.

finalEventMask

int finalEventMask

Event mask used to determine which objects will receive events.

Protected functions

Awake

override void Awake()

GvrPointerPhysicsRaycaster

 GvrPointerPhysicsRaycaster()

PerformRaycast

virtual override bool PerformRaycast(
  GvrBasePointer.PointerRay pointerRay,
  float radius,
  PointerEventData eventData,
  List< RaycastResult > resultAppendList
)