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
Gaze Input in Google Cardboard App
1. Add InteractiveItem.cs script to every Selectable/Clickable object (Button, Toggle, Scroll bar etc).
InteractiveItem.cs
Code (CSharp):
- using UnityEngine;
- using System.Collections;
- using UnityEngine.UI;
- using UnityEngine.EventSystems;
- using System.Collections.Generic;
- [RequireComponent(typeof(Selectable))]
- public class InteractiveItem :...