Downloaded the GoogleVR SDK yesterday and am working in Unity on creating a simple mobile VR application. I am attempting to use the if (GvrViewer.Instance.Triggered){} if statement and I get the following compiler error error CS0103: The name GvrViewer does not exist in the current context.
I have reviewed the SDK API and the class still exists, does anyone know why my issue would be?
Code Snippet:
void Update () {
if (GvrViewer.Instance.Triggered || Input.GetKeyDown (“space”)) {
RaycastHit hit;
if (Physics.Raycast (transform.position, transform.forward, out hit)) {
Debug.Log (hit.transform.name);
}
}
}
