GvrControllerVisual

Provides visual feedback for the daydream controller.

Summary

Inheritance

Inherits from: GvrBaseControllerVisual

Public attributes

APP_BUTTON_ACTIVE_DURATION_SECONDS = 0.111f
const float
APP_BUTTON_RELEASE_DURATION_SECONDS = 0.0909f
const float
SYSTEM_BUTTON_ACTIVE_DURATION_SECONDS = 0.111f
const float
SYSTEM_BUTTON_RELEASE_DURATION_SECONDS = 0.0909f
const float
TOUCHPAD_CLICK_DURATION_SECONDS = 0.111f
const float
TOUCHPAD_CLICK_SCALE_DURATION_SECONDS = 0.075f
const float
TOUCHPAD_POINT_SCALE_DURATION_SECONDS = 0.15f
const float
TOUCHPAD_RELEASE_DURATION_SECONDS = 0.0909f
const float
displayState
Used to set the display state of the controller visual.
readControllerState = true
bool
Determines if the displayState is set from GvrControllerInput.

Properties

AppButtonColor
Color
SystemButtonColor
Color
TouchPadColor
Color

Protected functions

Awake()
virtual override void

Public functions

OnVisualUpdate(bool updateImmediately)
virtual override void
Override this method to update materials and other visual changes that need to happen every frame.
UpdateControllerState()
void

Structs

GvrControllerVisual.ControllerDisplayState

Public attributes

APP_BUTTON_ACTIVE_DURATION_SECONDS

const float APP_BUTTON_ACTIVE_DURATION_SECONDS = 0.111f

APP_BUTTON_RELEASE_DURATION_SECONDS

const float APP_BUTTON_RELEASE_DURATION_SECONDS = 0.0909f

SYSTEM_BUTTON_ACTIVE_DURATION_SECONDS

const float SYSTEM_BUTTON_ACTIVE_DURATION_SECONDS = 0.111f

SYSTEM_BUTTON_RELEASE_DURATION_SECONDS

const float SYSTEM_BUTTON_RELEASE_DURATION_SECONDS = 0.0909f

TOUCHPAD_CLICK_DURATION_SECONDS

const float TOUCHPAD_CLICK_DURATION_SECONDS = 0.111f

TOUCHPAD_CLICK_SCALE_DURATION_SECONDS

const float TOUCHPAD_CLICK_SCALE_DURATION_SECONDS = 0.075f

TOUCHPAD_POINT_SCALE_DURATION_SECONDS

const float TOUCHPAD_POINT_SCALE_DURATION_SECONDS = 0.15f

TOUCHPAD_RELEASE_DURATION_SECONDS

const float TOUCHPAD_RELEASE_DURATION_SECONDS = 0.0909f

displayState

ControllerDisplayState displayState

Used to set the display state of the controller visual.

This can be used for tutorials that visualize the controller or other use-cases that require displaying the controller visual without the state being determined by controller input. Additionally, it can be used to preview the controller visual in the editor. NOTE: readControllerState must be disabled to set the display state.

readControllerState

bool readControllerState = true

Determines if the displayState is set from GvrControllerInput.

Properties

AppButtonColor

Color AppButtonColor

SystemButtonColor

Color SystemButtonColor

TouchPadColor

Color TouchPadColor

Protected functions

Awake

virtual override void Awake()

Public functions

OnVisualUpdate

virtual override void OnVisualUpdate(
  bool updateImmediately
)

Override this method to update materials and other visual changes that need to happen every frame.

UpdateControllerState

void UpdateControllerState()