Quantcast
Channel: AR/VR (XR) Discussion
Viewing all articles
Browse latest Browse all 12131

Start timer with GVR controller

$
0
0
I'm new to unity and would like to develop a simple VR game that a timer starts when the player looks at the Start button and the timer stops when the player looks at the stop button. The timer function works, but I am having trouble integrating it with the gazedAt function. At the moment, the timer starts automatically without looking at it. Any help would be great!!

Code (CSharp):
  1. using UnityEngine;
  2. using System.Collections;
  3. using UnityEngine.UI;
  4.  
  5. public class Timer : MonoBehaviour {...
Start timer with GVR controller

Viewing all articles
Browse latest Browse all 12131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>