GvrRectile not responding
So I've added a GvrReticle but it doesn't respond to object within the scene by expanding the dot. Example image below.
When i move this over an object i.e. the tree's in my terrain or a cube the circle doesn't seem to expand. I've followed the following steps with setting up the GvrRectile within the scene as well.
Make the GvrRectile a child of main camera.
Add a raycaster to the main camera.
Add an event system with the script gaze input mode.
Attached are some images of the objects and the attached component.
GvrViewerMain GvrRectile Main Camera Event System
The only thing that's attached to the main camera which isn't related to the gaze input is a walking script i created with the following code within it.
public class VRLookWalk : MonoBehaviour {
public Transform vrCamera;
public float toggleAngle = 30.0f;
public float speed = 3.0f;
public bool moveForward;
private CharacterController myCC;
private AudioSource audio;
// Use this for initialization
void Start () {
myCC = GetComponent<CharacterController> ();
audio = GetComponent<AudioSource> ();
}
// Update is called once per frame
void Update () {
if (vrCamera.eulerAngles.x >= toggleAngle && vrCamera.eulerAngles.x < 90.0f)
{
moveForward = true;
} else {
moveForward = false;
}
if (moveForward) {
Vector3 forward = vrCamera.TransformDirection (Vector3.forward);
myCC.SimpleMove (forward * speed);
PlayWalking ();
} else {
StopWalking ();
}
}
void PlayWalking(){
if (!audio.isPlaying)
{
audio.PlayOneShot (audio.clip,1);
}
}
void StopWalking(){
audio.Stop ();
}
}
Answer by marytenshi · Nov 04, 2016 at 08:37 PM
You need to add an event trigger to the object you are pointing to https://forum.unity3d.com/threads/solved-gvr-reticle-not-expanding-when-an-object-is-gaze.414530/