IGvrInputModuleController
Interface for manipulating an input module used by GvrPointerInputModuleImpl.
Summary
Inheritance
Direct Known Subclasses:GvrPointerInputModule
Properties |
|
|---|---|
RaycastResultCache
|
List< RaycastResult >
Gets the raycast result cache list.
|
eventSystem
|
EventSystem
Gets a reference to the event system.
|
Public functions |
|
|---|---|
Deactivate()
|
void
Deactivate the controller.
|
FindCommonRoot(GameObject g1, GameObject g2)
|
GameObject
Given two game objects, return a common root game object, or null if there is no common root.
|
FindFirstRaycast(List< RaycastResult > candidates)
|
RaycastResult
Return the first valid raycast result.
|
GetBaseEventData()
|
BaseEventData
Gets a
BaseEventData that can be used by the EventSystem. |
ShouldActivate()
|
bool
Whether the controller should be activated.
|
Properties
RaycastResultCache
List< RaycastResult > RaycastResultCache
Gets the raycast result cache list.
The raycast result cache list.
eventSystem
EventSystem eventSystem
Gets a reference to the event system.
A reference to the event system.
Public functions
Deactivate
void Deactivate()
Deactivate the controller.
FindCommonRoot
GameObject FindCommonRoot( GameObject g1, GameObject g2 )
Given two game objects, return a common root game object, or null if there is no common root.
| Details | |||||
|---|---|---|---|---|---|
| Parameters |
|
||||
| Returns |
The common root.
|
FindFirstRaycast
RaycastResult FindFirstRaycast( List< RaycastResult > candidates )
Return the first valid raycast result.
| Details | |||
|---|---|---|---|
| Parameters |
|
||
| Returns |
The first raycast.
|
GetBaseEventData
BaseEventData GetBaseEventData()
Gets a BaseEventData that can be used by the EventSystem.
| Details | |
|---|---|
| Returns |
A
BaseEventData that can be used by the EventSystem. |
ShouldActivate
bool ShouldActivate()
Whether the controller should be activated.
| Details | |
|---|---|
| Returns |
Returns
true if the controller should be activated, false otherwise. |