forked from Unity-Technologies/UnityCsReference
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVRNodeState.deprecated.cs
More file actions
137 lines (121 loc) · 4.59 KB
/
Copy pathVRNodeState.deprecated.cs
File metadata and controls
137 lines (121 loc) · 4.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
// Unity C# reference source
// Copyright (c) Unity Technologies. For terms of use, see
// https://unity3d.com/legal/licenses/Unity_Reference_Only_License
using System;
using System.Runtime.InteropServices;
using UnityEngine.Scripting;
namespace UnityEngine.VR
{
[Obsolete("VRNodeState has been moved and renamed. Use UnityEngine.XR.XRNodeState instead (UnityUpgradable) -> UnityEngine.XR.XRNodeState", true)]
[StructLayout(LayoutKind.Sequential)]
public struct VRNodeState
{
// Properties
public ulong uniqueID
{
get
{
throw new NotSupportedException("VRNodeState has been moved and renamed. Use UnityEngine.XR.XRNodeState instead.");
}
set
{
throw new NotSupportedException("VRNodeState has been moved and renamed. Use UnityEngine.XR.XRNodeState instead.");
}
}
public VRNode nodeType
{
get
{
throw new NotSupportedException("VRNodeState has been moved and renamed. Use UnityEngine.XR.XRNodeState instead.");
}
set
{
throw new NotSupportedException("VRNodeState has been moved and renamed. Use UnityEngine.XR.XRNodeState instead.");
}
}
public bool tracked
{
get
{
throw new NotSupportedException("VRNodeState has been moved and renamed. Use UnityEngine.XR.XRNodeState instead.");
}
set
{
throw new NotSupportedException("VRNodeState has been moved and renamed. Use UnityEngine.XR.XRNodeState instead.");
}
}
public Vector3 position
{
set
{
throw new NotSupportedException("VRNodeState has been moved and renamed. Use UnityEngine.XR.XRNodeState instead.");
}
}
public Quaternion rotation
{
set
{
throw new NotSupportedException("VRNodeState has been moved and renamed. Use UnityEngine.XR.XRNodeState instead.");
}
}
public Vector3 velocity
{
set
{
throw new NotSupportedException("VRNodeState has been moved and renamed. Use UnityEngine.XR.XRNodeState instead.");
}
}
public Vector3 angularVelocity
{
set
{
throw new NotSupportedException("VRNodeState has been moved and renamed. Use UnityEngine.XR.XRNodeState instead.");
}
}
public Vector3 acceleration
{
set
{
throw new NotSupportedException("VRNodeState has been moved and renamed. Use UnityEngine.XR.XRNodeState instead.");
}
}
public Vector3 angularAcceleration
{
set
{
throw new NotSupportedException("VRNodeState has been moved and renamed. Use UnityEngine.XR.XRNodeState instead.");
}
}
// Getters
public bool TryGetPosition(out Vector3 position)
{
position = new Vector3();
throw new NotSupportedException("VRNodeState has been moved and renamed. Use UnityEngine.XR.XRNodeState instead.");
}
public bool TryGetRotation(out Quaternion rotation)
{
rotation = new Quaternion();
throw new NotSupportedException("VRNodeState has been moved and renamed. Use UnityEngine.XR.XRNodeState instead.");
}
public bool TryGetVelocity(out Vector3 velocity)
{
velocity = new Vector3();
throw new NotSupportedException("VRNodeState has been moved and renamed. Use UnityEngine.XR.XRNodeState instead.");
}
public bool TryGetAngularVelocity(out Vector3 angularVelocity)
{
angularVelocity = new Vector3();
throw new NotSupportedException("VRNodeState has been moved and renamed. Use UnityEngine.XR.XRNodeState instead.");
}
public bool TryGetAcceleration(out Vector3 acceleration)
{
acceleration = new Vector3();
throw new NotSupportedException("VRNodeState has been moved and renamed. Use UnityEngine.XR.XRNodeState instead.");
}
public bool TryGetAngularAcceleration(out Vector3 angularAcceleration)
{
angularAcceleration = new Vector3();
throw new NotSupportedException("VRNodeState has been moved and renamed. Use UnityEngine.XR.XRNodeState instead.");
}
}
}