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

Gaze Input in Google Cardboard App

$
0
0
I wrote these scripts to use gaze input with Google Cardboard SDK. Please feel free to use it and let me know if there is any issue with this.

1. Add InteractiveItem.cs script to every Selectable/Clickable object (Button, Toggle, Scroll bar etc).

InteractiveItem.cs

Code (CSharp):
  1. using UnityEngine;
  2. using System.Collections;
  3. using UnityEngine.UI;
  4. using UnityEngine.EventSystems;
  5. using System.Collections.Generic;
  6.  
  7. [RequireComponent(typeof(Selectable))]
  8. public class InteractiveItem :...
Gaze Input in Google Cardboard App

Viewing all articles
Browse latest Browse all 12131

Trending Articles



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