GvrPointerGraphicRaycaster
This script provides a raycaster for use with the GvrPointerInputModule
.
Summary
This behaves similarly to the standards Graphic raycaster, except that it utilize raycast modes specifically for Gvr.
See GvrBasePointerRaycaster.cs
and GvrPointerInputModule.cs
for more details.
Inheritance
Inherits from: GvrBasePointerRaycaster
Public types |
|
---|---|
BlockingObjects{
|
enum Types of blocking objects this object's raycasts can hit. |
Public attributes |
|
---|---|
blockingMask = NO_EVENT_MASK_SET
|
LayerMask
The blocking layer mask to use when raycasting.
|
blockingObjects = BlockingObjects.ThreeD
|
The type of objects which can block raycasts.
|
ignoreReversedGraphics = true
|
bool
Flag for ignoring reversed graphics direction.
|
Properties |
|
---|---|
eventCamera
|
override Camera
Gets the event Camera used for gaze-based raycasts.
|
Protected functions |
|
---|---|
GvrPointerGraphicRaycaster()
|
Initializes a new instance of the GvrPointerGraphicRaycaster class.
|
PerformRaycast(GvrBasePointer.PointerRay pointerRay, float radius, PointerEventData eventData, List< RaycastResult > resultAppendList)
|
virtual override bool
Perform raycast on the scene.
|
Public types
BlockingObjects
BlockingObjects
Public attributes
blockingMask
LayerMask blockingMask = NO_EVENT_MASK_SET
The blocking layer mask to use when raycasting.
blockingObjects
BlockingObjects blockingObjects = BlockingObjects.ThreeD
The type of objects which can block raycasts.
ignoreReversedGraphics
bool ignoreReversedGraphics = true
Flag for ignoring reversed graphics direction.
Properties
eventCamera
override Camera eventCamera
Gets the event Camera used for gaze-based raycasts.
The event camera.
Protected functions
GvrPointerGraphicRaycaster
GvrPointerGraphicRaycaster()
Initializes a new instance of the GvrPointerGraphicRaycaster class.
PerformRaycast
virtual override bool PerformRaycast( GvrBasePointer.PointerRay pointerRay, float radius, PointerEventData eventData, List< RaycastResult > resultAppendList )
Perform raycast on the scene.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
|
||||||||
Returns |
Returns
true if the Raycast has at least one hit, false otherwise. |