GvrBasePointerRaycaster
This is an abstract class.This script provides shared functionality used by all Gvr raycasters.
Summary
Inheritance
Inherits from: BaseRaycasterDirect Known Subclasses:GvrPointerGraphicRaycaster, GvrPointerPhysicsRaycaster
Properties |
|
---|---|
CurrentRaycastModeForHybrid
|
Gets the mode used for raycasting.
|
Protected functions |
|
---|---|
GvrBasePointerRaycaster()
|
Initializes a new instance of the GvrBasePointerRaycaster class.
|
PerformRaycast(GvrBasePointer.PointerRay pointerRay, float radius, PointerEventData eventData, List< RaycastResult > resultAppendList)
|
virtual abstract bool
Perform raycast on the scene.
|
Public functions |
|
---|---|
GetLastRay()
|
Gets the last ray created.
|
Raycast(PointerEventData eventData, List< RaycastResult > resultAppendList)
|
override void
Raycast against the scene.
|
Properties
CurrentRaycastModeForHybrid
GvrBasePointer.RaycastMode CurrentRaycastModeForHybrid
Gets the mode used for raycasting.
The mode used for raycasting.
Protected functions
GvrBasePointerRaycaster
GvrBasePointerRaycaster()
Initializes a new instance of the GvrBasePointerRaycaster class.
PerformRaycast
virtual abstract 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. |
Public functions
GetLastRay
GvrBasePointer.PointerRay GetLastRay()
Gets the last ray created.
Details | |
---|---|
Returns |
The last ray created.
|
Raycast
override void Raycast( PointerEventData eventData, List< RaycastResult > resultAppendList )
Raycast against the scene.
Details | |||||
---|---|---|---|---|---|
Parameters |
|