-
Notifications
You must be signed in to change notification settings - Fork 2.5k
/
Copy pathBaseClass.cs
298 lines (284 loc) · 8.79 KB
/
BaseClass.cs
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
// Unity C# reference source
// Copyright (c) Unity Technologies. For terms of use, see
// https://unity3d.com/legal/licenses/Unity_Reference_Only_License
using System;
namespace UnityEngine
{
// Options for how to send a message.
public enum SendMessageOptions
{
// A receiver is required for SendMessage.
RequireReceiver = 0,
// No receiver is required for SendMessage.
DontRequireReceiver = 1
}
// The various primitives that can be created using the GameObject.CreatePrimitive function.
public enum PrimitiveType
{
// A sphere primitive
Sphere = 0,
// A capsule primitive
Capsule = 1,
// A cylinder primitive
Cylinder = 2,
// A cube primitive
Cube = 3,
// A plane primitive
Plane = 4,
// A quad primitive
Quad = 5
}
// The coordinate space in which to operate.
public enum Space
{
// Applies transformation relative to the world coordinate system
World = 0,
// Applies transformation relative to the local coordinate system
Self = 1
}
// The platform application is running. Returned by Application.platform.
// NOTE: also match with enum in SystemInfo.h
// ADD_NEW_PLATFORM_HERE
public enum RuntimePlatform
{
// In the Unity editor on Mac OS X.
OSXEditor = 0,
// In the player on Mac OS X.
OSXPlayer = 1,
// In the player on Windows.
WindowsPlayer = 2,
//*undocumented*
[System.Obsolete("WebPlayer export is no longer supported in Unity 5.4+.", true)]
OSXWebPlayer = 3,
// In the Dashboard widget on Mac OS X.
[System.Obsolete("Dashboard widget on Mac OS X export is no longer supported in Unity 5.4+.", true)]
OSXDashboardPlayer = 4,
//*undocumented*
[System.Obsolete("WebPlayer export is no longer supported in Unity 5.4+.", true)]
WindowsWebPlayer = 5,
// In the Unity editor on Windows.
WindowsEditor = 7,
// In the player on the iPhone.
IPhonePlayer = 8,
//*undocumented*
[System.Obsolete("Xbox360 export is no longer supported in Unity 5.5+.")]
XBOX360 = 10,
//*undocumented*
[System.Obsolete("PS3 export is no longer supported in Unity >=5.5.")]
PS3 = 9,
// In the player on Android devices.
Android = 11,
[System.Obsolete("NaCl export is no longer supported in Unity 5.0+.")]
NaCl = 12,
[System.Obsolete("FlashPlayer export is no longer supported in Unity 5.0+.")]
FlashPlayer = 15,
//*undocumented*
LinuxPlayer = 13,
LinuxEditor = 16,
WebGLPlayer = 17,
//*undocumented*
[System.Obsolete("Use WSAPlayerX86 instead")]
MetroPlayerX86 = 18,
WSAPlayerX86 = 18,
//*undocumented*
[System.Obsolete("Use WSAPlayerX64 instead")]
MetroPlayerX64 = 19,
WSAPlayerX64 = 19,
//*undocumented*
[System.Obsolete("Use WSAPlayerARM instead")]
MetroPlayerARM = 20,
WSAPlayerARM = 20,
[System.Obsolete("Windows Phone 8 was removed in 5.3")]
WP8Player = 21,
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("BB10Player export is no longer supported in Unity 5.4+.")]
BB10Player = 22,
[System.Obsolete("BlackBerryPlayer export is no longer supported in Unity 5.4+.")]
BlackBerryPlayer = 22,
[System.Obsolete("TizenPlayer export is no longer supported in Unity 2017.3+.")]
TizenPlayer = 23,
// In the player on PS Vita
[System.Obsolete("PSP2 is no longer supported as of Unity 2018.3")]
PSP2 = 24,
// In the player on PS4
PS4 = 25,
// In the player on PSM
[System.Obsolete("PSM export is no longer supported in Unity >= 5.3")]
PSM = 26,
// In the player on XboxOne
XboxOne = 27,
[System.Obsolete("SamsungTVPlayer export is no longer supported in Unity 2017.3+.")]
SamsungTVPlayer = 28,
[System.Obsolete("Wii U is no longer supported in Unity 2018.1+.")]
WiiU = 30,
// tvOS
tvOS = 31,
// Nintendo Switch
Switch = 32,
[System.Obsolete("Lumin is no longer supported in Unity 2022.2")]
Lumin = 33,
// BJM
[System.Obsolete("Stadia is no longer supported in Unity 2023.1")]
Stadia = 34,
// Cloud Rendering
[System.Obsolete("CloudRendering is deprecated, please use LinuxHeadlessSimulation (UnityUpgradable) -> LinuxHeadlessSimulation", false)]
CloudRendering = -1,
LinuxHeadlessSimulation = 35,
// Game Core
[System.Obsolete("GameCoreScarlett is deprecated, please use GameCoreXboxSeries (UnityUpgradable) -> GameCoreXboxSeries", false)]
GameCoreScarlett = -1, // GameCoreScarlett renumbered here so it's destinct from GameCoreXboxSeries.
GameCoreXboxSeries = 36,
GameCoreXboxOne = 37,
// PS5
PS5 = 38,
// Embedded Linux
EmbeddedLinuxArm64 = 39,
EmbeddedLinuxArm32 = 40,
EmbeddedLinuxX64 = 41,
EmbeddedLinuxX86 = 42,
// Server (Standalone subtarget)
LinuxServer = 43,
WindowsServer = 44,
OSXServer = 45,
// QNX
QNXArm32 = 46,
QNXArm64 = 47,
QNXX64 = 48,
QNXX86 = 49,
// VisionOS
VisionOS = 50,
ReservedCFE = 51,
// Kepler
KeplerArm64 = 52,
KeplerX64 = 53,
}
// The language the user's operating system is running in. Returned by Application.systemLanguage.
public enum SystemLanguage
{
//Afrikaans
Afrikaans = 0,
//Arabic
Arabic = 1,
//Basque
Basque = 2,
//Belarusian
Belarusian = 3,
//Bulgarian
Bulgarian = 4,
//Catalan
Catalan = 5,
//Chinese
Chinese = 6,
//Czech
Czech = 7,
//Danish
Danish = 8,
//Dutch
Dutch = 9,
//English
English = 10,
//Estonian
Estonian = 11,
//Faroese
Faroese = 12,
//Finnish
Finnish = 13,
//French
French = 14,
//German
German = 15,
//Greek
Greek = 16,
//Hebrew
Hebrew = 17,
[System.Obsolete("Use SystemLanguage.Hungarian instead (UnityUpgradable) -> Hungarian", true)]
Hugarian = 18,
//Icelandic
Icelandic = 19,
//Indonesian
Indonesian = 20,
//Italian
Italian = 21,
//Japanese
Japanese = 22,
//Korean
Korean = 23,
//Latvian
Latvian = 24,
//Lithuanian
Lithuanian = 25,
//Norwegian
Norwegian = 26,
//Polish
Polish = 27,
//Portuguese
Portuguese = 28,
//Romanian
Romanian = 29,
//Russian
Russian = 30,
//Serbo-Croatian
SerboCroatian = 31,
//Slovak
Slovak = 32,
//Slovenian
Slovenian = 33,
//Spanish
Spanish = 34,
//Swedish
Swedish = 35,
//Thai
Thai = 36,
//Turkish
Turkish = 37,
//Ukrainian
Ukrainian = 38,
//Vietnamese
Vietnamese = 39,
//Chinese-Simplified
ChineseSimplified = 40,
//Chinese-Traditional
ChineseTraditional = 41,
//Hindi
Hindi = 42,
//Unknown
Unknown = 43,
//Hungarian
Hungarian = 18
}
// The type of the log message in the delegate registered with Application.RegisterLogCallback.
public enum LogType
{
// LogType used for Errors.
Error = 0,
// LogType used for Asserts. (These indicate an error inside Unity itself.)
Assert = 1,
// LogType used for Warnings.
Warning = 2,
// LogType used for regular log messages.
Log = 3,
// LogType used for Exceptions.
Exception = 4
}
// The options of the log message in the delegate registered with Application.RegisterLogCallback.
// Should be kept in sync with LogOption enum in Runtime/Logging/LogAssert.h
public enum LogOption
{
// LogOption used for default behaviour
None = 0,
// LogOption used for supressing stacktraces from log message
NoStacktrace = 1,
}
// Priority of a thread.
public enum ThreadPriority
{
// Lowest thread priority
Low = 0,
// Below normal thread priority
BelowNormal = 1,
// Normal thread priority
Normal = 2,
// Highest thread priority
High = 4
}
}