Spelunx Cavern SDK
Loading...
Searching...
No Matches
OVRT_TrackedDevice.cs
Go to the documentation of this file.
1
using
UnityEngine;
2
using
UnityEngine.Events;
3
4
namespace
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
}
Spelunx.Vive.OVRT_TrackedDevice
Definition:
OVRT_TrackedDevice.cs:8
Spelunx.Vive.OVRT_TrackedDevice._onDeviceConnectedAction
UnityAction< int, bool > _onDeviceConnectedAction
Definition:
OVRT_TrackedDevice.cs:18
Spelunx.Vive.OVRT_TrackedDevice.IsValid
bool IsValid
Definition:
OVRT_TrackedDevice.cs:12
Spelunx.Vive.OVRT_TrackedDevice.DeviceIndex
int DeviceIndex
Definition:
OVRT_TrackedDevice.cs:11
Spelunx.Vive.OVRT_TrackedDevice.origin
Transform origin
Definition:
OVRT_TrackedDevice.cs:9
Spelunx.Vive.OVRT_TrackedDevice.onDeviceIndexChanged
UnityEvent< int > onDeviceIndexChanged
Definition:
OVRT_TrackedDevice.cs:16
Spelunx.Vive.OVRT_TrackedDevice.IsConnected
bool IsConnected
Definition:
OVRT_TrackedDevice.cs:13
Spelunx.Vive
Definition:
CavernInteraction.cs:4
CavernSDK
Packages
com.spelunx.cavern.vive-trackers
Runtime
Scripts
OVRT_TrackedDevice.cs
Generated by
1.9.6