forked from jacksondunstan/UnityNativeScripting
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBindings.cs
More file actions
8918 lines (8399 loc) · 371 KB
/
Copy pathBindings.cs
File metadata and controls
8918 lines (8399 loc) · 371 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
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
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
using AOT;
using System;
using System.Collections;
using System.IO;
using System.Runtime.InteropServices;
using UnityEngine;
using UnityEngine.Assertions;
namespace NativeScript
{
/// <summary>
/// Internals of the bindings between native and .NET code.
/// Game code shouldn't go here.
/// </summary>
/// <author>
/// Jackson Dunstan, 2017, http://JacksonDunstan.com
/// </author>
/// <license>
/// MIT
/// </license>
public static class Bindings
{
// Holds objects and provides handles to them in the form of ints
public static class ObjectStore
{
// Stored objects. The first is never used so 0 can be "null".
static object[] objects;
// Stack of available handles
static int[] handles;
// Hash table of stored objects to their handles.
static object[] keys;
static int[] values;
// Index of the next available handle
static int nextHandleIndex;
// The maximum number of objects to store. Must be positive.
static int maxObjects;
public static void Init(int maxObjects)
{
ObjectStore.maxObjects = maxObjects;
// Initialize the objects as all null plus room for the
// first to always be null.
objects = new object[maxObjects + 1];
// Initialize the handles stack as 1, 2, 3, ...
handles = new int[maxObjects];
for (
int i = 0, handle = maxObjects;
i < maxObjects;
++i, --handle)
{
handles[i] = handle;
}
nextHandleIndex = maxObjects - 1;
// Initialize the hash table
keys = new object[maxObjects];
values = new int[maxObjects];
}
public static int Store(object obj)
{
// Null is always zero
if (object.ReferenceEquals(obj, null))
{
return 0;
}
lock (objects)
{
// Pop a handle off the stack
int handle = handles[nextHandleIndex];
nextHandleIndex--;
// Store the object
objects[handle] = obj;
// Insert into the hash table
int initialIndex = (int)(
((uint)obj.GetHashCode()) % maxObjects);
int index = initialIndex;
do
{
if (object.ReferenceEquals(keys[index], null))
{
keys[index] = obj;
values[index] = handle;
break;
}
index = (index + 1) % maxObjects;
}
while (index != initialIndex);
return handle;
}
}
public static object Get(int handle)
{
return objects[handle];
}
public static int GetHandle(object obj)
{
// Null is always zero
if (object.ReferenceEquals(obj, null))
{
return 0;
}
lock (objects)
{
// Look up the object in the hash table
int initialIndex = (int)(
((uint)obj.GetHashCode()) % maxObjects);
int index = initialIndex;
do
{
if (object.ReferenceEquals(keys[index], obj))
{
return values[index];
}
index = (index + 1) % maxObjects;
}
while (index != initialIndex);
}
// Object not found
return Store(obj);
}
public static object Remove(int handle)
{
// Null is never stored, so there's nothing to remove
if (handle == 0)
{
return null;
}
lock (objects)
{
// Forget the object
object obj = objects[handle];
objects[handle] = null;
// Push the handle onto the stack
nextHandleIndex++;
handles[nextHandleIndex] = handle;
// Remove the object from the hash table
int initialIndex = (int)(
((uint)obj.GetHashCode()) % maxObjects);
int index = initialIndex;
do
{
if (object.ReferenceEquals(keys[index], obj))
{
// Only the key needs to be removed (set to null)
// because values corresponding to null will never
// be read and the values are just integers, so
// we're not holding on to a managed reference that
// will prevent GC.
keys[index] = null;
break;
}
index = (index + 1) % maxObjects;
}
while (index != initialIndex);
return obj;
}
}
}
// Holds structs and provides handles to them in the form of ints
public static class StructStore<T>
where T : struct
{
// Stored structs. The first is never used so 0 can be "null".
static T[] structs;
// Stack of available handles
static int[] handles;
// Index of the next available handle
static int nextHandleIndex;
public static void Init(int maxStructs)
{
// Initialize the objects as all default plus room for the
// first to always be unused.
structs = new T[maxStructs + 1];
// Initialize the handles stack as 1, 2, 3, ...
handles = new int[maxStructs];
for (
int i = 0, handle = maxStructs;
i < maxStructs;
++i, --handle)
{
handles[i] = handle;
}
nextHandleIndex = maxStructs - 1;
}
public static int Store(T structToStore)
{
lock (structs)
{
// Pop a handle off the stack
int handle = handles[nextHandleIndex];
nextHandleIndex--;
// Store the struct
structs[handle] = structToStore;
return handle;
}
}
public static void Replace(int handle, ref T structToStore)
{
structs[handle] = structToStore;
}
public static T Get(int handle)
{
return structs[handle];
}
public static void Remove(int handle)
{
if (handle != 0)
{
lock (structs)
{
// Forget the struct
structs[handle] = default(T);
// Push the handle onto the stack
nextHandleIndex++;
handles[nextHandleIndex] = handle;
}
}
}
}
/// <summary>
/// A reusable version of UnityEngine.WaitForSecondsRealtime to avoid
/// GC allocs
/// </summary>
class ReusableWaitForSecondsRealtime : CustomYieldInstruction
{
private float waitTime;
public float WaitTime
{
set
{
waitTime = Time.realtimeSinceStartup + value;
}
}
public override bool keepWaiting
{
get
{
return Time.realtimeSinceStartup < waitTime;
}
}
public ReusableWaitForSecondsRealtime(float time)
{
WaitTime = time;
}
}
// Name of the plugin when using [DllImport]
const string PLUGIN_NAME = "NativeScript";
// Path to load the plugin from when running inside the editor
#if UNITY_EDITOR_OSX
const string PLUGIN_PATH = "/Plugins/Editor/NativeScript.bundle/Contents/MacOS/NativeScript";
#elif UNITY_EDITOR_LINUX
const string PLUGIN_PATH = "/Plugins/Editor/libNativeScript.so";
#elif UNITY_EDITOR_WIN
const string PLUGIN_PATH = "/Plugins/Editor/NativeScript.dll";
#endif
enum InitMode : byte
{
FirstBoot,
Reload
}
#if UNITY_EDITOR
// Handle to the C++ DLL
static IntPtr libraryHandle;
delegate void InitDelegate(
IntPtr memory,
int memorySize,
InitMode initMode,
IntPtr releaseObject,
IntPtr stringNew,
IntPtr setException,
IntPtr arrayGetLength,
IntPtr enumerableGetEnumerator,
/*BEGIN INIT PARAMS*/
int maxManagedObjects,
IntPtr systemIDisposableMethodDispose,
IntPtr unityEngineVector3ConstructorSystemSingle_SystemSingle_SystemSingle,
IntPtr unityEngineVector3PropertyGetMagnitude,
IntPtr unityEngineVector3MethodSetSystemSingle_SystemSingle_SystemSingle,
IntPtr unityEngineVector3Methodop_AdditionUnityEngineVector3_UnityEngineVector3,
IntPtr unityEngineVector3Methodop_UnaryNegationUnityEngineVector3,
IntPtr boxVector3,
IntPtr unboxVector3,
IntPtr unityEngineObjectPropertyGetName,
IntPtr unityEngineObjectPropertySetName,
IntPtr unityEngineObjectMethodop_EqualityUnityEngineObject_UnityEngineObject,
IntPtr unityEngineObjectMethodop_ImplicitUnityEngineObject,
IntPtr unityEngineComponentPropertyGetTransform,
IntPtr unityEngineTransformPropertyGetPosition,
IntPtr unityEngineTransformPropertySetPosition,
IntPtr unityEngineTransformMethodSetParentUnityEngineTransform,
IntPtr boxColor,
IntPtr unboxColor,
IntPtr boxGradientColorKey,
IntPtr unboxGradientColorKey,
IntPtr releaseUnityEngineResolution,
IntPtr unityEngineResolutionPropertyGetWidth,
IntPtr unityEngineResolutionPropertySetWidth,
IntPtr unityEngineResolutionPropertyGetHeight,
IntPtr unityEngineResolutionPropertySetHeight,
IntPtr unityEngineResolutionPropertyGetRefreshRate,
IntPtr unityEngineResolutionPropertySetRefreshRate,
IntPtr boxResolution,
IntPtr unboxResolution,
IntPtr releaseUnityEngineRaycastHit,
IntPtr unityEngineRaycastHitPropertyGetPoint,
IntPtr unityEngineRaycastHitPropertySetPoint,
IntPtr unityEngineRaycastHitPropertyGetTransform,
IntPtr boxRaycastHit,
IntPtr unboxRaycastHit,
IntPtr systemCollectionsIEnumeratorPropertyGetCurrent,
IntPtr systemCollectionsIEnumeratorMethodMoveNext,
IntPtr systemCollectionsGenericIEnumeratorSystemStringPropertyGetCurrent,
IntPtr systemCollectionsGenericIEnumeratorSystemInt32PropertyGetCurrent,
IntPtr systemCollectionsGenericIEnumeratorSystemSinglePropertyGetCurrent,
IntPtr systemCollectionsGenericIEnumeratorUnityEngineRaycastHitPropertyGetCurrent,
IntPtr systemCollectionsGenericIEnumeratorUnityEngineGradientColorKeyPropertyGetCurrent,
IntPtr systemCollectionsGenericIEnumeratorUnityEngineResolutionPropertyGetCurrent,
IntPtr systemCollectionsGenericIEnumerableSystemStringMethodGetEnumerator,
IntPtr systemCollectionsGenericIEnumerableSystemInt32MethodGetEnumerator,
IntPtr systemCollectionsGenericIEnumerableSystemSingleMethodGetEnumerator,
IntPtr systemCollectionsGenericIEnumerableUnityEngineRaycastHitMethodGetEnumerator,
IntPtr systemCollectionsGenericIEnumerableUnityEngineGradientColorKeyMethodGetEnumerator,
IntPtr systemCollectionsGenericIEnumerableUnityEngineResolutionMethodGetEnumerator,
IntPtr releaseUnityEnginePlayablesPlayableGraph,
IntPtr boxPlayableGraph,
IntPtr unboxPlayableGraph,
IntPtr releaseUnityEngineAnimationsAnimationMixerPlayable,
IntPtr unityEngineAnimationsAnimationMixerPlayableMethodCreateUnityEnginePlayablesPlayableGraph_SystemInt32_SystemBoolean,
IntPtr boxAnimationMixerPlayable,
IntPtr unboxAnimationMixerPlayable,
IntPtr systemDiagnosticsStopwatchConstructor,
IntPtr systemDiagnosticsStopwatchPropertyGetElapsedMilliseconds,
IntPtr systemDiagnosticsStopwatchMethodStart,
IntPtr systemDiagnosticsStopwatchMethodReset,
IntPtr unityEngineGameObjectConstructor,
IntPtr unityEngineGameObjectConstructorSystemString,
IntPtr unityEngineGameObjectPropertyGetTransform,
IntPtr unityEngineGameObjectMethodAddComponentMyGameMonoBehavioursTestScript,
IntPtr unityEngineGameObjectMethodAddComponentMyGameMonoBehavioursAnotherScript,
IntPtr unityEngineGameObjectMethodCreatePrimitiveUnityEnginePrimitiveType,
IntPtr unityEngineDebugMethodLogSystemObject,
IntPtr unityEngineAssertionsAssertFieldGetRaiseExceptions,
IntPtr unityEngineAssertionsAssertFieldSetRaiseExceptions,
IntPtr unityEngineAssertionsAssertMethodAreEqualSystemStringSystemString_SystemString,
IntPtr unityEngineAssertionsAssertMethodAreEqualUnityEngineGameObjectUnityEngineGameObject_UnityEngineGameObject,
IntPtr unityEngineMonoBehaviourPropertyGetTransform,
IntPtr unityEngineAudioSettingsMethodGetDSPBufferSizeSystemInt32_SystemInt32,
IntPtr unityEngineNetworkingNetworkTransportMethodGetBroadcastConnectionInfoSystemInt32_SystemString_SystemInt32_SystemByte,
IntPtr unityEngineNetworkingNetworkTransportMethodInit,
IntPtr boxQuaternion,
IntPtr unboxQuaternion,
IntPtr unityEngineMatrix4x4PropertyGetItem,
IntPtr unityEngineMatrix4x4PropertySetItem,
IntPtr boxMatrix4x4,
IntPtr unboxMatrix4x4,
IntPtr boxQueryTriggerInteraction,
IntPtr unboxQueryTriggerInteraction,
IntPtr releaseSystemCollectionsGenericKeyValuePairSystemString_SystemDouble,
IntPtr systemCollectionsGenericKeyValuePairSystemString_SystemDoubleConstructorSystemString_SystemDouble,
IntPtr systemCollectionsGenericKeyValuePairSystemString_SystemDoublePropertyGetKey,
IntPtr systemCollectionsGenericKeyValuePairSystemString_SystemDoublePropertyGetValue,
IntPtr boxKeyValuePairSystemString_SystemDouble,
IntPtr unboxKeyValuePairSystemString_SystemDouble,
IntPtr systemCollectionsGenericListSystemStringConstructor,
IntPtr systemCollectionsGenericListSystemStringPropertyGetItem,
IntPtr systemCollectionsGenericListSystemStringPropertySetItem,
IntPtr systemCollectionsGenericListSystemStringMethodAddSystemString,
IntPtr systemCollectionsGenericListSystemStringMethodSortSystemCollectionsGenericIComparer,
IntPtr systemCollectionsGenericListSystemInt32Constructor,
IntPtr systemCollectionsGenericListSystemInt32PropertyGetItem,
IntPtr systemCollectionsGenericListSystemInt32PropertySetItem,
IntPtr systemCollectionsGenericListSystemInt32MethodAddSystemInt32,
IntPtr systemCollectionsGenericListSystemInt32MethodSortSystemCollectionsGenericIComparer,
IntPtr systemCollectionsGenericLinkedListNodeSystemStringConstructorSystemString,
IntPtr systemCollectionsGenericLinkedListNodeSystemStringPropertyGetValue,
IntPtr systemCollectionsGenericLinkedListNodeSystemStringPropertySetValue,
IntPtr systemRuntimeCompilerServicesStrongBoxSystemStringConstructorSystemString,
IntPtr systemRuntimeCompilerServicesStrongBoxSystemStringFieldGetValue,
IntPtr systemRuntimeCompilerServicesStrongBoxSystemStringFieldSetValue,
IntPtr systemExceptionConstructorSystemString,
IntPtr unityEngineScreenPropertyGetResolutions,
IntPtr releaseUnityEngineRay,
IntPtr unityEngineRayConstructorUnityEngineVector3_UnityEngineVector3,
IntPtr boxRay,
IntPtr unboxRay,
IntPtr unityEnginePhysicsMethodRaycastNonAllocUnityEngineRay_UnityEngineRaycastHitArray1,
IntPtr unityEnginePhysicsMethodRaycastAllUnityEngineRay,
IntPtr unityEngineGradientConstructor,
IntPtr unityEngineGradientPropertyGetColorKeys,
IntPtr unityEngineGradientPropertySetColorKeys,
IntPtr systemAppDomainSetupConstructor,
IntPtr systemAppDomainSetupPropertyGetAppDomainInitializer,
IntPtr systemAppDomainSetupPropertySetAppDomainInitializer,
IntPtr unityEngineApplicationAddEventOnBeforeRender,
IntPtr unityEngineApplicationRemoveEventOnBeforeRender,
IntPtr unityEngineSceneManagementSceneManagerAddEventSceneLoaded,
IntPtr unityEngineSceneManagementSceneManagerRemoveEventSceneLoaded,
IntPtr releaseUnityEngineSceneManagementScene,
IntPtr boxScene,
IntPtr unboxScene,
IntPtr boxLoadSceneMode,
IntPtr unboxLoadSceneMode,
IntPtr boxPrimitiveType,
IntPtr unboxPrimitiveType,
IntPtr unityEngineTimePropertyGetDeltaTime,
IntPtr boxFileMode,
IntPtr unboxFileMode,
IntPtr releaseSystemCollectionsGenericBaseIComparerSystemInt32,
IntPtr systemCollectionsGenericBaseIComparerSystemInt32Constructor,
IntPtr releaseSystemCollectionsGenericBaseIComparerSystemString,
IntPtr systemCollectionsGenericBaseIComparerSystemStringConstructor,
IntPtr releaseSystemBaseStringComparer,
IntPtr systemBaseStringComparerConstructor,
IntPtr systemCollectionsQueuePropertyGetCount,
IntPtr releaseSystemCollectionsBaseQueue,
IntPtr systemCollectionsBaseQueueConstructor,
IntPtr releaseSystemComponentModelDesignBaseIComponentChangeService,
IntPtr systemComponentModelDesignBaseIComponentChangeServiceConstructor,
IntPtr systemIOFileStreamConstructorSystemString_SystemIOFileMode,
IntPtr systemIOFileStreamMethodWriteByteSystemByte,
IntPtr releaseSystemIOBaseFileStream,
IntPtr systemIOBaseFileStreamConstructorSystemString_SystemIOFileMode,
IntPtr releaseUnityEnginePlayablesPlayableHandle,
IntPtr boxPlayableHandle,
IntPtr unboxPlayableHandle,
IntPtr unityEngineExperimentalUIElementsUQueryExtensionsMethodQUnityEngineExperimentalUIElementsVisualElement_SystemString_SystemStringArray1,
IntPtr unityEngineExperimentalUIElementsUQueryExtensionsMethodQUnityEngineExperimentalUIElementsVisualElement_SystemString_SystemString,
IntPtr boxInteractionSourcePositionAccuracy,
IntPtr unboxInteractionSourcePositionAccuracy,
IntPtr boxInteractionSourceNode,
IntPtr unboxInteractionSourceNode,
IntPtr releaseUnityEngineXRWSAInputInteractionSourcePose,
IntPtr unityEngineXRWSAInputInteractionSourcePoseMethodTryGetRotationUnityEngineQuaternion_UnityEngineXRWSAInputInteractionSourceNode,
IntPtr boxInteractionSourcePose,
IntPtr unboxInteractionSourcePose,
IntPtr boxBoolean,
IntPtr unboxBoolean,
IntPtr boxSByte,
IntPtr unboxSByte,
IntPtr boxByte,
IntPtr unboxByte,
IntPtr boxInt16,
IntPtr unboxInt16,
IntPtr boxUInt16,
IntPtr unboxUInt16,
IntPtr boxInt32,
IntPtr unboxInt32,
IntPtr boxUInt32,
IntPtr unboxUInt32,
IntPtr boxInt64,
IntPtr unboxInt64,
IntPtr boxUInt64,
IntPtr unboxUInt64,
IntPtr boxChar,
IntPtr unboxChar,
IntPtr boxSingle,
IntPtr unboxSingle,
IntPtr boxDouble,
IntPtr unboxDouble,
IntPtr systemSystemInt32Array1Constructor1,
IntPtr systemInt32Array1GetItem1,
IntPtr systemInt32Array1SetItem1,
IntPtr systemSystemSingleArray1Constructor1,
IntPtr systemSingleArray1GetItem1,
IntPtr systemSingleArray1SetItem1,
IntPtr systemSystemSingleArray2Constructor2,
IntPtr systemSystemSingleArray2GetLength2,
IntPtr systemSingleArray2GetItem2,
IntPtr systemSingleArray2SetItem2,
IntPtr systemSystemSingleArray3Constructor3,
IntPtr systemSystemSingleArray3GetLength3,
IntPtr systemSingleArray3GetItem3,
IntPtr systemSingleArray3SetItem3,
IntPtr systemSystemStringArray1Constructor1,
IntPtr systemStringArray1GetItem1,
IntPtr systemStringArray1SetItem1,
IntPtr unityEngineUnityEngineResolutionArray1Constructor1,
IntPtr unityEngineResolutionArray1GetItem1,
IntPtr unityEngineResolutionArray1SetItem1,
IntPtr unityEngineUnityEngineRaycastHitArray1Constructor1,
IntPtr unityEngineRaycastHitArray1GetItem1,
IntPtr unityEngineRaycastHitArray1SetItem1,
IntPtr unityEngineUnityEngineGradientColorKeyArray1Constructor1,
IntPtr unityEngineGradientColorKeyArray1GetItem1,
IntPtr unityEngineGradientColorKeyArray1SetItem1,
IntPtr releaseSystemAction,
IntPtr systemActionConstructor,
IntPtr systemActionAdd,
IntPtr systemActionRemove,
IntPtr systemActionInvoke,
IntPtr releaseSystemActionSystemSingle,
IntPtr systemActionSystemSingleConstructor,
IntPtr systemActionSystemSingleAdd,
IntPtr systemActionSystemSingleRemove,
IntPtr systemActionSystemSingleInvoke,
IntPtr releaseSystemActionSystemSingle_SystemSingle,
IntPtr systemActionSystemSingle_SystemSingleConstructor,
IntPtr systemActionSystemSingle_SystemSingleAdd,
IntPtr systemActionSystemSingle_SystemSingleRemove,
IntPtr systemActionSystemSingle_SystemSingleInvoke,
IntPtr releaseSystemFuncSystemInt32_SystemSingle_SystemDouble,
IntPtr systemFuncSystemInt32_SystemSingle_SystemDoubleConstructor,
IntPtr systemFuncSystemInt32_SystemSingle_SystemDoubleAdd,
IntPtr systemFuncSystemInt32_SystemSingle_SystemDoubleRemove,
IntPtr systemFuncSystemInt32_SystemSingle_SystemDoubleInvoke,
IntPtr releaseSystemFuncSystemInt16_SystemInt32_SystemString,
IntPtr systemFuncSystemInt16_SystemInt32_SystemStringConstructor,
IntPtr systemFuncSystemInt16_SystemInt32_SystemStringAdd,
IntPtr systemFuncSystemInt16_SystemInt32_SystemStringRemove,
IntPtr systemFuncSystemInt16_SystemInt32_SystemStringInvoke,
IntPtr releaseSystemAppDomainInitializer,
IntPtr systemAppDomainInitializerConstructor,
IntPtr systemAppDomainInitializerAdd,
IntPtr systemAppDomainInitializerRemove,
IntPtr systemAppDomainInitializerInvoke,
IntPtr releaseUnityEngineEventsUnityAction,
IntPtr unityEngineEventsUnityActionConstructor,
IntPtr unityEngineEventsUnityActionAdd,
IntPtr unityEngineEventsUnityActionRemove,
IntPtr unityEngineEventsUnityActionInvoke,
IntPtr releaseUnityEngineEventsUnityActionUnityEngineSceneManagementScene_UnityEngineSceneManagementLoadSceneMode,
IntPtr unityEngineEventsUnityActionUnityEngineSceneManagementScene_UnityEngineSceneManagementLoadSceneModeConstructor,
IntPtr unityEngineEventsUnityActionUnityEngineSceneManagementScene_UnityEngineSceneManagementLoadSceneModeAdd,
IntPtr unityEngineEventsUnityActionUnityEngineSceneManagementScene_UnityEngineSceneManagementLoadSceneModeRemove,
IntPtr unityEngineEventsUnityActionUnityEngineSceneManagementScene_UnityEngineSceneManagementLoadSceneModeInvoke,
IntPtr releaseSystemComponentModelDesignComponentEventHandler,
IntPtr systemComponentModelDesignComponentEventHandlerConstructor,
IntPtr systemComponentModelDesignComponentEventHandlerAdd,
IntPtr systemComponentModelDesignComponentEventHandlerRemove,
IntPtr systemComponentModelDesignComponentEventHandlerInvoke,
IntPtr releaseSystemComponentModelDesignComponentChangingEventHandler,
IntPtr systemComponentModelDesignComponentChangingEventHandlerConstructor,
IntPtr systemComponentModelDesignComponentChangingEventHandlerAdd,
IntPtr systemComponentModelDesignComponentChangingEventHandlerRemove,
IntPtr systemComponentModelDesignComponentChangingEventHandlerInvoke,
IntPtr releaseSystemComponentModelDesignComponentChangedEventHandler,
IntPtr systemComponentModelDesignComponentChangedEventHandlerConstructor,
IntPtr systemComponentModelDesignComponentChangedEventHandlerAdd,
IntPtr systemComponentModelDesignComponentChangedEventHandlerRemove,
IntPtr systemComponentModelDesignComponentChangedEventHandlerInvoke,
IntPtr releaseSystemComponentModelDesignComponentRenameEventHandler,
IntPtr systemComponentModelDesignComponentRenameEventHandlerConstructor,
IntPtr systemComponentModelDesignComponentRenameEventHandlerAdd,
IntPtr systemComponentModelDesignComponentRenameEventHandlerRemove,
IntPtr systemComponentModelDesignComponentRenameEventHandlerInvoke
/*END INIT PARAMS*/);
public delegate void SetCsharpExceptionDelegate(int handle);
/*BEGIN MONOBEHAVIOUR DELEGATES*/
public delegate int SystemCollectionsGenericIComparerSystemInt32CompareDelegate(int thisHandle, int param0, int param1);
public static SystemCollectionsGenericIComparerSystemInt32CompareDelegate SystemCollectionsGenericIComparerSystemInt32Compare;
public delegate int SystemCollectionsGenericIComparerSystemStringCompareDelegate(int thisHandle, int param0, int param1);
public static SystemCollectionsGenericIComparerSystemStringCompareDelegate SystemCollectionsGenericIComparerSystemStringCompare;
public delegate int SystemStringComparerCompareDelegate(int thisHandle, int param0, int param1);
public static SystemStringComparerCompareDelegate SystemStringComparerCompare;
public delegate bool SystemStringComparerEqualsDelegate(int thisHandle, int param0, int param1);
public static SystemStringComparerEqualsDelegate SystemStringComparerEquals;
public delegate int SystemStringComparerGetHashCodeDelegate(int thisHandle, int param0);
public static SystemStringComparerGetHashCodeDelegate SystemStringComparerGetHashCode;
public delegate int SystemCollectionsQueueGetCountDelegate(int thisHandle);
public static SystemCollectionsQueueGetCountDelegate SystemCollectionsQueueGetCount;
public delegate void SystemComponentModelDesignIComponentChangeServiceOnComponentChangedDelegate(int thisHandle, int param0, int param1, int param2, int param3);
public static SystemComponentModelDesignIComponentChangeServiceOnComponentChangedDelegate SystemComponentModelDesignIComponentChangeServiceOnComponentChanged;
public delegate void SystemComponentModelDesignIComponentChangeServiceOnComponentChangingDelegate(int thisHandle, int param0, int param1);
public static SystemComponentModelDesignIComponentChangeServiceOnComponentChangingDelegate SystemComponentModelDesignIComponentChangeServiceOnComponentChanging;
public delegate void SystemComponentModelDesignIComponentChangeServiceAddComponentAddedDelegate(int thisHandle, int param0);
public static SystemComponentModelDesignIComponentChangeServiceAddComponentAddedDelegate SystemComponentModelDesignIComponentChangeServiceAddComponentAdded;
public delegate void SystemComponentModelDesignIComponentChangeServiceRemoveComponentAddedDelegate(int thisHandle, int param0);
public static SystemComponentModelDesignIComponentChangeServiceRemoveComponentAddedDelegate SystemComponentModelDesignIComponentChangeServiceRemoveComponentAdded;
public delegate void SystemComponentModelDesignIComponentChangeServiceAddComponentAddingDelegate(int thisHandle, int param0);
public static SystemComponentModelDesignIComponentChangeServiceAddComponentAddingDelegate SystemComponentModelDesignIComponentChangeServiceAddComponentAdding;
public delegate void SystemComponentModelDesignIComponentChangeServiceRemoveComponentAddingDelegate(int thisHandle, int param0);
public static SystemComponentModelDesignIComponentChangeServiceRemoveComponentAddingDelegate SystemComponentModelDesignIComponentChangeServiceRemoveComponentAdding;
public delegate void SystemComponentModelDesignIComponentChangeServiceAddComponentChangedDelegate(int thisHandle, int param0);
public static SystemComponentModelDesignIComponentChangeServiceAddComponentChangedDelegate SystemComponentModelDesignIComponentChangeServiceAddComponentChanged;
public delegate void SystemComponentModelDesignIComponentChangeServiceRemoveComponentChangedDelegate(int thisHandle, int param0);
public static SystemComponentModelDesignIComponentChangeServiceRemoveComponentChangedDelegate SystemComponentModelDesignIComponentChangeServiceRemoveComponentChanged;
public delegate void SystemComponentModelDesignIComponentChangeServiceAddComponentChangingDelegate(int thisHandle, int param0);
public static SystemComponentModelDesignIComponentChangeServiceAddComponentChangingDelegate SystemComponentModelDesignIComponentChangeServiceAddComponentChanging;
public delegate void SystemComponentModelDesignIComponentChangeServiceRemoveComponentChangingDelegate(int thisHandle, int param0);
public static SystemComponentModelDesignIComponentChangeServiceRemoveComponentChangingDelegate SystemComponentModelDesignIComponentChangeServiceRemoveComponentChanging;
public delegate void SystemComponentModelDesignIComponentChangeServiceAddComponentRemovedDelegate(int thisHandle, int param0);
public static SystemComponentModelDesignIComponentChangeServiceAddComponentRemovedDelegate SystemComponentModelDesignIComponentChangeServiceAddComponentRemoved;
public delegate void SystemComponentModelDesignIComponentChangeServiceRemoveComponentRemovedDelegate(int thisHandle, int param0);
public static SystemComponentModelDesignIComponentChangeServiceRemoveComponentRemovedDelegate SystemComponentModelDesignIComponentChangeServiceRemoveComponentRemoved;
public delegate void SystemComponentModelDesignIComponentChangeServiceAddComponentRemovingDelegate(int thisHandle, int param0);
public static SystemComponentModelDesignIComponentChangeServiceAddComponentRemovingDelegate SystemComponentModelDesignIComponentChangeServiceAddComponentRemoving;
public delegate void SystemComponentModelDesignIComponentChangeServiceRemoveComponentRemovingDelegate(int thisHandle, int param0);
public static SystemComponentModelDesignIComponentChangeServiceRemoveComponentRemovingDelegate SystemComponentModelDesignIComponentChangeServiceRemoveComponentRemoving;
public delegate void SystemComponentModelDesignIComponentChangeServiceAddComponentRenameDelegate(int thisHandle, int param0);
public static SystemComponentModelDesignIComponentChangeServiceAddComponentRenameDelegate SystemComponentModelDesignIComponentChangeServiceAddComponentRename;
public delegate void SystemComponentModelDesignIComponentChangeServiceRemoveComponentRenameDelegate(int thisHandle, int param0);
public static SystemComponentModelDesignIComponentChangeServiceRemoveComponentRenameDelegate SystemComponentModelDesignIComponentChangeServiceRemoveComponentRename;
public delegate void SystemIOFileStreamWriteByteDelegate(int thisHandle, byte param0);
public static SystemIOFileStreamWriteByteDelegate SystemIOFileStreamWriteByte;
public delegate void MyGameMonoBehavioursTestScriptAwakeDelegate(int thisHandle);
public static MyGameMonoBehavioursTestScriptAwakeDelegate MyGameMonoBehavioursTestScriptAwake;
public delegate void MyGameMonoBehavioursTestScriptOnAnimatorIKDelegate(int thisHandle, int param0);
public static MyGameMonoBehavioursTestScriptOnAnimatorIKDelegate MyGameMonoBehavioursTestScriptOnAnimatorIK;
public delegate void MyGameMonoBehavioursTestScriptOnCollisionEnterDelegate(int thisHandle, int param0);
public static MyGameMonoBehavioursTestScriptOnCollisionEnterDelegate MyGameMonoBehavioursTestScriptOnCollisionEnter;
public delegate void MyGameMonoBehavioursTestScriptUpdateDelegate(int thisHandle);
public static MyGameMonoBehavioursTestScriptUpdateDelegate MyGameMonoBehavioursTestScriptUpdate;
public delegate void MyGameMonoBehavioursAnotherScriptAwakeDelegate(int thisHandle);
public static MyGameMonoBehavioursAnotherScriptAwakeDelegate MyGameMonoBehavioursAnotherScriptAwake;
public delegate void MyGameMonoBehavioursAnotherScriptUpdateDelegate(int thisHandle);
public static MyGameMonoBehavioursAnotherScriptUpdateDelegate MyGameMonoBehavioursAnotherScriptUpdate;
public delegate void SystemActionNativeInvokeDelegate(int thisHandle);
public static SystemActionNativeInvokeDelegate SystemActionNativeInvoke;
public delegate void SystemActionSystemSingleNativeInvokeDelegate(int thisHandle, float param0);
public static SystemActionSystemSingleNativeInvokeDelegate SystemActionSystemSingleNativeInvoke;
public delegate void SystemActionSystemSingle_SystemSingleNativeInvokeDelegate(int thisHandle, float param0, float param1);
public static SystemActionSystemSingle_SystemSingleNativeInvokeDelegate SystemActionSystemSingle_SystemSingleNativeInvoke;
public delegate double SystemFuncSystemInt32_SystemSingle_SystemDoubleNativeInvokeDelegate(int thisHandle, int param0, float param1);
public static SystemFuncSystemInt32_SystemSingle_SystemDoubleNativeInvokeDelegate SystemFuncSystemInt32_SystemSingle_SystemDoubleNativeInvoke;
public delegate int SystemFuncSystemInt16_SystemInt32_SystemStringNativeInvokeDelegate(int thisHandle, short param0, int param1);
public static SystemFuncSystemInt16_SystemInt32_SystemStringNativeInvokeDelegate SystemFuncSystemInt16_SystemInt32_SystemStringNativeInvoke;
public delegate void SystemAppDomainInitializerNativeInvokeDelegate(int thisHandle, int param0);
public static SystemAppDomainInitializerNativeInvokeDelegate SystemAppDomainInitializerNativeInvoke;
public delegate void UnityEngineEventsUnityActionNativeInvokeDelegate(int thisHandle);
public static UnityEngineEventsUnityActionNativeInvokeDelegate UnityEngineEventsUnityActionNativeInvoke;
public delegate void UnityEngineEventsUnityActionUnityEngineSceneManagementScene_UnityEngineSceneManagementLoadSceneModeNativeInvokeDelegate(int thisHandle, int param0, UnityEngine.SceneManagement.LoadSceneMode param1);
public static UnityEngineEventsUnityActionUnityEngineSceneManagementScene_UnityEngineSceneManagementLoadSceneModeNativeInvokeDelegate UnityEngineEventsUnityActionUnityEngineSceneManagementScene_UnityEngineSceneManagementLoadSceneModeNativeInvoke;
public delegate void SystemComponentModelDesignComponentEventHandlerNativeInvokeDelegate(int thisHandle, int param0, int param1);
public static SystemComponentModelDesignComponentEventHandlerNativeInvokeDelegate SystemComponentModelDesignComponentEventHandlerNativeInvoke;
public delegate void SystemComponentModelDesignComponentChangingEventHandlerNativeInvokeDelegate(int thisHandle, int param0, int param1);
public static SystemComponentModelDesignComponentChangingEventHandlerNativeInvokeDelegate SystemComponentModelDesignComponentChangingEventHandlerNativeInvoke;
public delegate void SystemComponentModelDesignComponentChangedEventHandlerNativeInvokeDelegate(int thisHandle, int param0, int param1);
public static SystemComponentModelDesignComponentChangedEventHandlerNativeInvokeDelegate SystemComponentModelDesignComponentChangedEventHandlerNativeInvoke;
public delegate void SystemComponentModelDesignComponentRenameEventHandlerNativeInvokeDelegate(int thisHandle, int param0, int param1);
public static SystemComponentModelDesignComponentRenameEventHandlerNativeInvokeDelegate SystemComponentModelDesignComponentRenameEventHandlerNativeInvoke;
public delegate void SetCsharpExceptionSystemNullReferenceExceptionDelegate(int param0);
public static SetCsharpExceptionSystemNullReferenceExceptionDelegate SetCsharpExceptionSystemNullReferenceException;
/*END MONOBEHAVIOUR DELEGATES*/
#endif
#if UNITY_EDITOR_OSX || UNITY_EDITOR_LINUX
[DllImport("__Internal")]
static extern IntPtr dlopen(
string path,
int flag);
[DllImport("__Internal")]
static extern IntPtr dlsym(
IntPtr handle,
string symbolName);
[DllImport("__Internal")]
static extern int dlclose(
IntPtr handle);
static IntPtr OpenLibrary(
string path)
{
IntPtr handle = dlopen(path, 0);
if (handle == IntPtr.Zero)
{
throw new Exception("Couldn't open native library: " + path);
}
return handle;
}
static void CloseLibrary(
IntPtr libraryHandle)
{
dlclose(libraryHandle);
}
static T GetDelegate<T>(
IntPtr libraryHandle,
string functionName) where T : class
{
IntPtr symbol = dlsym(libraryHandle, functionName);
if (symbol == IntPtr.Zero)
{
throw new Exception("Couldn't get function: " + functionName);
}
return Marshal.GetDelegateForFunctionPointer(
symbol,
typeof(T)) as T;
}
#elif UNITY_EDITOR_WIN
[DllImport("kernel32")]
static extern IntPtr LoadLibrary(
string path);
[DllImport("kernel32")]
static extern IntPtr GetProcAddress(
IntPtr libraryHandle,
string symbolName);
[DllImport("kernel32")]
static extern bool FreeLibrary(
IntPtr libraryHandle);
static IntPtr OpenLibrary(string path)
{
IntPtr handle = LoadLibrary(path);
if (handle == IntPtr.Zero)
{
throw new Exception("Couldn't open native library: " + path);
}
return handle;
}
static void CloseLibrary(IntPtr libraryHandle)
{
FreeLibrary(libraryHandle);
}
static T GetDelegate<T>(
IntPtr libraryHandle,
string functionName) where T : class
{
IntPtr symbol = GetProcAddress(libraryHandle, functionName);
if (symbol == IntPtr.Zero)
{
throw new Exception("Couldn't get function: " + functionName);
}
return Marshal.GetDelegateForFunctionPointer(
symbol,
typeof(T)) as T;
}
#else
[DllImport(PluginName)]
static extern void Init(
IntPtr memory,
int memorySize,
initMode initMode,
IntPtr releaseObject,
IntPtr stringNew,
IntPtr setException,
IntPtr arrayGetLength,
IntPtr enumerableGetEnumerator,
/*BEGIN INIT PARAMS*/
int maxManagedObjects,
IntPtr systemIDisposableMethodDispose,
IntPtr unityEngineVector3ConstructorSystemSingle_SystemSingle_SystemSingle,
IntPtr unityEngineVector3PropertyGetMagnitude,
IntPtr unityEngineVector3MethodSetSystemSingle_SystemSingle_SystemSingle,
IntPtr unityEngineVector3Methodop_AdditionUnityEngineVector3_UnityEngineVector3,
IntPtr unityEngineVector3Methodop_UnaryNegationUnityEngineVector3,
IntPtr boxVector3,
IntPtr unboxVector3,
IntPtr unityEngineObjectPropertyGetName,
IntPtr unityEngineObjectPropertySetName,
IntPtr unityEngineObjectMethodop_EqualityUnityEngineObject_UnityEngineObject,
IntPtr unityEngineObjectMethodop_ImplicitUnityEngineObject,
IntPtr unityEngineComponentPropertyGetTransform,
IntPtr unityEngineTransformPropertyGetPosition,
IntPtr unityEngineTransformPropertySetPosition,
IntPtr unityEngineTransformMethodSetParentUnityEngineTransform,
IntPtr boxColor,
IntPtr unboxColor,
IntPtr boxGradientColorKey,
IntPtr unboxGradientColorKey,
IntPtr releaseUnityEngineResolution,
IntPtr unityEngineResolutionPropertyGetWidth,
IntPtr unityEngineResolutionPropertySetWidth,
IntPtr unityEngineResolutionPropertyGetHeight,
IntPtr unityEngineResolutionPropertySetHeight,
IntPtr unityEngineResolutionPropertyGetRefreshRate,
IntPtr unityEngineResolutionPropertySetRefreshRate,
IntPtr boxResolution,
IntPtr unboxResolution,
IntPtr releaseUnityEngineRaycastHit,
IntPtr unityEngineRaycastHitPropertyGetPoint,
IntPtr unityEngineRaycastHitPropertySetPoint,
IntPtr unityEngineRaycastHitPropertyGetTransform,
IntPtr boxRaycastHit,
IntPtr unboxRaycastHit,
IntPtr systemCollectionsIEnumeratorPropertyGetCurrent,
IntPtr systemCollectionsIEnumeratorMethodMoveNext,
IntPtr systemCollectionsGenericIEnumeratorSystemStringPropertyGetCurrent,
IntPtr systemCollectionsGenericIEnumeratorSystemInt32PropertyGetCurrent,
IntPtr systemCollectionsGenericIEnumeratorSystemSinglePropertyGetCurrent,
IntPtr systemCollectionsGenericIEnumeratorUnityEngineRaycastHitPropertyGetCurrent,
IntPtr systemCollectionsGenericIEnumeratorUnityEngineGradientColorKeyPropertyGetCurrent,
IntPtr systemCollectionsGenericIEnumeratorUnityEngineResolutionPropertyGetCurrent,
IntPtr systemCollectionsGenericIEnumerableSystemStringMethodGetEnumerator,
IntPtr systemCollectionsGenericIEnumerableSystemInt32MethodGetEnumerator,
IntPtr systemCollectionsGenericIEnumerableSystemSingleMethodGetEnumerator,
IntPtr systemCollectionsGenericIEnumerableUnityEngineRaycastHitMethodGetEnumerator,
IntPtr systemCollectionsGenericIEnumerableUnityEngineGradientColorKeyMethodGetEnumerator,
IntPtr systemCollectionsGenericIEnumerableUnityEngineResolutionMethodGetEnumerator,
IntPtr releaseUnityEnginePlayablesPlayableGraph,
IntPtr boxPlayableGraph,
IntPtr unboxPlayableGraph,
IntPtr releaseUnityEngineAnimationsAnimationMixerPlayable,
IntPtr unityEngineAnimationsAnimationMixerPlayableMethodCreateUnityEnginePlayablesPlayableGraph_SystemInt32_SystemBoolean,
IntPtr boxAnimationMixerPlayable,
IntPtr unboxAnimationMixerPlayable,
IntPtr systemDiagnosticsStopwatchConstructor,
IntPtr systemDiagnosticsStopwatchPropertyGetElapsedMilliseconds,
IntPtr systemDiagnosticsStopwatchMethodStart,
IntPtr systemDiagnosticsStopwatchMethodReset,
IntPtr unityEngineGameObjectConstructor,
IntPtr unityEngineGameObjectConstructorSystemString,
IntPtr unityEngineGameObjectPropertyGetTransform,
IntPtr unityEngineGameObjectMethodAddComponentMyGameMonoBehavioursTestScript,
IntPtr unityEngineGameObjectMethodAddComponentMyGameMonoBehavioursAnotherScript,
IntPtr unityEngineGameObjectMethodCreatePrimitiveUnityEnginePrimitiveType,
IntPtr unityEngineDebugMethodLogSystemObject,
IntPtr unityEngineAssertionsAssertFieldGetRaiseExceptions,
IntPtr unityEngineAssertionsAssertFieldSetRaiseExceptions,
IntPtr unityEngineAssertionsAssertMethodAreEqualSystemStringSystemString_SystemString,
IntPtr unityEngineAssertionsAssertMethodAreEqualUnityEngineGameObjectUnityEngineGameObject_UnityEngineGameObject,
IntPtr unityEngineMonoBehaviourPropertyGetTransform,
IntPtr unityEngineAudioSettingsMethodGetDSPBufferSizeSystemInt32_SystemInt32,
IntPtr unityEngineNetworkingNetworkTransportMethodGetBroadcastConnectionInfoSystemInt32_SystemString_SystemInt32_SystemByte,
IntPtr unityEngineNetworkingNetworkTransportMethodInit,
IntPtr boxQuaternion,
IntPtr unboxQuaternion,
IntPtr unityEngineMatrix4x4PropertyGetItem,
IntPtr unityEngineMatrix4x4PropertySetItem,
IntPtr boxMatrix4x4,
IntPtr unboxMatrix4x4,
IntPtr boxQueryTriggerInteraction,
IntPtr unboxQueryTriggerInteraction,
IntPtr releaseSystemCollectionsGenericKeyValuePairSystemString_SystemDouble,
IntPtr systemCollectionsGenericKeyValuePairSystemString_SystemDoubleConstructorSystemString_SystemDouble,
IntPtr systemCollectionsGenericKeyValuePairSystemString_SystemDoublePropertyGetKey,
IntPtr systemCollectionsGenericKeyValuePairSystemString_SystemDoublePropertyGetValue,
IntPtr boxKeyValuePairSystemString_SystemDouble,
IntPtr unboxKeyValuePairSystemString_SystemDouble,
IntPtr systemCollectionsGenericListSystemStringConstructor,
IntPtr systemCollectionsGenericListSystemStringPropertyGetItem,
IntPtr systemCollectionsGenericListSystemStringPropertySetItem,
IntPtr systemCollectionsGenericListSystemStringMethodAddSystemString,
IntPtr systemCollectionsGenericListSystemStringMethodSortSystemCollectionsGenericIComparer,
IntPtr systemCollectionsGenericListSystemInt32Constructor,
IntPtr systemCollectionsGenericListSystemInt32PropertyGetItem,
IntPtr systemCollectionsGenericListSystemInt32PropertySetItem,
IntPtr systemCollectionsGenericListSystemInt32MethodAddSystemInt32,
IntPtr systemCollectionsGenericListSystemInt32MethodSortSystemCollectionsGenericIComparer,
IntPtr systemCollectionsGenericLinkedListNodeSystemStringConstructorSystemString,
IntPtr systemCollectionsGenericLinkedListNodeSystemStringPropertyGetValue,
IntPtr systemCollectionsGenericLinkedListNodeSystemStringPropertySetValue,
IntPtr systemRuntimeCompilerServicesStrongBoxSystemStringConstructorSystemString,
IntPtr systemRuntimeCompilerServicesStrongBoxSystemStringFieldGetValue,
IntPtr systemRuntimeCompilerServicesStrongBoxSystemStringFieldSetValue,
IntPtr systemExceptionConstructorSystemString,
IntPtr unityEngineScreenPropertyGetResolutions,
IntPtr releaseUnityEngineRay,
IntPtr unityEngineRayConstructorUnityEngineVector3_UnityEngineVector3,
IntPtr boxRay,
IntPtr unboxRay,
IntPtr unityEnginePhysicsMethodRaycastNonAllocUnityEngineRay_UnityEngineRaycastHitArray1,
IntPtr unityEnginePhysicsMethodRaycastAllUnityEngineRay,
IntPtr unityEngineGradientConstructor,
IntPtr unityEngineGradientPropertyGetColorKeys,
IntPtr unityEngineGradientPropertySetColorKeys,
IntPtr systemAppDomainSetupConstructor,
IntPtr systemAppDomainSetupPropertyGetAppDomainInitializer,
IntPtr systemAppDomainSetupPropertySetAppDomainInitializer,
IntPtr unityEngineApplicationAddEventOnBeforeRender,
IntPtr unityEngineApplicationRemoveEventOnBeforeRender,
IntPtr unityEngineSceneManagementSceneManagerAddEventSceneLoaded,
IntPtr unityEngineSceneManagementSceneManagerRemoveEventSceneLoaded,
IntPtr releaseUnityEngineSceneManagementScene,
IntPtr boxScene,
IntPtr unboxScene,
IntPtr boxLoadSceneMode,
IntPtr unboxLoadSceneMode,
IntPtr boxPrimitiveType,
IntPtr unboxPrimitiveType,
IntPtr unityEngineTimePropertyGetDeltaTime,
IntPtr boxFileMode,
IntPtr unboxFileMode,
IntPtr releaseSystemCollectionsGenericBaseIComparerSystemInt32,
IntPtr systemCollectionsGenericBaseIComparerSystemInt32Constructor,
IntPtr releaseSystemCollectionsGenericBaseIComparerSystemString,
IntPtr systemCollectionsGenericBaseIComparerSystemStringConstructor,
IntPtr releaseSystemBaseStringComparer,
IntPtr systemBaseStringComparerConstructor,
IntPtr systemCollectionsQueuePropertyGetCount,
IntPtr releaseSystemCollectionsBaseQueue,
IntPtr systemCollectionsBaseQueueConstructor,
IntPtr releaseSystemComponentModelDesignBaseIComponentChangeService,
IntPtr systemComponentModelDesignBaseIComponentChangeServiceConstructor,
IntPtr systemIOFileStreamConstructorSystemString_SystemIOFileMode,
IntPtr systemIOFileStreamMethodWriteByteSystemByte,
IntPtr releaseSystemIOBaseFileStream,
IntPtr systemIOBaseFileStreamConstructorSystemString_SystemIOFileMode,
IntPtr releaseUnityEnginePlayablesPlayableHandle,
IntPtr boxPlayableHandle,
IntPtr unboxPlayableHandle,
IntPtr unityEngineExperimentalUIElementsUQueryExtensionsMethodQUnityEngineExperimentalUIElementsVisualElement_SystemString_SystemStringArray1,
IntPtr unityEngineExperimentalUIElementsUQueryExtensionsMethodQUnityEngineExperimentalUIElementsVisualElement_SystemString_SystemString,
IntPtr boxInteractionSourcePositionAccuracy,
IntPtr unboxInteractionSourcePositionAccuracy,
IntPtr boxInteractionSourceNode,
IntPtr unboxInteractionSourceNode,
IntPtr releaseUnityEngineXRWSAInputInteractionSourcePose,
IntPtr unityEngineXRWSAInputInteractionSourcePoseMethodTryGetRotationUnityEngineQuaternion_UnityEngineXRWSAInputInteractionSourceNode,
IntPtr boxInteractionSourcePose,
IntPtr unboxInteractionSourcePose,
IntPtr boxBoolean,
IntPtr unboxBoolean,
IntPtr boxSByte,
IntPtr unboxSByte,
IntPtr boxByte,
IntPtr unboxByte,
IntPtr boxInt16,
IntPtr unboxInt16,
IntPtr boxUInt16,
IntPtr unboxUInt16,
IntPtr boxInt32,
IntPtr unboxInt32,
IntPtr boxUInt32,
IntPtr unboxUInt32,
IntPtr boxInt64,
IntPtr unboxInt64,
IntPtr boxUInt64,
IntPtr unboxUInt64,