Spelunx Cavern SDK
 
Loading...
Searching...
No Matches
OVRT_TrackedDevice.cs
Go to the documentation of this file.
1using UnityEngine;
2using UnityEngine.Events;
3
4namespace Spelunx.Vive
5{
6 // A class that represents both Vive Trackers and Vive Controllers
7 public abstract class OVRT_TrackedDevice : MonoBehaviour
8 {
9 public Transform origin;
10
11 public int DeviceIndex { get; protected set; } = -1;
12 public bool IsValid { get; protected set; }
13 public bool IsConnected { get; protected set; }
14
15 [HideInInspector]
16 public UnityEvent<int> onDeviceIndexChanged;
17
18 protected UnityAction<int, bool> _onDeviceConnectedAction;
19 }
20}
UnityAction< int, bool > _onDeviceConnectedAction