김다솜

change avatar, add angle, change background etc

Showing 242 changed files with 22730 additions and 0 deletions
...@@ -68,3 +68,5 @@ crashlytics-build.properties ...@@ -68,3 +68,5 @@ crashlytics-build.properties
68 # Temporary auto-generated Android Assets 68 # Temporary auto-generated Android Assets
69 /[Aa]ssets/[Ss]treamingAssets/aa.meta 69 /[Aa]ssets/[Ss]treamingAssets/aa.meta
70 /[Aa]ssets/[Ss]treamingAssets/aa/* 70 /[Aa]ssets/[Ss]treamingAssets/aa/*
71 +
72 +*.meta
...\ No newline at end of file ...\ No newline at end of file
......
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!1 &1003328744321094
4 +GameObject:
5 + m_ObjectHideFlags: 0
6 + m_CorrespondingSourceObject: {fileID: 0}
7 + m_PrefabInstance: {fileID: 0}
8 + m_PrefabAsset: {fileID: 0}
9 + serializedVersion: 6
10 + m_Component:
11 + - component: {fileID: 4203470457943290}
12 + - component: {fileID: 95319963403342656}
13 + m_Layer: 0
14 + m_Name: clothingSet_04_And_nackedSet
15 + m_TagString: Untagged
16 + m_Icon: {fileID: 0}
17 + m_NavMeshLayer: 0
18 + m_StaticEditorFlags: 0
19 + m_IsActive: 1
20 +--- !u!4 &4203470457943290
21 +Transform:
22 + m_ObjectHideFlags: 0
23 + m_CorrespondingSourceObject: {fileID: 0}
24 + m_PrefabInstance: {fileID: 0}
25 + m_PrefabAsset: {fileID: 0}
26 + m_GameObject: {fileID: 1003328744321094}
27 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
28 + m_LocalPosition: {x: 0, y: 0, z: 0}
29 + m_LocalScale: {x: 1, y: 1, z: 1}
30 + m_Children:
31 + - {fileID: 4191353904921438}
32 + - {fileID: 4035716376342418}
33 + - {fileID: 4582428939865728}
34 + - {fileID: 4263194749552796}
35 + - {fileID: 4883341357160262}
36 + - {fileID: 4725015003219082}
37 + - {fileID: 4806409380690152}
38 + - {fileID: 4932696857576562}
39 + - {fileID: 4549863677018192}
40 + - {fileID: 4811138741142782}
41 + - {fileID: 4542997393183860}
42 + m_Father: {fileID: 0}
43 + m_RootOrder: 0
44 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
45 +--- !u!95 &95319963403342656
46 +Animator:
47 + serializedVersion: 3
48 + m_ObjectHideFlags: 0
49 + m_CorrespondingSourceObject: {fileID: 0}
50 + m_PrefabInstance: {fileID: 0}
51 + m_PrefabAsset: {fileID: 0}
52 + m_GameObject: {fileID: 1003328744321094}
53 + m_Enabled: 1
54 + m_Avatar: {fileID: 9000000, guid: ebaf91e845e67ac4f85b03ca6c72bd32, type: 3}
55 + m_Controller: {fileID: 0}
56 + m_CullingMode: 1
57 + m_UpdateMode: 0
58 + m_ApplyRootMotion: 1
59 + m_LinearVelocityBlending: 0
60 + m_WarningMessage:
61 + m_HasTransformHierarchy: 1
62 + m_AllowConstantClipSamplingOptimization: 1
63 + m_KeepAnimatorControllerStateOnDisable: 0
64 +--- !u!1 &1005000906851408
65 +GameObject:
66 + m_ObjectHideFlags: 0
67 + m_CorrespondingSourceObject: {fileID: 0}
68 + m_PrefabInstance: {fileID: 0}
69 + m_PrefabAsset: {fileID: 0}
70 + serializedVersion: 6
71 + m_Component:
72 + - component: {fileID: 4229706507633470}
73 + m_Layer: 0
74 + m_Name: girlBone_LeftHandIndex1
75 + m_TagString: Untagged
76 + m_Icon: {fileID: 0}
77 + m_NavMeshLayer: 0
78 + m_StaticEditorFlags: 0
79 + m_IsActive: 1
80 +--- !u!4 &4229706507633470
81 +Transform:
82 + m_ObjectHideFlags: 0
83 + m_CorrespondingSourceObject: {fileID: 0}
84 + m_PrefabInstance: {fileID: 0}
85 + m_PrefabAsset: {fileID: 0}
86 + m_GameObject: {fileID: 1005000906851408}
87 + m_LocalRotation: {x: 0.0057849297, y: 0.0019441522, z: -0.04700474, w: 0.99887604}
88 + m_LocalPosition: {x: 0.020500218, y: 0.07402216, z: 0.0024049378}
89 + m_LocalScale: {x: 0.9999999, y: 1, z: 1}
90 + m_Children:
91 + - {fileID: 4783804130908468}
92 + m_Father: {fileID: 4978214648975866}
93 + m_RootOrder: 0
94 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
95 +--- !u!1 &1007003730861662
96 +GameObject:
97 + m_ObjectHideFlags: 0
98 + m_CorrespondingSourceObject: {fileID: 0}
99 + m_PrefabInstance: {fileID: 0}
100 + m_PrefabAsset: {fileID: 0}
101 + serializedVersion: 6
102 + m_Component:
103 + - component: {fileID: 4662460261556690}
104 + m_Layer: 0
105 + m_Name: girlBone_LeftHandMiddle1
106 + m_TagString: Untagged
107 + m_Icon: {fileID: 0}
108 + m_NavMeshLayer: 0
109 + m_StaticEditorFlags: 0
110 + m_IsActive: 1
111 +--- !u!4 &4662460261556690
112 +Transform:
113 + m_ObjectHideFlags: 0
114 + m_CorrespondingSourceObject: {fileID: 0}
115 + m_PrefabInstance: {fileID: 0}
116 + m_PrefabAsset: {fileID: 0}
117 + m_GameObject: {fileID: 1007003730861662}
118 + m_LocalRotation: {x: -0.011033913, y: -0.00048440023, z: -0.0506155, w: 0.99865717}
119 + m_LocalPosition: {x: 0.006680562, y: 0.07278566, z: 0.0011450958}
120 + m_LocalScale: {x: 0.9999997, y: 0.9999998, z: 0.9999999}
121 + m_Children:
122 + - {fileID: 4833390546473628}
123 + m_Father: {fileID: 4978214648975866}
124 + m_RootOrder: 1
125 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
126 +--- !u!1 &1011354376157966
127 +GameObject:
128 + m_ObjectHideFlags: 0
129 + m_CorrespondingSourceObject: {fileID: 0}
130 + m_PrefabInstance: {fileID: 0}
131 + m_PrefabAsset: {fileID: 0}
132 + serializedVersion: 6
133 + m_Component:
134 + - component: {fileID: 4690695773583454}
135 + m_Layer: 0
136 + m_Name: girlBone_LeftHandPinky4
137 + m_TagString: Untagged
138 + m_Icon: {fileID: 0}
139 + m_NavMeshLayer: 0
140 + m_StaticEditorFlags: 0
141 + m_IsActive: 1
142 +--- !u!4 &4690695773583454
143 +Transform:
144 + m_ObjectHideFlags: 0
145 + m_CorrespondingSourceObject: {fileID: 0}
146 + m_PrefabInstance: {fileID: 0}
147 + m_PrefabAsset: {fileID: 0}
148 + m_GameObject: {fileID: 1011354376157966}
149 + m_LocalRotation: {x: -0.000000011641529, y: 0.000000008381904, z: -0.000000014901165,
150 + w: 1}
151 + m_LocalPosition: {x: 0.0011828112, y: 0.01365715, z: 0.0015124511}
152 + m_LocalScale: {x: 0.9999999, y: 1, z: 1.0000001}
153 + m_Children: []
154 + m_Father: {fileID: 4390377243074108}
155 + m_RootOrder: 0
156 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
157 +--- !u!1 &1020902794874962
158 +GameObject:
159 + m_ObjectHideFlags: 0
160 + m_CorrespondingSourceObject: {fileID: 0}
161 + m_PrefabInstance: {fileID: 0}
162 + m_PrefabAsset: {fileID: 0}
163 + serializedVersion: 6
164 + m_Component:
165 + - component: {fileID: 4355606433998390}
166 + m_Layer: 0
167 + m_Name: girlBone_LeftToeBase
168 + m_TagString: Untagged
169 + m_Icon: {fileID: 0}
170 + m_NavMeshLayer: 0
171 + m_StaticEditorFlags: 0
172 + m_IsActive: 1
173 +--- !u!4 &4355606433998390
174 +Transform:
175 + m_ObjectHideFlags: 0
176 + m_CorrespondingSourceObject: {fileID: 0}
177 + m_PrefabInstance: {fileID: 0}
178 + m_PrefabAsset: {fileID: 0}
179 + m_GameObject: {fileID: 1020902794874962}
180 + m_LocalRotation: {x: 0.25044313, y: -0.06286984, z: 0.016300289, w: 0.9659503}
181 + m_LocalPosition: {x: 0.006197834, y: 0.092251696, z: -0.0014493382}
182 + m_LocalScale: {x: 0.9999994, y: 0.99999934, z: 0.9999999}
183 + m_Children:
184 + - {fileID: 4160266186476056}
185 + m_Father: {fileID: 4805208297127608}
186 + m_RootOrder: 0
187 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
188 +--- !u!1 &1027761415069642
189 +GameObject:
190 + m_ObjectHideFlags: 0
191 + m_CorrespondingSourceObject: {fileID: 0}
192 + m_PrefabInstance: {fileID: 0}
193 + m_PrefabAsset: {fileID: 0}
194 + serializedVersion: 6
195 + m_Component:
196 + - component: {fileID: 4121876745137444}
197 + m_Layer: 0
198 + m_Name: girlBone_LeftHandPinky1
199 + m_TagString: Untagged
200 + m_Icon: {fileID: 0}
201 + m_NavMeshLayer: 0
202 + m_StaticEditorFlags: 0
203 + m_IsActive: 1
204 +--- !u!4 &4121876745137444
205 +Transform:
206 + m_ObjectHideFlags: 0
207 + m_CorrespondingSourceObject: {fileID: 0}
208 + m_PrefabInstance: {fileID: 0}
209 + m_PrefabAsset: {fileID: 0}
210 + m_GameObject: {fileID: 1027761415069642}
211 + m_LocalRotation: {x: 0.007944426, y: 0.0022598128, z: -0.04540614, w: 0.9989345}
212 + m_LocalPosition: {x: -0.019596452, y: 0.06537468, z: 0.0011990357}
213 + m_LocalScale: {x: 0.9999997, y: 1, z: 1}
214 + m_Children:
215 + - {fileID: 4299314453707202}
216 + m_Father: {fileID: 4978214648975866}
217 + m_RootOrder: 2
218 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
219 +--- !u!1 &1036109199103912
220 +GameObject:
221 + m_ObjectHideFlags: 0
222 + m_CorrespondingSourceObject: {fileID: 0}
223 + m_PrefabInstance: {fileID: 0}
224 + m_PrefabAsset: {fileID: 0}
225 + serializedVersion: 6
226 + m_Component:
227 + - component: {fileID: 4042239863920430}
228 + m_Layer: 0
229 + m_Name: girlBone_Head
230 + m_TagString: Untagged
231 + m_Icon: {fileID: 0}
232 + m_NavMeshLayer: 0
233 + m_StaticEditorFlags: 0
234 + m_IsActive: 1
235 +--- !u!4 &4042239863920430
236 +Transform:
237 + m_ObjectHideFlags: 0
238 + m_CorrespondingSourceObject: {fileID: 0}
239 + m_PrefabInstance: {fileID: 0}
240 + m_PrefabAsset: {fileID: 0}
241 + m_GameObject: {fileID: 1036109199103912}
242 + m_LocalRotation: {x: 0, y: 6.3108872e-30, z: -1.4791143e-30, w: 1}
243 + m_LocalPosition: {x: -0, y: 0.0631607, z: 0.015824521}
244 + m_LocalScale: {x: 1, y: 1, z: 1}
245 + m_Children:
246 + - {fileID: 4395771236236030}
247 + m_Father: {fileID: 4523787933544984}
248 + m_RootOrder: 0
249 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
250 +--- !u!1 &1045706930796510
251 +GameObject:
252 + m_ObjectHideFlags: 0
253 + m_CorrespondingSourceObject: {fileID: 0}
254 + m_PrefabInstance: {fileID: 0}
255 + m_PrefabAsset: {fileID: 0}
256 + serializedVersion: 6
257 + m_Component:
258 + - component: {fileID: 4609385560783686}
259 + m_Layer: 0
260 + m_Name: girlBone_RightToeBase
261 + m_TagString: Untagged
262 + m_Icon: {fileID: 0}
263 + m_NavMeshLayer: 0
264 + m_StaticEditorFlags: 0
265 + m_IsActive: 1
266 +--- !u!4 &4609385560783686
267 +Transform:
268 + m_ObjectHideFlags: 0
269 + m_CorrespondingSourceObject: {fileID: 0}
270 + m_PrefabInstance: {fileID: 0}
271 + m_PrefabAsset: {fileID: 0}
272 + m_GameObject: {fileID: 1045706930796510}
273 + m_LocalRotation: {x: 0.2504432, y: 0.06286983, z: -0.016300336, w: 0.9659503}
274 + m_LocalPosition: {x: -0.006197834, y: 0.09225172, z: -0.0014493364}
275 + m_LocalScale: {x: 0.9999999, y: 0.99999964, z: 1}
276 + m_Children:
277 + - {fileID: 4810544718332880}
278 + m_Father: {fileID: 4666425505707968}
279 + m_RootOrder: 0
280 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
281 +--- !u!1 &1054449102228910
282 +GameObject:
283 + m_ObjectHideFlags: 0
284 + m_CorrespondingSourceObject: {fileID: 0}
285 + m_PrefabInstance: {fileID: 0}
286 + m_PrefabAsset: {fileID: 0}
287 + serializedVersion: 6
288 + m_Component:
289 + - component: {fileID: 4505887415972792}
290 + m_Layer: 0
291 + m_Name: girlBone_RightHandMiddle3
292 + m_TagString: Untagged
293 + m_Icon: {fileID: 0}
294 + m_NavMeshLayer: 0
295 + m_StaticEditorFlags: 0
296 + m_IsActive: 1
297 +--- !u!4 &4505887415972792
298 +Transform:
299 + m_ObjectHideFlags: 0
300 + m_CorrespondingSourceObject: {fileID: 0}
301 + m_PrefabInstance: {fileID: 0}
302 + m_PrefabAsset: {fileID: 0}
303 + m_GameObject: {fileID: 1054449102228910}
304 + m_LocalRotation: {x: 0.009755977, y: -0.0006591499, z: 0.027900988, w: 0.99956286}
305 + m_LocalPosition: {x: -0.0006806278, y: 0.020289391, z: 0.00039596556}
306 + m_LocalScale: {x: 1, y: 1.0000001, z: 1.0000001}
307 + m_Children:
308 + - {fileID: 4670342141894114}
309 + m_Father: {fileID: 4258915973562716}
310 + m_RootOrder: 0
311 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
312 +--- !u!1 &1061013291786416
313 +GameObject:
314 + m_ObjectHideFlags: 0
315 + m_CorrespondingSourceObject: {fileID: 0}
316 + m_PrefabInstance: {fileID: 0}
317 + m_PrefabAsset: {fileID: 0}
318 + serializedVersion: 6
319 + m_Component:
320 + - component: {fileID: 4008616417794044}
321 + m_Layer: 0
322 + m_Name: girlBone_RightHandRing3
323 + m_TagString: Untagged
324 + m_Icon: {fileID: 0}
325 + m_NavMeshLayer: 0
326 + m_StaticEditorFlags: 0
327 + m_IsActive: 1
328 +--- !u!4 &4008616417794044
329 +Transform:
330 + m_ObjectHideFlags: 0
331 + m_CorrespondingSourceObject: {fileID: 0}
332 + m_PrefabInstance: {fileID: 0}
333 + m_PrefabAsset: {fileID: 0}
334 + m_GameObject: {fileID: 1061013291786416}
335 + m_LocalRotation: {x: 0.007129126, y: 0.00047422922, z: -0.007689867, w: 0.9999449}
336 + m_LocalPosition: {x: 0.00022307217, y: 0.018869342, z: 0.00026870726}
337 + m_LocalScale: {x: 1, y: 0.9999997, z: 0.9999998}
338 + m_Children:
339 + - {fileID: 4971529842020144}
340 + m_Father: {fileID: 4763230765392720}
341 + m_RootOrder: 0
342 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
343 +--- !u!1 &1075778362736556
344 +GameObject:
345 + m_ObjectHideFlags: 0
346 + m_CorrespondingSourceObject: {fileID: 0}
347 + m_PrefabInstance: {fileID: 0}
348 + m_PrefabAsset: {fileID: 0}
349 + serializedVersion: 6
350 + m_Component:
351 + - component: {fileID: 4763230765392720}
352 + m_Layer: 0
353 + m_Name: girlBone_RightHandRing2
354 + m_TagString: Untagged
355 + m_Icon: {fileID: 0}
356 + m_NavMeshLayer: 0
357 + m_StaticEditorFlags: 0
358 + m_IsActive: 1
359 +--- !u!4 &4763230765392720
360 +Transform:
361 + m_ObjectHideFlags: 0
362 + m_CorrespondingSourceObject: {fileID: 0}
363 + m_PrefabInstance: {fileID: 0}
364 + m_PrefabAsset: {fileID: 0}
365 + m_GameObject: {fileID: 1075778362736556}
366 + m_LocalRotation: {x: -0.004838393, y: -0.000005818851, z: 0.009619618, w: 0.99994206}
367 + m_LocalPosition: {x: -0.0001668197, y: 0.022499617, z: 0.00010314941}
368 + m_LocalScale: {x: 0.9999998, y: 1, z: 0.9999998}
369 + m_Children:
370 + - {fileID: 4008616417794044}
371 + m_Father: {fileID: 4863859798342434}
372 + m_RootOrder: 0
373 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
374 +--- !u!1 &1083066098850978
375 +GameObject:
376 + m_ObjectHideFlags: 0
377 + m_CorrespondingSourceObject: {fileID: 0}
378 + m_PrefabInstance: {fileID: 0}
379 + m_PrefabAsset: {fileID: 0}
380 + serializedVersion: 6
381 + m_Component:
382 + - component: {fileID: 4533529588059760}
383 + m_Layer: 0
384 + m_Name: girlBone_LeftHandRing3
385 + m_TagString: Untagged
386 + m_Icon: {fileID: 0}
387 + m_NavMeshLayer: 0
388 + m_StaticEditorFlags: 0
389 + m_IsActive: 1
390 +--- !u!4 &4533529588059760
391 +Transform:
392 + m_ObjectHideFlags: 0
393 + m_CorrespondingSourceObject: {fileID: 0}
394 + m_PrefabInstance: {fileID: 0}
395 + m_PrefabAsset: {fileID: 0}
396 + m_GameObject: {fileID: 1083066098850978}
397 + m_LocalRotation: {x: 0.0071291258, y: -0.00047426773, z: 0.0076898956, w: 0.9999449}
398 + m_LocalPosition: {x: -0.00022306263, y: 0.018869266, z: 0.00026863097}
399 + m_LocalScale: {x: 0.99999946, y: 0.9999997, z: 0.99999994}
400 + m_Children:
401 + - {fileID: 4011743850051580}
402 + m_Father: {fileID: 4587543202857032}
403 + m_RootOrder: 0
404 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
405 +--- !u!1 &1095917730931228
406 +GameObject:
407 + m_ObjectHideFlags: 0
408 + m_CorrespondingSourceObject: {fileID: 0}
409 + m_PrefabInstance: {fileID: 0}
410 + m_PrefabAsset: {fileID: 0}
411 + serializedVersion: 6
412 + m_Component:
413 + - component: {fileID: 4919659206071456}
414 + m_Layer: 0
415 + m_Name: girlBone_RightHandThumb3
416 + m_TagString: Untagged
417 + m_Icon: {fileID: 0}
418 + m_NavMeshLayer: 0
419 + m_StaticEditorFlags: 0
420 + m_IsActive: 1
421 +--- !u!4 &4919659206071456
422 +Transform:
423 + m_ObjectHideFlags: 0
424 + m_CorrespondingSourceObject: {fileID: 0}
425 + m_PrefabInstance: {fileID: 0}
426 + m_PrefabAsset: {fileID: 0}
427 + m_GameObject: {fileID: 1095917730931228}
428 + m_LocalRotation: {x: -0.00001759463, y: 0.00067725073, z: 0.007914955, w: 0.99996847}
429 + m_LocalPosition: {x: -0.0007318115, y: 0.021551514, z: 2.842171e-16}
430 + m_LocalScale: {x: 1, y: 1.0000001, z: 1}
431 + m_Children:
432 + - {fileID: 4460988106533432}
433 + m_Father: {fileID: 4620507960290210}
434 + m_RootOrder: 0
435 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
436 +--- !u!1 &1107477735760814
437 +GameObject:
438 + m_ObjectHideFlags: 0
439 + m_CorrespondingSourceObject: {fileID: 0}
440 + m_PrefabInstance: {fileID: 0}
441 + m_PrefabAsset: {fileID: 0}
442 + serializedVersion: 6
443 + m_Component:
444 + - component: {fileID: 4008705941920370}
445 + m_Layer: 0
446 + m_Name: girlBone_RightHand
447 + m_TagString: Untagged
448 + m_Icon: {fileID: 0}
449 + m_NavMeshLayer: 0
450 + m_StaticEditorFlags: 0
451 + m_IsActive: 1
452 +--- !u!4 &4008705941920370
453 +Transform:
454 + m_ObjectHideFlags: 0
455 + m_CorrespondingSourceObject: {fileID: 0}
456 + m_PrefabInstance: {fileID: 0}
457 + m_PrefabAsset: {fileID: 0}
458 + m_GameObject: {fileID: 1107477735760814}
459 + m_LocalRotation: {x: -0.00801387, y: 0.0027660124, z: -0.030965896, w: 0.99948454}
460 + m_LocalPosition: {x: -0.0052872086, y: 0.17893642, z: 0}
461 + m_LocalScale: {x: 1, y: 0.9999998, z: 0.99999994}
462 + m_Children:
463 + - {fileID: 4804084406394552}
464 + - {fileID: 4196160855055892}
465 + - {fileID: 4477060364586752}
466 + - {fileID: 4863859798342434}
467 + - {fileID: 4322494634591600}
468 + m_Father: {fileID: 4962307417148674}
469 + m_RootOrder: 0
470 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
471 +--- !u!1 &1118714869471238
472 +GameObject:
473 + m_ObjectHideFlags: 0
474 + m_CorrespondingSourceObject: {fileID: 0}
475 + m_PrefabInstance: {fileID: 0}
476 + m_PrefabAsset: {fileID: 0}
477 + serializedVersion: 6
478 + m_Component:
479 + - component: {fileID: 4725015003219082}
480 + - component: {fileID: 137377189051844514}
481 + m_Layer: 0
482 + m_Name: hair_01
483 + m_TagString: Untagged
484 + m_Icon: {fileID: 0}
485 + m_NavMeshLayer: 0
486 + m_StaticEditorFlags: 0
487 + m_IsActive: 1
488 +--- !u!4 &4725015003219082
489 +Transform:
490 + m_ObjectHideFlags: 0
491 + m_CorrespondingSourceObject: {fileID: 0}
492 + m_PrefabInstance: {fileID: 0}
493 + m_PrefabAsset: {fileID: 0}
494 + m_GameObject: {fileID: 1118714869471238}
495 + m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071068}
496 + m_LocalPosition: {x: -0, y: 0, z: 0}
497 + m_LocalScale: {x: 1, y: 1, z: 1}
498 + m_Children: []
499 + m_Father: {fileID: 4203470457943290}
500 + m_RootOrder: 5
501 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
502 +--- !u!137 &137377189051844514
503 +SkinnedMeshRenderer:
504 + m_ObjectHideFlags: 0
505 + m_CorrespondingSourceObject: {fileID: 0}
506 + m_PrefabInstance: {fileID: 0}
507 + m_PrefabAsset: {fileID: 0}
508 + m_GameObject: {fileID: 1118714869471238}
509 + m_Enabled: 1
510 + m_CastShadows: 1
511 + m_ReceiveShadows: 1
512 + m_DynamicOccludee: 1
513 + m_MotionVectors: 1
514 + m_LightProbeUsage: 1
515 + m_ReflectionProbeUsage: 1
516 + m_RayTracingMode: 0
517 + m_RenderingLayerMask: 1
518 + m_RendererPriority: 0
519 + m_Materials:
520 + - {fileID: 2100000, guid: a1ffff4a2f2e92a4d8c7c885bb5a23c3, type: 2}
521 + m_StaticBatchInfo:
522 + firstSubMesh: 0
523 + subMeshCount: 0
524 + m_StaticBatchRoot: {fileID: 0}
525 + m_ProbeAnchor: {fileID: 0}
526 + m_LightProbeVolumeOverride: {fileID: 0}
527 + m_ScaleInLightmap: 1
528 + m_ReceiveGI: 1
529 + m_PreserveUVs: 0
530 + m_IgnoreNormalsForChartDetection: 0
531 + m_ImportantGI: 0
532 + m_StitchLightmapSeams: 0
533 + m_SelectedEditorRenderState: 3
534 + m_MinimumChartSize: 4
535 + m_AutoUVMaxDistance: 0.5
536 + m_AutoUVMaxAngle: 89
537 + m_LightmapParameters: {fileID: 0}
538 + m_SortingLayerID: 0
539 + m_SortingLayer: 0
540 + m_SortingOrder: 0
541 + serializedVersion: 2
542 + m_Quality: 0
543 + m_UpdateWhenOffscreen: 0
544 + m_SkinnedMotionVectors: 1
545 + m_Mesh: {fileID: 4300002, guid: ebaf91e845e67ac4f85b03ca6c72bd32, type: 3}
546 + m_Bones:
547 + - {fileID: 4042239863920430}
548 + m_BlendShapeWeights: []
549 + m_RootBone: {fileID: 4042239863920430}
550 + m_AABB:
551 + m_Center: {x: -0.00004720688, y: 0.06726539, z: -0.007780798}
552 + m_Extent: {x: 0.07352401, y: 0.095837474, z: 0.083327}
553 + m_DirtyAABB: 0
554 +--- !u!1 &1126317592489584
555 +GameObject:
556 + m_ObjectHideFlags: 0
557 + m_CorrespondingSourceObject: {fileID: 0}
558 + m_PrefabInstance: {fileID: 0}
559 + m_PrefabAsset: {fileID: 0}
560 + serializedVersion: 6
561 + m_Component:
562 + - component: {fileID: 4666425505707968}
563 + m_Layer: 0
564 + m_Name: girlBone_RightFoot
565 + m_TagString: Untagged
566 + m_Icon: {fileID: 0}
567 + m_NavMeshLayer: 0
568 + m_StaticEditorFlags: 0
569 + m_IsActive: 1
570 +--- !u!4 &4666425505707968
571 +Transform:
572 + m_ObjectHideFlags: 0
573 + m_CorrespondingSourceObject: {fileID: 0}
574 + m_PrefabInstance: {fileID: 0}
575 + m_PrefabAsset: {fileID: 0}
576 + m_GameObject: {fileID: 1126317592489584}
577 + m_LocalRotation: {x: 0.5036174, y: 0.04068491, z: 0.028510349, w: 0.86249727}
578 + m_LocalPosition: {x: 0.000000009536743, y: 0.30028155, z: -0.014320383}
579 + m_LocalScale: {x: 0.99999994, y: 1.0000001, z: 1.0000001}
580 + m_Children:
581 + - {fileID: 4609385560783686}
582 + m_Father: {fileID: 4439595951381334}
583 + m_RootOrder: 0
584 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
585 +--- !u!1 &1144092519955922
586 +GameObject:
587 + m_ObjectHideFlags: 0
588 + m_CorrespondingSourceObject: {fileID: 0}
589 + m_PrefabInstance: {fileID: 0}
590 + m_PrefabAsset: {fileID: 0}
591 + serializedVersion: 6
592 + m_Component:
593 + - component: {fileID: 4810544718332880}
594 + m_Layer: 0
595 + m_Name: girlBone_RightToe_End
596 + m_TagString: Untagged
597 + m_Icon: {fileID: 0}
598 + m_NavMeshLayer: 0
599 + m_StaticEditorFlags: 0
600 + m_IsActive: 1
601 +--- !u!4 &4810544718332880
602 +Transform:
603 + m_ObjectHideFlags: 0
604 + m_CorrespondingSourceObject: {fileID: 0}
605 + m_PrefabInstance: {fileID: 0}
606 + m_PrefabAsset: {fileID: 0}
607 + m_GameObject: {fileID: 1144092519955922}
608 + m_LocalRotation: {x: -0.0000000027939673, y: 0.000000006519258, z: 0.0000000018626449,
609 + w: 1}
610 + m_LocalPosition: {x: -0.0072357845, y: 0.058140438, z: 0.0000000047683715}
611 + m_LocalScale: {x: 0.9999998, y: 1.0000001, z: 1.0000001}
612 + m_Children: []
613 + m_Father: {fileID: 4609385560783686}
614 + m_RootOrder: 0
615 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
616 +--- !u!1 &1147463228996614
617 +GameObject:
618 + m_ObjectHideFlags: 0
619 + m_CorrespondingSourceObject: {fileID: 0}
620 + m_PrefabInstance: {fileID: 0}
621 + m_PrefabAsset: {fileID: 0}
622 + serializedVersion: 6
623 + m_Component:
624 + - component: {fileID: 4076680128639222}
625 + m_Layer: 0
626 + m_Name: girlBone_LeftHandThumb3
627 + m_TagString: Untagged
628 + m_Icon: {fileID: 0}
629 + m_NavMeshLayer: 0
630 + m_StaticEditorFlags: 0
631 + m_IsActive: 1
632 +--- !u!4 &4076680128639222
633 +Transform:
634 + m_ObjectHideFlags: 0
635 + m_CorrespondingSourceObject: {fileID: 0}
636 + m_PrefabInstance: {fileID: 0}
637 + m_PrefabAsset: {fileID: 0}
638 + m_GameObject: {fileID: 1147463228996614}
639 + m_LocalRotation: {x: -0.000017712126, y: -0.0006772978, z: -0.007914335, w: 0.99996847}
640 + m_LocalPosition: {x: 0.0007317734, y: 0.02155159, z: -0.00000015258789}
641 + m_LocalScale: {x: 1, y: 1.0000001, z: 1}
642 + m_Children:
643 + - {fileID: 4466712744100022}
644 + m_Father: {fileID: 4748973811754326}
645 + m_RootOrder: 0
646 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
647 +--- !u!1 &1149371495010664
648 +GameObject:
649 + m_ObjectHideFlags: 0
650 + m_CorrespondingSourceObject: {fileID: 0}
651 + m_PrefabInstance: {fileID: 0}
652 + m_PrefabAsset: {fileID: 0}
653 + serializedVersion: 6
654 + m_Component:
655 + - component: {fileID: 4435480750022110}
656 + m_Layer: 0
657 + m_Name: girlBone_RightArm
658 + m_TagString: Untagged
659 + m_Icon: {fileID: 0}
660 + m_NavMeshLayer: 0
661 + m_StaticEditorFlags: 0
662 + m_IsActive: 1
663 +--- !u!4 &4435480750022110
664 +Transform:
665 + m_ObjectHideFlags: 0
666 + m_CorrespondingSourceObject: {fileID: 0}
667 + m_PrefabInstance: {fileID: 0}
668 + m_PrefabAsset: {fileID: 0}
669 + m_GameObject: {fileID: 1149371495010664}
670 + m_LocalRotation: {x: -0.11813993, y: 0.005029442, z: 0.022881376, w: 0.9927206}
671 + m_LocalPosition: {x: 0.0000000047683715, y: 0.06149168, z: -0.000000076293944}
672 + m_LocalScale: {x: 0.9999999, y: 1, z: 1}
673 + m_Children:
674 + - {fileID: 4962307417148674}
675 + m_Father: {fileID: 4970367704179448}
676 + m_RootOrder: 0
677 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
678 +--- !u!1 &1162890263508050
679 +GameObject:
680 + m_ObjectHideFlags: 0
681 + m_CorrespondingSourceObject: {fileID: 0}
682 + m_PrefabInstance: {fileID: 0}
683 + m_PrefabAsset: {fileID: 0}
684 + serializedVersion: 6
685 + m_Component:
686 + - component: {fileID: 4390377243074108}
687 + m_Layer: 0
688 + m_Name: girlBone_LeftHandPinky3
689 + m_TagString: Untagged
690 + m_Icon: {fileID: 0}
691 + m_NavMeshLayer: 0
692 + m_StaticEditorFlags: 0
693 + m_IsActive: 1
694 +--- !u!4 &4390377243074108
695 +Transform:
696 + m_ObjectHideFlags: 0
697 + m_CorrespondingSourceObject: {fileID: 0}
698 + m_PrefabInstance: {fileID: 0}
699 + m_PrefabAsset: {fileID: 0}
700 + m_GameObject: {fileID: 1162890263508050}
701 + m_LocalRotation: {x: -0.00000014156734, y: 0.000021153663, z: -0.0023854936, w: 0.9999972}
702 + m_LocalPosition: {x: 0.000032186508, y: 0.016870918, z: -0.000000076293944}
703 + m_LocalScale: {x: 0.9999997, y: 0.99999994, z: 1}
704 + m_Children:
705 + - {fileID: 4690695773583454}
706 + m_Father: {fileID: 4299314453707202}
707 + m_RootOrder: 0
708 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
709 +--- !u!1 &1165668274845324
710 +GameObject:
711 + m_ObjectHideFlags: 0
712 + m_CorrespondingSourceObject: {fileID: 0}
713 + m_PrefabInstance: {fileID: 0}
714 + m_PrefabAsset: {fileID: 0}
715 + serializedVersion: 6
716 + m_Component:
717 + - component: {fileID: 4620507960290210}
718 + m_Layer: 0
719 + m_Name: girlBone_RightHandThumb2
720 + m_TagString: Untagged
721 + m_Icon: {fileID: 0}
722 + m_NavMeshLayer: 0
723 + m_StaticEditorFlags: 0
724 + m_IsActive: 1
725 +--- !u!4 &4620507960290210
726 +Transform:
727 + m_ObjectHideFlags: 0
728 + m_CorrespondingSourceObject: {fileID: 0}
729 + m_PrefabInstance: {fileID: 0}
730 + m_PrefabAsset: {fileID: 0}
731 + m_GameObject: {fileID: 1165668274845324}
732 + m_LocalRotation: {x: 0.000003990167, y: 0.00046761302, z: -0.042554334, w: 0.99909407}
733 + m_LocalPosition: {x: 0.0010824394, y: 0.021122245, z: 0}
734 + m_LocalScale: {x: 1.0000001, y: 1.0000001, z: 1.0000002}
735 + m_Children:
736 + - {fileID: 4919659206071456}
737 + m_Father: {fileID: 4322494634591600}
738 + m_RootOrder: 0
739 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
740 +--- !u!1 &1188326717471256
741 +GameObject:
742 + m_ObjectHideFlags: 0
743 + m_CorrespondingSourceObject: {fileID: 0}
744 + m_PrefabInstance: {fileID: 0}
745 + m_PrefabAsset: {fileID: 0}
746 + serializedVersion: 6
747 + m_Component:
748 + - component: {fileID: 4587543202857032}
749 + m_Layer: 0
750 + m_Name: girlBone_LeftHandRing2
751 + m_TagString: Untagged
752 + m_Icon: {fileID: 0}
753 + m_NavMeshLayer: 0
754 + m_StaticEditorFlags: 0
755 + m_IsActive: 1
756 +--- !u!4 &4587543202857032
757 +Transform:
758 + m_ObjectHideFlags: 0
759 + m_CorrespondingSourceObject: {fileID: 0}
760 + m_PrefabInstance: {fileID: 0}
761 + m_PrefabAsset: {fileID: 0}
762 + m_GameObject: {fileID: 1188326717471256}
763 + m_LocalRotation: {x: -0.0048382557, y: 0.0000058108544, z: -0.009619519, w: 0.99994206}
764 + m_LocalPosition: {x: 0.00016680776, y: 0.022499628, z: 0.00010314941}
765 + m_LocalScale: {x: 1, y: 1, z: 0.9999997}
766 + m_Children:
767 + - {fileID: 4533529588059760}
768 + m_Father: {fileID: 4354557897272978}
769 + m_RootOrder: 0
770 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
771 +--- !u!1 &1217958020317606
772 +GameObject:
773 + m_ObjectHideFlags: 0
774 + m_CorrespondingSourceObject: {fileID: 0}
775 + m_PrefabInstance: {fileID: 0}
776 + m_PrefabAsset: {fileID: 0}
777 + serializedVersion: 6
778 + m_Component:
779 + - component: {fileID: 4466712744100022}
780 + m_Layer: 0
781 + m_Name: girlBone_LeftHandThumb4
782 + m_TagString: Untagged
783 + m_Icon: {fileID: 0}
784 + m_NavMeshLayer: 0
785 + m_StaticEditorFlags: 0
786 + m_IsActive: 1
787 +--- !u!4 &4466712744100022
788 +Transform:
789 + m_ObjectHideFlags: 0
790 + m_CorrespondingSourceObject: {fileID: 0}
791 + m_PrefabInstance: {fileID: 0}
792 + m_PrefabAsset: {fileID: 0}
793 + m_GameObject: {fileID: 1217958020317606}
794 + m_LocalRotation: {x: -0.0000000037252903, y: -0.000000005587936, z: 0.000000014901168,
795 + w: 1}
796 + m_LocalPosition: {x: 0.00035057068, y: 0.019365959, z: 0.000000076293944}
797 + m_LocalScale: {x: 0.99999994, y: 1, z: 1}
798 + m_Children: []
799 + m_Father: {fileID: 4076680128639222}
800 + m_RootOrder: 0
801 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
802 +--- !u!1 &1222793449189056
803 +GameObject:
804 + m_ObjectHideFlags: 0
805 + m_CorrespondingSourceObject: {fileID: 0}
806 + m_PrefabInstance: {fileID: 0}
807 + m_PrefabAsset: {fileID: 0}
808 + serializedVersion: 6
809 + m_Component:
810 + - component: {fileID: 4477900738885146}
811 + m_Layer: 0
812 + m_Name: girlBone_LeftForeArm
813 + m_TagString: Untagged
814 + m_Icon: {fileID: 0}
815 + m_NavMeshLayer: 0
816 + m_StaticEditorFlags: 0
817 + m_IsActive: 1
818 +--- !u!4 &4477900738885146
819 +Transform:
820 + m_ObjectHideFlags: 0
821 + m_CorrespondingSourceObject: {fileID: 0}
822 + m_PrefabInstance: {fileID: 0}
823 + m_PrefabAsset: {fileID: 0}
824 + m_GameObject: {fileID: 1222793449189056}
825 + m_LocalRotation: {x: -0.0000030437773, y: -0.000005544349, z: 0.031014496, w: 0.99951893}
826 + m_LocalPosition: {x: -0.0053181383, y: 0.1635696, z: -0.000001373291}
827 + m_LocalScale: {x: 1, y: 1, z: 1.0000001}
828 + m_Children:
829 + - {fileID: 4978214648975866}
830 + m_Father: {fileID: 4047810778954354}
831 + m_RootOrder: 0
832 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
833 +--- !u!1 &1250396011531254
834 +GameObject:
835 + m_ObjectHideFlags: 0
836 + m_CorrespondingSourceObject: {fileID: 0}
837 + m_PrefabInstance: {fileID: 0}
838 + m_PrefabAsset: {fileID: 0}
839 + serializedVersion: 6
840 + m_Component:
841 + - component: {fileID: 4748973811754326}
842 + m_Layer: 0
843 + m_Name: girlBone_LeftHandThumb2
844 + m_TagString: Untagged
845 + m_Icon: {fileID: 0}
846 + m_NavMeshLayer: 0
847 + m_StaticEditorFlags: 0
848 + m_IsActive: 1
849 +--- !u!4 &4748973811754326
850 +Transform:
851 + m_ObjectHideFlags: 0
852 + m_CorrespondingSourceObject: {fileID: 0}
853 + m_PrefabInstance: {fileID: 0}
854 + m_PrefabAsset: {fileID: 0}
855 + m_GameObject: {fileID: 1250396011531254}
856 + m_LocalRotation: {x: 0.000004120501, y: -0.0004676103, z: 0.042553607, w: 0.99909407}
857 + m_LocalPosition: {x: -0.0010824584, y: 0.021122208, z: 0.00000015258789}
858 + m_LocalScale: {x: 1.0000002, y: 1.0000002, z: 1.0000002}
859 + m_Children:
860 + - {fileID: 4076680128639222}
861 + m_Father: {fileID: 4287635121461304}
862 + m_RootOrder: 0
863 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
864 +--- !u!1 &1279987067176092
865 +GameObject:
866 + m_ObjectHideFlags: 0
867 + m_CorrespondingSourceObject: {fileID: 0}
868 + m_PrefabInstance: {fileID: 0}
869 + m_PrefabAsset: {fileID: 0}
870 + serializedVersion: 6
871 + m_Component:
872 + - component: {fileID: 4127967858022266}
873 + m_Layer: 0
874 + m_Name: girlBone_RightUpLeg
875 + m_TagString: Untagged
876 + m_Icon: {fileID: 0}
877 + m_NavMeshLayer: 0
878 + m_StaticEditorFlags: 0
879 + m_IsActive: 1
880 +--- !u!4 &4127967858022266
881 +Transform:
882 + m_ObjectHideFlags: 0
883 + m_CorrespondingSourceObject: {fileID: 0}
884 + m_PrefabInstance: {fileID: 0}
885 + m_PrefabAsset: {fileID: 0}
886 + m_GameObject: {fileID: 1279987067176092}
887 + m_LocalRotation: {x: -0.003737888, y: -0.010898607, z: 0.99993324, w: -0.00087474124}
888 + m_LocalPosition: {x: 0.06464758, y: -0.03107727, z: 0.006678613}
889 + m_LocalScale: {x: 1.0000002, y: 1.0000001, z: 1}
890 + m_Children:
891 + - {fileID: 4439595951381334}
892 + m_Father: {fileID: 4354117456915712}
893 + m_RootOrder: 1
894 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
895 +--- !u!1 &1283520525044906
896 +GameObject:
897 + m_ObjectHideFlags: 0
898 + m_CorrespondingSourceObject: {fileID: 0}
899 + m_PrefabInstance: {fileID: 0}
900 + m_PrefabAsset: {fileID: 0}
901 + serializedVersion: 6
902 + m_Component:
903 + - component: {fileID: 4885659317983816}
904 + m_Layer: 0
905 + m_Name: girlBone_LeftShoulder
906 + m_TagString: Untagged
907 + m_Icon: {fileID: 0}
908 + m_NavMeshLayer: 0
909 + m_StaticEditorFlags: 0
910 + m_IsActive: 1
911 +--- !u!4 &4885659317983816
912 +Transform:
913 + m_ObjectHideFlags: 0
914 + m_CorrespondingSourceObject: {fileID: 0}
915 + m_PrefabInstance: {fileID: 0}
916 + m_PrefabAsset: {fileID: 0}
917 + m_GameObject: {fileID: 1283520525044906}
918 + m_LocalRotation: {x: 0.55115324, y: -0.4398359, z: 0.5600104, w: 0.4349286}
919 + m_LocalPosition: {x: -0.02852131, y: 0.07288307, z: -0.011092906}
920 + m_LocalScale: {x: 0.9999998, y: 1, z: 0.9999999}
921 + m_Children:
922 + - {fileID: 4047810778954354}
923 + m_Father: {fileID: 4046958656703316}
924 + m_RootOrder: 0
925 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
926 +--- !u!1 &1286967167490658
927 +GameObject:
928 + m_ObjectHideFlags: 0
929 + m_CorrespondingSourceObject: {fileID: 0}
930 + m_PrefabInstance: {fileID: 0}
931 + m_PrefabAsset: {fileID: 0}
932 + serializedVersion: 6
933 + m_Component:
934 + - component: {fileID: 4883341357160262}
935 + m_Layer: 0
936 + m_Name: girlBone_root
937 + m_TagString: Untagged
938 + m_Icon: {fileID: 0}
939 + m_NavMeshLayer: 0
940 + m_StaticEditorFlags: 0
941 + m_IsActive: 1
942 +--- !u!4 &4883341357160262
943 +Transform:
944 + m_ObjectHideFlags: 0
945 + m_CorrespondingSourceObject: {fileID: 0}
946 + m_PrefabInstance: {fileID: 0}
947 + m_PrefabAsset: {fileID: 0}
948 + m_GameObject: {fileID: 1286967167490658}
949 + m_LocalRotation: {x: -8.368688e-17, y: -0.000000001465209, z: 0.000000048571064,
950 + w: 1}
951 + m_LocalPosition: {x: 0.00000005851111, y: 0.004617133, z: 0.00016599311}
952 + m_LocalScale: {x: 0.99999994, y: 1, z: 0.99999994}
953 + m_Children:
954 + - {fileID: 4354117456915712}
955 + m_Father: {fileID: 4203470457943290}
956 + m_RootOrder: 4
957 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
958 +--- !u!1 &1311338643969168
959 +GameObject:
960 + m_ObjectHideFlags: 0
961 + m_CorrespondingSourceObject: {fileID: 0}
962 + m_PrefabInstance: {fileID: 0}
963 + m_PrefabAsset: {fileID: 0}
964 + serializedVersion: 6
965 + m_Component:
966 + - component: {fileID: 4978214648975866}
967 + m_Layer: 0
968 + m_Name: girlBone_LeftHand
969 + m_TagString: Untagged
970 + m_Icon: {fileID: 0}
971 + m_NavMeshLayer: 0
972 + m_StaticEditorFlags: 0
973 + m_IsActive: 1
974 +--- !u!4 &4978214648975866
975 +Transform:
976 + m_ObjectHideFlags: 0
977 + m_CorrespondingSourceObject: {fileID: 0}
978 + m_PrefabInstance: {fileID: 0}
979 + m_PrefabAsset: {fileID: 0}
980 + m_GameObject: {fileID: 1311338643969168}
981 + m_LocalRotation: {x: -0.00801385, y: -0.002765939, z: 0.030965876, w: 0.99948454}
982 + m_LocalPosition: {x: 0.0052872063, y: 0.17893642, z: -0.000000076293944}
983 + m_LocalScale: {x: 0.9999999, y: 0.9999998, z: 1}
984 + m_Children:
985 + - {fileID: 4229706507633470}
986 + - {fileID: 4662460261556690}
987 + - {fileID: 4121876745137444}
988 + - {fileID: 4354557897272978}
989 + - {fileID: 4287635121461304}
990 + m_Father: {fileID: 4477900738885146}
991 + m_RootOrder: 0
992 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
993 +--- !u!1 &1319090974623102
994 +GameObject:
995 + m_ObjectHideFlags: 0
996 + m_CorrespondingSourceObject: {fileID: 0}
997 + m_PrefabInstance: {fileID: 0}
998 + m_PrefabAsset: {fileID: 0}
999 + serializedVersion: 6
1000 + m_Component:
1001 + - component: {fileID: 4322494634591600}
1002 + m_Layer: 0
1003 + m_Name: girlBone_RightHandThumb1
1004 + m_TagString: Untagged
1005 + m_Icon: {fileID: 0}
1006 + m_NavMeshLayer: 0
1007 + m_StaticEditorFlags: 0
1008 + m_IsActive: 1
1009 +--- !u!4 &4322494634591600
1010 +Transform:
1011 + m_ObjectHideFlags: 0
1012 + m_CorrespondingSourceObject: {fileID: 0}
1013 + m_PrefabInstance: {fileID: 0}
1014 + m_PrefabAsset: {fileID: 0}
1015 + m_GameObject: {fileID: 1319090974623102}
1016 + m_LocalRotation: {x: 0.23158541, y: 0.080933966, z: 0.31517383, w: 0.9167788}
1017 + m_LocalPosition: {x: -0.015139296, y: 0.020262355, z: 0.0076922607}
1018 + m_LocalScale: {x: 1, y: 1, z: 1}
1019 + m_Children:
1020 + - {fileID: 4620507960290210}
1021 + m_Father: {fileID: 4008705941920370}
1022 + m_RootOrder: 4
1023 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1024 +--- !u!1 &1320276691175246
1025 +GameObject:
1026 + m_ObjectHideFlags: 0
1027 + m_CorrespondingSourceObject: {fileID: 0}
1028 + m_PrefabInstance: {fileID: 0}
1029 + m_PrefabAsset: {fileID: 0}
1030 + serializedVersion: 6
1031 + m_Component:
1032 + - component: {fileID: 4062291092435412}
1033 + m_Layer: 0
1034 + m_Name: girlBone_eyes_end
1035 + m_TagString: Untagged
1036 + m_Icon: {fileID: 0}
1037 + m_NavMeshLayer: 0
1038 + m_StaticEditorFlags: 0
1039 + m_IsActive: 1
1040 +--- !u!4 &4062291092435412
1041 +Transform:
1042 + m_ObjectHideFlags: 0
1043 + m_CorrespondingSourceObject: {fileID: 0}
1044 + m_PrefabInstance: {fileID: 0}
1045 + m_PrefabAsset: {fileID: 0}
1046 + m_GameObject: {fileID: 1320276691175246}
1047 + m_LocalRotation: {x: 0, y: -0, z: -0, w: 1}
1048 + m_LocalPosition: {x: 1.1641532e-12, y: 0.000000076293944, z: 0.0856525}
1049 + m_LocalScale: {x: 1, y: 1, z: 1}
1050 + m_Children: []
1051 + m_Father: {fileID: 4395771236236030}
1052 + m_RootOrder: 0
1053 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1054 +--- !u!1 &1321968767282762
1055 +GameObject:
1056 + m_ObjectHideFlags: 0
1057 + m_CorrespondingSourceObject: {fileID: 0}
1058 + m_PrefabInstance: {fileID: 0}
1059 + m_PrefabAsset: {fileID: 0}
1060 + serializedVersion: 6
1061 + m_Component:
1062 + - component: {fileID: 4801596748095452}
1063 + m_Layer: 0
1064 + m_Name: girlBone_Spine
1065 + m_TagString: Untagged
1066 + m_Icon: {fileID: 0}
1067 + m_NavMeshLayer: 0
1068 + m_StaticEditorFlags: 0
1069 + m_IsActive: 1
1070 +--- !u!4 &4801596748095452
1071 +Transform:
1072 + m_ObjectHideFlags: 0
1073 + m_CorrespondingSourceObject: {fileID: 0}
1074 + m_PrefabInstance: {fileID: 0}
1075 + m_PrefabAsset: {fileID: 0}
1076 + m_GameObject: {fileID: 1321968767282762}
1077 + m_LocalRotation: {x: -0.02215859, y: 0.0000000025411395, z: -0.000000048527575,
1078 + w: 0.9997545}
1079 + m_LocalPosition: {x: -2.910383e-13, y: 0.05466049, z: 0.016136497}
1080 + m_LocalScale: {x: 1, y: 1, z: 1}
1081 + m_Children:
1082 + - {fileID: 4460955216083280}
1083 + m_Father: {fileID: 4354117456915712}
1084 + m_RootOrder: 2
1085 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1086 +--- !u!1 &1322654470426778
1087 +GameObject:
1088 + m_ObjectHideFlags: 0
1089 + m_CorrespondingSourceObject: {fileID: 0}
1090 + m_PrefabInstance: {fileID: 0}
1091 + m_PrefabAsset: {fileID: 0}
1092 + serializedVersion: 6
1093 + m_Component:
1094 + - component: {fileID: 4549863677018192}
1095 + - component: {fileID: 137426824563669510}
1096 + m_Layer: 0
1097 + m_Name: nacked_boots
1098 + m_TagString: Untagged
1099 + m_Icon: {fileID: 0}
1100 + m_NavMeshLayer: 0
1101 + m_StaticEditorFlags: 0
1102 + m_IsActive: 0
1103 +--- !u!4 &4549863677018192
1104 +Transform:
1105 + m_ObjectHideFlags: 0
1106 + m_CorrespondingSourceObject: {fileID: 0}
1107 + m_PrefabInstance: {fileID: 0}
1108 + m_PrefabAsset: {fileID: 0}
1109 + m_GameObject: {fileID: 1322654470426778}
1110 + m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071068}
1111 + m_LocalPosition: {x: 2.0758502, y: 0, z: -0.0149475}
1112 + m_LocalScale: {x: 1, y: 1, z: 1}
1113 + m_Children: []
1114 + m_Father: {fileID: 4203470457943290}
1115 + m_RootOrder: 8
1116 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1117 +--- !u!137 &137426824563669510
1118 +SkinnedMeshRenderer:
1119 + m_ObjectHideFlags: 0
1120 + m_CorrespondingSourceObject: {fileID: 0}
1121 + m_PrefabInstance: {fileID: 0}
1122 + m_PrefabAsset: {fileID: 0}
1123 + m_GameObject: {fileID: 1322654470426778}
1124 + m_Enabled: 1
1125 + m_CastShadows: 1
1126 + m_ReceiveShadows: 1
1127 + m_DynamicOccludee: 1
1128 + m_MotionVectors: 1
1129 + m_LightProbeUsage: 1
1130 + m_ReflectionProbeUsage: 1
1131 + m_RayTracingMode: 0
1132 + m_RenderingLayerMask: 1
1133 + m_RendererPriority: 0
1134 + m_Materials:
1135 + - {fileID: 2100000, guid: d7bdc2d5f68853f43b9023972e0a688a, type: 2}
1136 + m_StaticBatchInfo:
1137 + firstSubMesh: 0
1138 + subMeshCount: 0
1139 + m_StaticBatchRoot: {fileID: 0}
1140 + m_ProbeAnchor: {fileID: 0}
1141 + m_LightProbeVolumeOverride: {fileID: 0}
1142 + m_ScaleInLightmap: 1
1143 + m_ReceiveGI: 1
1144 + m_PreserveUVs: 0
1145 + m_IgnoreNormalsForChartDetection: 0
1146 + m_ImportantGI: 0
1147 + m_StitchLightmapSeams: 0
1148 + m_SelectedEditorRenderState: 3
1149 + m_MinimumChartSize: 4
1150 + m_AutoUVMaxDistance: 0.5
1151 + m_AutoUVMaxAngle: 89
1152 + m_LightmapParameters: {fileID: 0}
1153 + m_SortingLayerID: 0
1154 + m_SortingLayer: 0
1155 + m_SortingOrder: 0
1156 + serializedVersion: 2
1157 + m_Quality: 0
1158 + m_UpdateWhenOffscreen: 0
1159 + m_SkinnedMotionVectors: 1
1160 + m_Mesh: {fileID: 4300008, guid: ebaf91e845e67ac4f85b03ca6c72bd32, type: 3}
1161 + m_Bones:
1162 + - {fileID: 4439595951381334}
1163 + - {fileID: 4666425505707968}
1164 + - {fileID: 4609385560783686}
1165 + - {fileID: 4026733763507060}
1166 + - {fileID: 4805208297127608}
1167 + - {fileID: 4355606433998390}
1168 + m_BlendShapeWeights: []
1169 + m_RootBone: {fileID: 4026733763507060}
1170 + m_AABB:
1171 + m_Center: {x: -0.064384684, y: 0.3235644, z: 0.018570874}
1172 + m_Extent: {x: 0.10766496, y: 0.07488988, z: 0.099285915}
1173 + m_DirtyAABB: 0
1174 +--- !u!1 &1327262790133506
1175 +GameObject:
1176 + m_ObjectHideFlags: 0
1177 + m_CorrespondingSourceObject: {fileID: 0}
1178 + m_PrefabInstance: {fileID: 0}
1179 + m_PrefabAsset: {fileID: 0}
1180 + serializedVersion: 6
1181 + m_Component:
1182 + - component: {fileID: 4354557897272978}
1183 + m_Layer: 0
1184 + m_Name: girlBone_LeftHandRing1
1185 + m_TagString: Untagged
1186 + m_Icon: {fileID: 0}
1187 + m_NavMeshLayer: 0
1188 + m_StaticEditorFlags: 0
1189 + m_IsActive: 1
1190 +--- !u!4 &4354557897272978
1191 +Transform:
1192 + m_ObjectHideFlags: 0
1193 + m_CorrespondingSourceObject: {fileID: 0}
1194 + m_PrefabInstance: {fileID: 0}
1195 + m_PrefabAsset: {fileID: 0}
1196 + m_GameObject: {fileID: 1327262790133506}
1197 + m_LocalRotation: {x: 0.005354728, y: -0.0039402717, z: -0.042079322, w: 0.99909216}
1198 + m_LocalPosition: {x: -0.0075843525, y: 0.07478664, z: -0.00031471252}
1199 + m_LocalScale: {x: 0.9999999, y: 1.0000001, z: 1.0000001}
1200 + m_Children:
1201 + - {fileID: 4587543202857032}
1202 + m_Father: {fileID: 4978214648975866}
1203 + m_RootOrder: 3
1204 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1205 +--- !u!1 &1334218850255258
1206 +GameObject:
1207 + m_ObjectHideFlags: 0
1208 + m_CorrespondingSourceObject: {fileID: 0}
1209 + m_PrefabInstance: {fileID: 0}
1210 + m_PrefabAsset: {fileID: 0}
1211 + serializedVersion: 6
1212 + m_Component:
1213 + - component: {fileID: 4324704417957496}
1214 + m_Layer: 0
1215 + m_Name: girlBone_RightHandIndex4
1216 + m_TagString: Untagged
1217 + m_Icon: {fileID: 0}
1218 + m_NavMeshLayer: 0
1219 + m_StaticEditorFlags: 0
1220 + m_IsActive: 1
1221 +--- !u!4 &4324704417957496
1222 +Transform:
1223 + m_ObjectHideFlags: 0
1224 + m_CorrespondingSourceObject: {fileID: 0}
1225 + m_PrefabInstance: {fileID: 0}
1226 + m_PrefabAsset: {fileID: 0}
1227 + m_GameObject: {fileID: 1334218850255258}
1228 + m_LocalRotation: {x: -0.0000000025611335, y: 9.313226e-10, z: 0.0000000018626449,
1229 + w: 1}
1230 + m_LocalPosition: {x: -0.00006964207, y: 0.014366207, z: -0.000000076293944}
1231 + m_LocalScale: {x: 1.0000001, y: 1.0000001, z: 1}
1232 + m_Children: []
1233 + m_Father: {fileID: 4965074760361248}
1234 + m_RootOrder: 0
1235 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1236 +--- !u!1 &1356799485809144
1237 +GameObject:
1238 + m_ObjectHideFlags: 0
1239 + m_CorrespondingSourceObject: {fileID: 0}
1240 + m_PrefabInstance: {fileID: 0}
1241 + m_PrefabAsset: {fileID: 0}
1242 + serializedVersion: 6
1243 + m_Component:
1244 + - component: {fileID: 4263194749552796}
1245 + - component: {fileID: 137189534633090200}
1246 + m_Layer: 0
1247 + m_Name: face
1248 + m_TagString: Untagged
1249 + m_Icon: {fileID: 0}
1250 + m_NavMeshLayer: 0
1251 + m_StaticEditorFlags: 0
1252 + m_IsActive: 1
1253 +--- !u!4 &4263194749552796
1254 +Transform:
1255 + m_ObjectHideFlags: 0
1256 + m_CorrespondingSourceObject: {fileID: 0}
1257 + m_PrefabInstance: {fileID: 0}
1258 + m_PrefabAsset: {fileID: 0}
1259 + m_GameObject: {fileID: 1356799485809144}
1260 + m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071068}
1261 + m_LocalPosition: {x: 2.0758502, y: 0, z: -0.0149475}
1262 + m_LocalScale: {x: 1, y: 1, z: 1}
1263 + m_Children: []
1264 + m_Father: {fileID: 4203470457943290}
1265 + m_RootOrder: 3
1266 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1267 +--- !u!137 &137189534633090200
1268 +SkinnedMeshRenderer:
1269 + m_ObjectHideFlags: 0
1270 + m_CorrespondingSourceObject: {fileID: 0}
1271 + m_PrefabInstance: {fileID: 0}
1272 + m_PrefabAsset: {fileID: 0}
1273 + m_GameObject: {fileID: 1356799485809144}
1274 + m_Enabled: 1
1275 + m_CastShadows: 1
1276 + m_ReceiveShadows: 1
1277 + m_DynamicOccludee: 1
1278 + m_MotionVectors: 1
1279 + m_LightProbeUsage: 1
1280 + m_ReflectionProbeUsage: 1
1281 + m_RayTracingMode: 0
1282 + m_RenderingLayerMask: 1
1283 + m_RendererPriority: 0
1284 + m_Materials:
1285 + - {fileID: 2100000, guid: d7bdc2d5f68853f43b9023972e0a688a, type: 2}
1286 + m_StaticBatchInfo:
1287 + firstSubMesh: 0
1288 + subMeshCount: 0
1289 + m_StaticBatchRoot: {fileID: 0}
1290 + m_ProbeAnchor: {fileID: 0}
1291 + m_LightProbeVolumeOverride: {fileID: 0}
1292 + m_ScaleInLightmap: 1
1293 + m_ReceiveGI: 1
1294 + m_PreserveUVs: 0
1295 + m_IgnoreNormalsForChartDetection: 0
1296 + m_ImportantGI: 0
1297 + m_StitchLightmapSeams: 0
1298 + m_SelectedEditorRenderState: 3
1299 + m_MinimumChartSize: 4
1300 + m_AutoUVMaxDistance: 0.5
1301 + m_AutoUVMaxAngle: 89
1302 + m_LightmapParameters: {fileID: 0}
1303 + m_SortingLayerID: 0
1304 + m_SortingLayer: 0
1305 + m_SortingOrder: 0
1306 + serializedVersion: 2
1307 + m_Quality: 0
1308 + m_UpdateWhenOffscreen: 0
1309 + m_SkinnedMotionVectors: 1
1310 + m_Mesh: {fileID: 4300000, guid: ebaf91e845e67ac4f85b03ca6c72bd32, type: 3}
1311 + m_Bones:
1312 + - {fileID: 4523787933544984}
1313 + - {fileID: 4042239863920430}
1314 + - {fileID: 4395771236236030}
1315 + m_BlendShapeWeights: []
1316 + m_RootBone: {fileID: 4523787933544984}
1317 + m_AABB:
1318 + m_Center: {x: 0.000004529953, y: 0.112808794, z: 0.044600524}
1319 + m_Extent: {x: 0.06115724, y: 0.084471196, z: 0.06801041}
1320 + m_DirtyAABB: 0
1321 +--- !u!1 &1375160035174106
1322 +GameObject:
1323 + m_ObjectHideFlags: 0
1324 + m_CorrespondingSourceObject: {fileID: 0}
1325 + m_PrefabInstance: {fileID: 0}
1326 + m_PrefabAsset: {fileID: 0}
1327 + serializedVersion: 6
1328 + m_Component:
1329 + - component: {fileID: 4835466098057684}
1330 + m_Layer: 0
1331 + m_Name: girlBone_RightHandPinky3
1332 + m_TagString: Untagged
1333 + m_Icon: {fileID: 0}
1334 + m_NavMeshLayer: 0
1335 + m_StaticEditorFlags: 0
1336 + m_IsActive: 1
1337 +--- !u!4 &4835466098057684
1338 +Transform:
1339 + m_ObjectHideFlags: 0
1340 + m_CorrespondingSourceObject: {fileID: 0}
1341 + m_PrefabInstance: {fileID: 0}
1342 + m_PrefabAsset: {fileID: 0}
1343 + m_GameObject: {fileID: 1375160035174106}
1344 + m_LocalRotation: {x: -0.000000044712365, y: -0.000021082538, z: 0.002385457, w: 0.9999972}
1345 + m_LocalPosition: {x: -0.00015347241, y: 0.013981361, z: 0.00027412415}
1346 + m_LocalScale: {x: 1, y: 0.99999994, z: 1}
1347 + m_Children:
1348 + - {fileID: 4905522294907212}
1349 + m_Father: {fileID: 4118058108819142}
1350 + m_RootOrder: 0
1351 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1352 +--- !u!1 &1385968142194326
1353 +GameObject:
1354 + m_ObjectHideFlags: 0
1355 + m_CorrespondingSourceObject: {fileID: 0}
1356 + m_PrefabInstance: {fileID: 0}
1357 + m_PrefabAsset: {fileID: 0}
1358 + serializedVersion: 6
1359 + m_Component:
1360 + - component: {fileID: 4299314453707202}
1361 + m_Layer: 0
1362 + m_Name: girlBone_LeftHandPinky2
1363 + m_TagString: Untagged
1364 + m_Icon: {fileID: 0}
1365 + m_NavMeshLayer: 0
1366 + m_StaticEditorFlags: 0
1367 + m_IsActive: 1
1368 +--- !u!4 &4299314453707202
1369 +Transform:
1370 + m_ObjectHideFlags: 0
1371 + m_CorrespondingSourceObject: {fileID: 0}
1372 + m_PrefabInstance: {fileID: 0}
1373 + m_PrefabAsset: {fileID: 0}
1374 + m_GameObject: {fileID: 1385968142194326}
1375 + m_LocalRotation: {x: 0.000000013983448, y: 0.000011136172, z: 0.00062568905, w: 0.9999998}
1376 + m_LocalPosition: {x: 0.000012829303, y: 0.020142611, z: -0.000000076293944}
1377 + m_LocalScale: {x: 1.0000001, y: 1, z: 1}
1378 + m_Children:
1379 + - {fileID: 4390377243074108}
1380 + m_Father: {fileID: 4121876745137444}
1381 + m_RootOrder: 0
1382 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1383 +--- !u!1 &1386238558992680
1384 +GameObject:
1385 + m_ObjectHideFlags: 0
1386 + m_CorrespondingSourceObject: {fileID: 0}
1387 + m_PrefabInstance: {fileID: 0}
1388 + m_PrefabAsset: {fileID: 0}
1389 + serializedVersion: 6
1390 + m_Component:
1391 + - component: {fileID: 4191353904921438}
1392 + - component: {fileID: 137814948305314248}
1393 + m_Layer: 0
1394 + m_Name: clothingSet_04_body
1395 + m_TagString: Untagged
1396 + m_Icon: {fileID: 0}
1397 + m_NavMeshLayer: 0
1398 + m_StaticEditorFlags: 0
1399 + m_IsActive: 1
1400 +--- !u!4 &4191353904921438
1401 +Transform:
1402 + m_ObjectHideFlags: 0
1403 + m_CorrespondingSourceObject: {fileID: 0}
1404 + m_PrefabInstance: {fileID: 0}
1405 + m_PrefabAsset: {fileID: 0}
1406 + m_GameObject: {fileID: 1386238558992680}
1407 + m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071068}
1408 + m_LocalPosition: {x: -0, y: 0, z: 0}
1409 + m_LocalScale: {x: 1, y: 1, z: 1}
1410 + m_Children: []
1411 + m_Father: {fileID: 4203470457943290}
1412 + m_RootOrder: 0
1413 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1414 +--- !u!137 &137814948305314248
1415 +SkinnedMeshRenderer:
1416 + m_ObjectHideFlags: 0
1417 + m_CorrespondingSourceObject: {fileID: 0}
1418 + m_PrefabInstance: {fileID: 0}
1419 + m_PrefabAsset: {fileID: 0}
1420 + m_GameObject: {fileID: 1386238558992680}
1421 + m_Enabled: 1
1422 + m_CastShadows: 1
1423 + m_ReceiveShadows: 1
1424 + m_DynamicOccludee: 1
1425 + m_MotionVectors: 1
1426 + m_LightProbeUsage: 1
1427 + m_ReflectionProbeUsage: 1
1428 + m_RayTracingMode: 0
1429 + m_RenderingLayerMask: 1
1430 + m_RendererPriority: 0
1431 + m_Materials:
1432 + - {fileID: 2100000, guid: 2a7782c65c7520d45be3e8ef87b3b9d3, type: 2}
1433 + m_StaticBatchInfo:
1434 + firstSubMesh: 0
1435 + subMeshCount: 0
1436 + m_StaticBatchRoot: {fileID: 0}
1437 + m_ProbeAnchor: {fileID: 0}
1438 + m_LightProbeVolumeOverride: {fileID: 0}
1439 + m_ScaleInLightmap: 1
1440 + m_ReceiveGI: 1
1441 + m_PreserveUVs: 0
1442 + m_IgnoreNormalsForChartDetection: 0
1443 + m_ImportantGI: 0
1444 + m_StitchLightmapSeams: 0
1445 + m_SelectedEditorRenderState: 3
1446 + m_MinimumChartSize: 4
1447 + m_AutoUVMaxDistance: 0.5
1448 + m_AutoUVMaxAngle: 89
1449 + m_LightmapParameters: {fileID: 0}
1450 + m_SortingLayerID: 0
1451 + m_SortingLayer: 0
1452 + m_SortingOrder: 0
1453 + serializedVersion: 2
1454 + m_Quality: 0
1455 + m_UpdateWhenOffscreen: 0
1456 + m_SkinnedMotionVectors: 1
1457 + m_Mesh: {fileID: 4300014, guid: ebaf91e845e67ac4f85b03ca6c72bd32, type: 3}
1458 + m_Bones:
1459 + - {fileID: 4354117456915712}
1460 + - {fileID: 4801596748095452}
1461 + - {fileID: 4460955216083280}
1462 + - {fileID: 4046958656703316}
1463 + - {fileID: 4523787933544984}
1464 + - {fileID: 4042239863920430}
1465 + - {fileID: 4970367704179448}
1466 + - {fileID: 4435480750022110}
1467 + - {fileID: 4962307417148674}
1468 + - {fileID: 4008705941920370}
1469 + - {fileID: 4127967858022266}
1470 + - {fileID: 4885659317983816}
1471 + - {fileID: 4047810778954354}
1472 + - {fileID: 4477900738885146}
1473 + - {fileID: 4978214648975866}
1474 + - {fileID: 4690363164342454}
1475 + m_BlendShapeWeights: []
1476 + m_RootBone: {fileID: 4354117456915712}
1477 + m_AABB:
1478 + m_Center: {x: 0.0000047832727, y: 0.121962905, z: 0.008013643}
1479 + m_Extent: {x: 0.4232744, y: 0.20155299, z: 0.10613241}
1480 + m_DirtyAABB: 0
1481 +--- !u!1 &1429808955883776
1482 +GameObject:
1483 + m_ObjectHideFlags: 0
1484 + m_CorrespondingSourceObject: {fileID: 0}
1485 + m_PrefabInstance: {fileID: 0}
1486 + m_PrefabAsset: {fileID: 0}
1487 + serializedVersion: 6
1488 + m_Component:
1489 + - component: {fileID: 4905522294907212}
1490 + m_Layer: 0
1491 + m_Name: girlBone_RightHandPinky4
1492 + m_TagString: Untagged
1493 + m_Icon: {fileID: 0}
1494 + m_NavMeshLayer: 0
1495 + m_StaticEditorFlags: 0
1496 + m_IsActive: 1
1497 +--- !u!4 &4905522294907212
1498 +Transform:
1499 + m_ObjectHideFlags: 0
1500 + m_CorrespondingSourceObject: {fileID: 0}
1501 + m_PrefabInstance: {fileID: 0}
1502 + m_PrefabAsset: {fileID: 0}
1503 + m_GameObject: {fileID: 1429808955883776}
1504 + m_LocalRotation: {x: 0.000000002561137, y: -9.313226e-10, z: 0.0000000037252903,
1505 + w: 1}
1506 + m_LocalPosition: {x: -0.0011828017, y: 0.013657246, z: 0.0015125275}
1507 + m_LocalScale: {x: 1, y: 1, z: 1}
1508 + m_Children: []
1509 + m_Father: {fileID: 4835466098057684}
1510 + m_RootOrder: 0
1511 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1512 +--- !u!1 &1455212119219062
1513 +GameObject:
1514 + m_ObjectHideFlags: 0
1515 + m_CorrespondingSourceObject: {fileID: 0}
1516 + m_PrefabInstance: {fileID: 0}
1517 + m_PrefabAsset: {fileID: 0}
1518 + serializedVersion: 6
1519 + m_Component:
1520 + - component: {fileID: 4026733763507060}
1521 + m_Layer: 0
1522 + m_Name: girlBone_LeftLeg
1523 + m_TagString: Untagged
1524 + m_Icon: {fileID: 0}
1525 + m_NavMeshLayer: 0
1526 + m_StaticEditorFlags: 0
1527 + m_IsActive: 1
1528 +--- !u!4 &4026733763507060
1529 +Transform:
1530 + m_ObjectHideFlags: 0
1531 + m_CorrespondingSourceObject: {fileID: 0}
1532 + m_PrefabInstance: {fileID: 0}
1533 + m_PrefabAsset: {fileID: 0}
1534 + m_GameObject: {fileID: 1455212119219062}
1535 + m_LocalRotation: {x: -0.008559353, y: 0.00002945783, z: 0.0019551648, w: 0.9999615}
1536 + m_LocalPosition: {x: 0.00004480362, y: 0.29696062, z: 0.014514618}
1537 + m_LocalScale: {x: 0.99999934, y: 1, z: 0.99999946}
1538 + m_Children:
1539 + - {fileID: 4805208297127608}
1540 + m_Father: {fileID: 4690363164342454}
1541 + m_RootOrder: 0
1542 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1543 +--- !u!1 &1462997822595614
1544 +GameObject:
1545 + m_ObjectHideFlags: 0
1546 + m_CorrespondingSourceObject: {fileID: 0}
1547 + m_PrefabInstance: {fileID: 0}
1548 + m_PrefabAsset: {fileID: 0}
1549 + serializedVersion: 6
1550 + m_Component:
1551 + - component: {fileID: 4281201777327930}
1552 + m_Layer: 0
1553 + m_Name: girlBone_RightHandIndex2
1554 + m_TagString: Untagged
1555 + m_Icon: {fileID: 0}
1556 + m_NavMeshLayer: 0
1557 + m_StaticEditorFlags: 0
1558 + m_IsActive: 1
1559 +--- !u!4 &4281201777327930
1560 +Transform:
1561 + m_ObjectHideFlags: 0
1562 + m_CorrespondingSourceObject: {fileID: 0}
1563 + m_PrefabInstance: {fileID: 0}
1564 + m_PrefabAsset: {fileID: 0}
1565 + m_GameObject: {fileID: 1462997822595614}
1566 + m_LocalRotation: {x: -0.0037577308, y: 0.00016679523, z: -0.00070093066, w: 0.99999267}
1567 + m_LocalPosition: {x: 0.000048608777, y: 0.019165616, z: 0.00008232117}
1568 + m_LocalScale: {x: 1.0000002, y: 1.0000001, z: 1.0000002}
1569 + m_Children:
1570 + - {fileID: 4965074760361248}
1571 + m_Father: {fileID: 4804084406394552}
1572 + m_RootOrder: 0
1573 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1574 +--- !u!1 &1473696589364396
1575 +GameObject:
1576 + m_ObjectHideFlags: 0
1577 + m_CorrespondingSourceObject: {fileID: 0}
1578 + m_PrefabInstance: {fileID: 0}
1579 + m_PrefabAsset: {fileID: 0}
1580 + serializedVersion: 6
1581 + m_Component:
1582 + - component: {fileID: 4811138741142782}
1583 + - component: {fileID: 137720157363792874}
1584 + m_Layer: 0
1585 + m_Name: nacked_hair
1586 + m_TagString: Untagged
1587 + m_Icon: {fileID: 0}
1588 + m_NavMeshLayer: 0
1589 + m_StaticEditorFlags: 0
1590 + m_IsActive: 0
1591 +--- !u!4 &4811138741142782
1592 +Transform:
1593 + m_ObjectHideFlags: 0
1594 + m_CorrespondingSourceObject: {fileID: 0}
1595 + m_PrefabInstance: {fileID: 0}
1596 + m_PrefabAsset: {fileID: 0}
1597 + m_GameObject: {fileID: 1473696589364396}
1598 + m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071068}
1599 + m_LocalPosition: {x: 2.0758502, y: 0, z: -0.0149475}
1600 + m_LocalScale: {x: 1, y: 1, z: 1}
1601 + m_Children: []
1602 + m_Father: {fileID: 4203470457943290}
1603 + m_RootOrder: 9
1604 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1605 +--- !u!137 &137720157363792874
1606 +SkinnedMeshRenderer:
1607 + m_ObjectHideFlags: 0
1608 + m_CorrespondingSourceObject: {fileID: 0}
1609 + m_PrefabInstance: {fileID: 0}
1610 + m_PrefabAsset: {fileID: 0}
1611 + m_GameObject: {fileID: 1473696589364396}
1612 + m_Enabled: 1
1613 + m_CastShadows: 1
1614 + m_ReceiveShadows: 1
1615 + m_DynamicOccludee: 1
1616 + m_MotionVectors: 1
1617 + m_LightProbeUsage: 1
1618 + m_ReflectionProbeUsage: 1
1619 + m_RayTracingMode: 0
1620 + m_RenderingLayerMask: 1
1621 + m_RendererPriority: 0
1622 + m_Materials:
1623 + - {fileID: 2100000, guid: d7bdc2d5f68853f43b9023972e0a688a, type: 2}
1624 + m_StaticBatchInfo:
1625 + firstSubMesh: 0
1626 + subMeshCount: 0
1627 + m_StaticBatchRoot: {fileID: 0}
1628 + m_ProbeAnchor: {fileID: 0}
1629 + m_LightProbeVolumeOverride: {fileID: 0}
1630 + m_ScaleInLightmap: 1
1631 + m_ReceiveGI: 1
1632 + m_PreserveUVs: 0
1633 + m_IgnoreNormalsForChartDetection: 0
1634 + m_ImportantGI: 0
1635 + m_StitchLightmapSeams: 0
1636 + m_SelectedEditorRenderState: 3
1637 + m_MinimumChartSize: 4
1638 + m_AutoUVMaxDistance: 0.5
1639 + m_AutoUVMaxAngle: 89
1640 + m_LightmapParameters: {fileID: 0}
1641 + m_SortingLayerID: 0
1642 + m_SortingLayer: 0
1643 + m_SortingOrder: 0
1644 + serializedVersion: 2
1645 + m_Quality: 0
1646 + m_UpdateWhenOffscreen: 0
1647 + m_SkinnedMotionVectors: 1
1648 + m_Mesh: {fileID: 4300010, guid: ebaf91e845e67ac4f85b03ca6c72bd32, type: 3}
1649 + m_Bones:
1650 + - {fileID: 4523787933544984}
1651 + - {fileID: 4042239863920430}
1652 + m_BlendShapeWeights: []
1653 + m_RootBone: {fileID: 4523787933544984}
1654 + m_AABB:
1655 + m_Center: {x: 0.0000046491623, y: 0.15404058, z: 0.01651157}
1656 + m_Extent: {x: 0.05050124, y: 0.063180625, z: 0.06101946}
1657 + m_DirtyAABB: 0
1658 +--- !u!1 &1480221970127226
1659 +GameObject:
1660 + m_ObjectHideFlags: 0
1661 + m_CorrespondingSourceObject: {fileID: 0}
1662 + m_PrefabInstance: {fileID: 0}
1663 + m_PrefabAsset: {fileID: 0}
1664 + serializedVersion: 6
1665 + m_Component:
1666 + - component: {fileID: 4542997393183860}
1667 + - component: {fileID: 137935459797241270}
1668 + m_Layer: 0
1669 + m_Name: nacked_pants
1670 + m_TagString: Untagged
1671 + m_Icon: {fileID: 0}
1672 + m_NavMeshLayer: 0
1673 + m_StaticEditorFlags: 0
1674 + m_IsActive: 0
1675 +--- !u!4 &4542997393183860
1676 +Transform:
1677 + m_ObjectHideFlags: 0
1678 + m_CorrespondingSourceObject: {fileID: 0}
1679 + m_PrefabInstance: {fileID: 0}
1680 + m_PrefabAsset: {fileID: 0}
1681 + m_GameObject: {fileID: 1480221970127226}
1682 + m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071068}
1683 + m_LocalPosition: {x: 2.0758502, y: 0, z: -0.0149475}
1684 + m_LocalScale: {x: 1, y: 1, z: 1}
1685 + m_Children: []
1686 + m_Father: {fileID: 4203470457943290}
1687 + m_RootOrder: 10
1688 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1689 +--- !u!137 &137935459797241270
1690 +SkinnedMeshRenderer:
1691 + m_ObjectHideFlags: 0
1692 + m_CorrespondingSourceObject: {fileID: 0}
1693 + m_PrefabInstance: {fileID: 0}
1694 + m_PrefabAsset: {fileID: 0}
1695 + m_GameObject: {fileID: 1480221970127226}
1696 + m_Enabled: 1
1697 + m_CastShadows: 1
1698 + m_ReceiveShadows: 1
1699 + m_DynamicOccludee: 1
1700 + m_MotionVectors: 1
1701 + m_LightProbeUsage: 1
1702 + m_ReflectionProbeUsage: 1
1703 + m_RayTracingMode: 0
1704 + m_RenderingLayerMask: 1
1705 + m_RendererPriority: 0
1706 + m_Materials:
1707 + - {fileID: 2100000, guid: d7bdc2d5f68853f43b9023972e0a688a, type: 2}
1708 + m_StaticBatchInfo:
1709 + firstSubMesh: 0
1710 + subMeshCount: 0
1711 + m_StaticBatchRoot: {fileID: 0}
1712 + m_ProbeAnchor: {fileID: 0}
1713 + m_LightProbeVolumeOverride: {fileID: 0}
1714 + m_ScaleInLightmap: 1
1715 + m_ReceiveGI: 1
1716 + m_PreserveUVs: 0
1717 + m_IgnoreNormalsForChartDetection: 0
1718 + m_ImportantGI: 0
1719 + m_StitchLightmapSeams: 0
1720 + m_SelectedEditorRenderState: 3
1721 + m_MinimumChartSize: 4
1722 + m_AutoUVMaxDistance: 0.5
1723 + m_AutoUVMaxAngle: 89
1724 + m_LightmapParameters: {fileID: 0}
1725 + m_SortingLayerID: 0
1726 + m_SortingLayer: 0
1727 + m_SortingOrder: 0
1728 + serializedVersion: 2
1729 + m_Quality: 0
1730 + m_UpdateWhenOffscreen: 0
1731 + m_SkinnedMotionVectors: 1
1732 + m_Mesh: {fileID: 4300012, guid: ebaf91e845e67ac4f85b03ca6c72bd32, type: 3}
1733 + m_Bones:
1734 + - {fileID: 4354117456915712}
1735 + - {fileID: 4801596748095452}
1736 + - {fileID: 4127967858022266}
1737 + - {fileID: 4439595951381334}
1738 + - {fileID: 4666425505707968}
1739 + - {fileID: 4690363164342454}
1740 + - {fileID: 4026733763507060}
1741 + - {fileID: 4805208297127608}
1742 + m_BlendShapeWeights: []
1743 + m_RootBone: {fileID: 4354117456915712}
1744 + m_AABB:
1745 + m_Center: {x: -0.000014439225, y: -0.27714115, z: 0.0016239136}
1746 + m_Extent: {x: 0.118330374, y: 0.34367365, z: 0.08572919}
1747 + m_DirtyAABB: 0
1748 +--- !u!1 &1516747127850910
1749 +GameObject:
1750 + m_ObjectHideFlags: 0
1751 + m_CorrespondingSourceObject: {fileID: 0}
1752 + m_PrefabInstance: {fileID: 0}
1753 + m_PrefabAsset: {fileID: 0}
1754 + serializedVersion: 6
1755 + m_Component:
1756 + - component: {fileID: 4287635121461304}
1757 + m_Layer: 0
1758 + m_Name: girlBone_LeftHandThumb1
1759 + m_TagString: Untagged
1760 + m_Icon: {fileID: 0}
1761 + m_NavMeshLayer: 0
1762 + m_StaticEditorFlags: 0
1763 + m_IsActive: 1
1764 +--- !u!4 &4287635121461304
1765 +Transform:
1766 + m_ObjectHideFlags: 0
1767 + m_CorrespondingSourceObject: {fileID: 0}
1768 + m_PrefabInstance: {fileID: 0}
1769 + m_PrefabAsset: {fileID: 0}
1770 + m_GameObject: {fileID: 1516747127850910}
1771 + m_LocalRotation: {x: 0.23158523, y: -0.080933906, z: -0.3151738, w: 0.91677886}
1772 + m_LocalPosition: {x: 0.015139296, y: 0.020262336, z: 0.007692337}
1773 + m_LocalScale: {x: 0.9999998, y: 1.0000001, z: 0.99999994}
1774 + m_Children:
1775 + - {fileID: 4748973811754326}
1776 + m_Father: {fileID: 4978214648975866}
1777 + m_RootOrder: 4
1778 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1779 +--- !u!1 &1521353183988680
1780 +GameObject:
1781 + m_ObjectHideFlags: 0
1782 + m_CorrespondingSourceObject: {fileID: 0}
1783 + m_PrefabInstance: {fileID: 0}
1784 + m_PrefabAsset: {fileID: 0}
1785 + serializedVersion: 6
1786 + m_Component:
1787 + - component: {fileID: 4806409380690152}
1788 + - component: {fileID: 137810333128120192}
1789 + m_Layer: 0
1790 + m_Name: nacked_arms
1791 + m_TagString: Untagged
1792 + m_Icon: {fileID: 0}
1793 + m_NavMeshLayer: 0
1794 + m_StaticEditorFlags: 0
1795 + m_IsActive: 1
1796 +--- !u!4 &4806409380690152
1797 +Transform:
1798 + m_ObjectHideFlags: 0
1799 + m_CorrespondingSourceObject: {fileID: 0}
1800 + m_PrefabInstance: {fileID: 0}
1801 + m_PrefabAsset: {fileID: 0}
1802 + m_GameObject: {fileID: 1521353183988680}
1803 + m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071068}
1804 + m_LocalPosition: {x: 2.0758502, y: 0, z: -0.0149475}
1805 + m_LocalScale: {x: 1, y: 1, z: 1}
1806 + m_Children: []
1807 + m_Father: {fileID: 4203470457943290}
1808 + m_RootOrder: 6
1809 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1810 +--- !u!137 &137810333128120192
1811 +SkinnedMeshRenderer:
1812 + m_ObjectHideFlags: 0
1813 + m_CorrespondingSourceObject: {fileID: 0}
1814 + m_PrefabInstance: {fileID: 0}
1815 + m_PrefabAsset: {fileID: 0}
1816 + m_GameObject: {fileID: 1521353183988680}
1817 + m_Enabled: 1
1818 + m_CastShadows: 1
1819 + m_ReceiveShadows: 1
1820 + m_DynamicOccludee: 1
1821 + m_MotionVectors: 1
1822 + m_LightProbeUsage: 1
1823 + m_ReflectionProbeUsage: 1
1824 + m_RayTracingMode: 0
1825 + m_RenderingLayerMask: 1
1826 + m_RendererPriority: 0
1827 + m_Materials:
1828 + - {fileID: 2100000, guid: d7bdc2d5f68853f43b9023972e0a688a, type: 2}
1829 + m_StaticBatchInfo:
1830 + firstSubMesh: 0
1831 + subMeshCount: 0
1832 + m_StaticBatchRoot: {fileID: 0}
1833 + m_ProbeAnchor: {fileID: 0}
1834 + m_LightProbeVolumeOverride: {fileID: 0}
1835 + m_ScaleInLightmap: 1
1836 + m_ReceiveGI: 1
1837 + m_PreserveUVs: 0
1838 + m_IgnoreNormalsForChartDetection: 0
1839 + m_ImportantGI: 0
1840 + m_StitchLightmapSeams: 0
1841 + m_SelectedEditorRenderState: 3
1842 + m_MinimumChartSize: 4
1843 + m_AutoUVMaxDistance: 0.5
1844 + m_AutoUVMaxAngle: 89
1845 + m_LightmapParameters: {fileID: 0}
1846 + m_SortingLayerID: 0
1847 + m_SortingLayer: 0
1848 + m_SortingOrder: 0
1849 + serializedVersion: 2
1850 + m_Quality: 0
1851 + m_UpdateWhenOffscreen: 0
1852 + m_SkinnedMotionVectors: 1
1853 + m_Mesh: {fileID: 4300004, guid: ebaf91e845e67ac4f85b03ca6c72bd32, type: 3}
1854 + m_Bones:
1855 + - {fileID: 4962307417148674}
1856 + - {fileID: 4008705941920370}
1857 + - {fileID: 4322494634591600}
1858 + - {fileID: 4620507960290210}
1859 + - {fileID: 4919659206071456}
1860 + - {fileID: 4460988106533432}
1861 + - {fileID: 4804084406394552}
1862 + - {fileID: 4281201777327930}
1863 + - {fileID: 4965074760361248}
1864 + - {fileID: 4196160855055892}
1865 + - {fileID: 4258915973562716}
1866 + - {fileID: 4505887415972792}
1867 + - {fileID: 4863859798342434}
1868 + - {fileID: 4763230765392720}
1869 + - {fileID: 4008616417794044}
1870 + - {fileID: 4477060364586752}
1871 + - {fileID: 4118058108819142}
1872 + - {fileID: 4835466098057684}
1873 + - {fileID: 4477900738885146}
1874 + - {fileID: 4978214648975866}
1875 + - {fileID: 4287635121461304}
1876 + - {fileID: 4748973811754326}
1877 + - {fileID: 4076680128639222}
1878 + - {fileID: 4466712744100022}
1879 + - {fileID: 4229706507633470}
1880 + - {fileID: 4783804130908468}
1881 + - {fileID: 4341655268193362}
1882 + - {fileID: 4662460261556690}
1883 + - {fileID: 4833390546473628}
1884 + - {fileID: 4167153614824268}
1885 + - {fileID: 4354557897272978}
1886 + - {fileID: 4587543202857032}
1887 + - {fileID: 4533529588059760}
1888 + - {fileID: 4121876745137444}
1889 + - {fileID: 4299314453707202}
1890 + - {fileID: 4390377243074108}
1891 + m_BlendShapeWeights: []
1892 + m_RootBone: {fileID: 4477900738885146}
1893 + m_AABB:
1894 + m_Center: {x: 0.0013549645, y: -0.25174168, z: 0.0152672585}
1895 + m_Extent: {x: 0.059377886, y: 0.5736079, z: 0.032889746}
1896 + m_DirtyAABB: 0
1897 +--- !u!1 &1524655241307384
1898 +GameObject:
1899 + m_ObjectHideFlags: 0
1900 + m_CorrespondingSourceObject: {fileID: 0}
1901 + m_PrefabInstance: {fileID: 0}
1902 + m_PrefabAsset: {fileID: 0}
1903 + serializedVersion: 6
1904 + m_Component:
1905 + - component: {fileID: 4258915973562716}
1906 + m_Layer: 0
1907 + m_Name: girlBone_RightHandMiddle2
1908 + m_TagString: Untagged
1909 + m_Icon: {fileID: 0}
1910 + m_NavMeshLayer: 0
1911 + m_StaticEditorFlags: 0
1912 + m_IsActive: 1
1913 +--- !u!4 &4258915973562716
1914 +Transform:
1915 + m_ObjectHideFlags: 0
1916 + m_CorrespondingSourceObject: {fileID: 0}
1917 + m_PrefabInstance: {fileID: 0}
1918 + m_PrefabAsset: {fileID: 0}
1919 + m_GameObject: {fileID: 1524655241307384}
1920 + m_LocalRotation: {x: 0.009090552, y: -0.00044082096, z: -0.021637991, w: 0.9997245}
1921 + m_LocalPosition: {x: 0.00027427197, y: 0.028254375, z: 0.0010645294}
1922 + m_LocalScale: {x: 1, y: 1, z: 1}
1923 + m_Children:
1924 + - {fileID: 4505887415972792}
1925 + m_Father: {fileID: 4196160855055892}
1926 + m_RootOrder: 0
1927 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1928 +--- !u!1 &1525781967464708
1929 +GameObject:
1930 + m_ObjectHideFlags: 0
1931 + m_CorrespondingSourceObject: {fileID: 0}
1932 + m_PrefabInstance: {fileID: 0}
1933 + m_PrefabAsset: {fileID: 0}
1934 + serializedVersion: 6
1935 + m_Component:
1936 + - component: {fileID: 4965074760361248}
1937 + m_Layer: 0
1938 + m_Name: girlBone_RightHandIndex3
1939 + m_TagString: Untagged
1940 + m_Icon: {fileID: 0}
1941 + m_NavMeshLayer: 0
1942 + m_StaticEditorFlags: 0
1943 + m_IsActive: 1
1944 +--- !u!4 &4965074760361248
1945 +Transform:
1946 + m_ObjectHideFlags: 0
1947 + m_CorrespondingSourceObject: {fileID: 0}
1948 + m_PrefabInstance: {fileID: 0}
1949 + m_PrefabAsset: {fileID: 0}
1950 + m_GameObject: {fileID: 1525781967464708}
1951 + m_LocalRotation: {x: 0.0058973962, y: -0.00016609911, z: -0.0030132507, w: 0.99997807}
1952 + m_LocalPosition: {x: 0.000021009444, y: 0.018228158, z: 0.00021522521}
1953 + m_LocalScale: {x: 1.0000001, y: 1.0000001, z: 1.0000002}
1954 + m_Children:
1955 + - {fileID: 4324704417957496}
1956 + m_Father: {fileID: 4281201777327930}
1957 + m_RootOrder: 0
1958 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1959 +--- !u!1 &1552459906857848
1960 +GameObject:
1961 + m_ObjectHideFlags: 0
1962 + m_CorrespondingSourceObject: {fileID: 0}
1963 + m_PrefabInstance: {fileID: 0}
1964 + m_PrefabAsset: {fileID: 0}
1965 + serializedVersion: 6
1966 + m_Component:
1967 + - component: {fileID: 4460988106533432}
1968 + m_Layer: 0
1969 + m_Name: girlBone_RightHandThumb4
1970 + m_TagString: Untagged
1971 + m_Icon: {fileID: 0}
1972 + m_NavMeshLayer: 0
1973 + m_StaticEditorFlags: 0
1974 + m_IsActive: 1
1975 +--- !u!4 &4460988106533432
1976 +Transform:
1977 + m_ObjectHideFlags: 0
1978 + m_CorrespondingSourceObject: {fileID: 0}
1979 + m_PrefabInstance: {fileID: 0}
1980 + m_PrefabAsset: {fileID: 0}
1981 + m_GameObject: {fileID: 1552459906857848}
1982 + m_LocalRotation: {x: 0.000000008614718, y: 2.3910645e-25, z: 2.7755576e-17, w: 1}
1983 + m_LocalPosition: {x: -0.0003506021, y: 0.019365918, z: -3.2699615e-10}
1984 + m_LocalScale: {x: 1, y: 1, z: 1}
1985 + m_Children: []
1986 + m_Father: {fileID: 4919659206071456}
1987 + m_RootOrder: 0
1988 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1989 +--- !u!1 &1560321298271146
1990 +GameObject:
1991 + m_ObjectHideFlags: 0
1992 + m_CorrespondingSourceObject: {fileID: 0}
1993 + m_PrefabInstance: {fileID: 0}
1994 + m_PrefabAsset: {fileID: 0}
1995 + serializedVersion: 6
1996 + m_Component:
1997 + - component: {fileID: 4863859798342434}
1998 + m_Layer: 0
1999 + m_Name: girlBone_RightHandRing1
2000 + m_TagString: Untagged
2001 + m_Icon: {fileID: 0}
2002 + m_NavMeshLayer: 0
2003 + m_StaticEditorFlags: 0
2004 + m_IsActive: 1
2005 +--- !u!4 &4863859798342434
2006 +Transform:
2007 + m_ObjectHideFlags: 0
2008 + m_CorrespondingSourceObject: {fileID: 0}
2009 + m_PrefabInstance: {fileID: 0}
2010 + m_PrefabAsset: {fileID: 0}
2011 + m_GameObject: {fileID: 1560321298271146}
2012 + m_LocalRotation: {x: 0.005354797, y: 0.003940226, z: 0.042079337, w: 0.99909216}
2013 + m_LocalPosition: {x: 0.007584345, y: 0.07478666, z: -0.0003147888}
2014 + m_LocalScale: {x: 1, y: 0.9999999, z: 1}
2015 + m_Children:
2016 + - {fileID: 4763230765392720}
2017 + m_Father: {fileID: 4008705941920370}
2018 + m_RootOrder: 3
2019 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
2020 +--- !u!1 &1608882663514624
2021 +GameObject:
2022 + m_ObjectHideFlags: 0
2023 + m_CorrespondingSourceObject: {fileID: 0}
2024 + m_PrefabInstance: {fileID: 0}
2025 + m_PrefabAsset: {fileID: 0}
2026 + serializedVersion: 6
2027 + m_Component:
2028 + - component: {fileID: 4011743850051580}
2029 + m_Layer: 0
2030 + m_Name: girlBone_LeftHandRing4
2031 + m_TagString: Untagged
2032 + m_Icon: {fileID: 0}
2033 + m_NavMeshLayer: 0
2034 + m_StaticEditorFlags: 0
2035 + m_IsActive: 1
2036 +--- !u!4 &4011743850051580
2037 +Transform:
2038 + m_ObjectHideFlags: 0
2039 + m_CorrespondingSourceObject: {fileID: 0}
2040 + m_PrefabInstance: {fileID: 0}
2041 + m_PrefabAsset: {fileID: 0}
2042 + m_GameObject: {fileID: 1608882663514624}
2043 + m_LocalRotation: {x: 0.00000006868505, y: 0.0000000037252907, z: 0.000000011175869,
2044 + w: 1}
2045 + m_LocalPosition: {x: 0.000056264398, y: 0.015687713, z: 0.00000015258789}
2046 + m_LocalScale: {x: 0.9999998, y: 1, z: 1}
2047 + m_Children: []
2048 + m_Father: {fileID: 4533529588059760}
2049 + m_RootOrder: 0
2050 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
2051 +--- !u!1 &1639343683809014
2052 +GameObject:
2053 + m_ObjectHideFlags: 0
2054 + m_CorrespondingSourceObject: {fileID: 0}
2055 + m_PrefabInstance: {fileID: 0}
2056 + m_PrefabAsset: {fileID: 0}
2057 + serializedVersion: 6
2058 + m_Component:
2059 + - component: {fileID: 4477060364586752}
2060 + m_Layer: 0
2061 + m_Name: girlBone_RightHandPinky1
2062 + m_TagString: Untagged
2063 + m_Icon: {fileID: 0}
2064 + m_NavMeshLayer: 0
2065 + m_StaticEditorFlags: 0
2066 + m_IsActive: 1
2067 +--- !u!4 &4477060364586752
2068 +Transform:
2069 + m_ObjectHideFlags: 0
2070 + m_CorrespondingSourceObject: {fileID: 0}
2071 + m_PrefabInstance: {fileID: 0}
2072 + m_PrefabAsset: {fileID: 0}
2073 + m_GameObject: {fileID: 1639343683809014}
2074 + m_LocalRotation: {x: 0.007944409, y: -0.0022598172, z: 0.045406207, w: 0.99893445}
2075 + m_LocalPosition: {x: 0.023434794, y: 0.07164646, z: -0.003912735}
2076 + m_LocalScale: {x: 1, y: 1, z: 0.99999994}
2077 + m_Children:
2078 + - {fileID: 4118058108819142}
2079 + m_Father: {fileID: 4008705941920370}
2080 + m_RootOrder: 2
2081 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
2082 +--- !u!1 &1649837946910596
2083 +GameObject:
2084 + m_ObjectHideFlags: 0
2085 + m_CorrespondingSourceObject: {fileID: 0}
2086 + m_PrefabInstance: {fileID: 0}
2087 + m_PrefabAsset: {fileID: 0}
2088 + serializedVersion: 6
2089 + m_Component:
2090 + - component: {fileID: 4046958656703316}
2091 + m_Layer: 0
2092 + m_Name: girlBone_Spine2
2093 + m_TagString: Untagged
2094 + m_Icon: {fileID: 0}
2095 + m_NavMeshLayer: 0
2096 + m_StaticEditorFlags: 0
2097 + m_IsActive: 1
2098 +--- !u!4 &4046958656703316
2099 +Transform:
2100 + m_ObjectHideFlags: 0
2101 + m_CorrespondingSourceObject: {fileID: 0}
2102 + m_PrefabInstance: {fileID: 0}
2103 + m_PrefabAsset: {fileID: 0}
2104 + m_GameObject: {fileID: 1649837946910596}
2105 + m_LocalRotation: {x: -0.0000000027939677, y: -6.3108872e-30, z: 4.2992916e-29, w: 1}
2106 + m_LocalPosition: {x: -5.820766e-13, y: 0.07415993, z: -0.009418378}
2107 + m_LocalScale: {x: 0.99999994, y: 1, z: 1}
2108 + m_Children:
2109 + - {fileID: 4885659317983816}
2110 + - {fileID: 4523787933544984}
2111 + - {fileID: 4970367704179448}
2112 + m_Father: {fileID: 4460955216083280}
2113 + m_RootOrder: 0
2114 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
2115 +--- !u!1 &1668705854843630
2116 +GameObject:
2117 + m_ObjectHideFlags: 0
2118 + m_CorrespondingSourceObject: {fileID: 0}
2119 + m_PrefabInstance: {fileID: 0}
2120 + m_PrefabAsset: {fileID: 0}
2121 + serializedVersion: 6
2122 + m_Component:
2123 + - component: {fileID: 4805208297127608}
2124 + m_Layer: 0
2125 + m_Name: girlBone_LeftFoot
2126 + m_TagString: Untagged
2127 + m_Icon: {fileID: 0}
2128 + m_NavMeshLayer: 0
2129 + m_StaticEditorFlags: 0
2130 + m_IsActive: 1
2131 +--- !u!4 &4805208297127608
2132 +Transform:
2133 + m_ObjectHideFlags: 0
2134 + m_CorrespondingSourceObject: {fileID: 0}
2135 + m_PrefabInstance: {fileID: 0}
2136 + m_PrefabAsset: {fileID: 0}
2137 + m_GameObject: {fileID: 1668705854843630}
2138 + m_LocalRotation: {x: 0.503615, y: -0.04068498, z: -0.028510228, w: 0.8624986}
2139 + m_LocalPosition: {x: -0.000000009536743, y: 0.3002816, z: -0.0143203875}
2140 + m_LocalScale: {x: 1.0000004, y: 1.0000002, z: 1.0000004}
2141 + m_Children:
2142 + - {fileID: 4355606433998390}
2143 + m_Father: {fileID: 4026733763507060}
2144 + m_RootOrder: 0
2145 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
2146 +--- !u!1 &1671181149862106
2147 +GameObject:
2148 + m_ObjectHideFlags: 0
2149 + m_CorrespondingSourceObject: {fileID: 0}
2150 + m_PrefabInstance: {fileID: 0}
2151 + m_PrefabAsset: {fileID: 0}
2152 + serializedVersion: 6
2153 + m_Component:
2154 + - component: {fileID: 4196160855055892}
2155 + m_Layer: 0
2156 + m_Name: girlBone_RightHandMiddle1
2157 + m_TagString: Untagged
2158 + m_Icon: {fileID: 0}
2159 + m_NavMeshLayer: 0
2160 + m_StaticEditorFlags: 0
2161 + m_IsActive: 1
2162 +--- !u!4 &4196160855055892
2163 +Transform:
2164 + m_ObjectHideFlags: 0
2165 + m_CorrespondingSourceObject: {fileID: 0}
2166 + m_PrefabInstance: {fileID: 0}
2167 + m_PrefabAsset: {fileID: 0}
2168 + m_GameObject: {fileID: 1671181149862106}
2169 + m_LocalRotation: {x: -0.01103389, y: 0.00048440226, z: 0.050615452, w: 0.99865717}
2170 + m_LocalPosition: {x: -0.006680565, y: 0.07278572, z: 0.0011450195}
2171 + m_LocalScale: {x: 1, y: 0.99999976, z: 0.9999999}
2172 + m_Children:
2173 + - {fileID: 4258915973562716}
2174 + m_Father: {fileID: 4008705941920370}
2175 + m_RootOrder: 1
2176 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
2177 +--- !u!1 &1714825062508984
2178 +GameObject:
2179 + m_ObjectHideFlags: 0
2180 + m_CorrespondingSourceObject: {fileID: 0}
2181 + m_PrefabInstance: {fileID: 0}
2182 + m_PrefabAsset: {fileID: 0}
2183 + serializedVersion: 6
2184 + m_Component:
2185 + - component: {fileID: 4582428939865728}
2186 + - component: {fileID: 137736063574695040}
2187 + m_Layer: 0
2188 + m_Name: clothingSet_04_pants
2189 + m_TagString: Untagged
2190 + m_Icon: {fileID: 0}
2191 + m_NavMeshLayer: 0
2192 + m_StaticEditorFlags: 0
2193 + m_IsActive: 1
2194 +--- !u!4 &4582428939865728
2195 +Transform:
2196 + m_ObjectHideFlags: 0
2197 + m_CorrespondingSourceObject: {fileID: 0}
2198 + m_PrefabInstance: {fileID: 0}
2199 + m_PrefabAsset: {fileID: 0}
2200 + m_GameObject: {fileID: 1714825062508984}
2201 + m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071068}
2202 + m_LocalPosition: {x: -0, y: 0, z: 0}
2203 + m_LocalScale: {x: 1, y: 1, z: 1}
2204 + m_Children: []
2205 + m_Father: {fileID: 4203470457943290}
2206 + m_RootOrder: 2
2207 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
2208 +--- !u!137 &137736063574695040
2209 +SkinnedMeshRenderer:
2210 + m_ObjectHideFlags: 0
2211 + m_CorrespondingSourceObject: {fileID: 0}
2212 + m_PrefabInstance: {fileID: 0}
2213 + m_PrefabAsset: {fileID: 0}
2214 + m_GameObject: {fileID: 1714825062508984}
2215 + m_Enabled: 1
2216 + m_CastShadows: 1
2217 + m_ReceiveShadows: 1
2218 + m_DynamicOccludee: 1
2219 + m_MotionVectors: 1
2220 + m_LightProbeUsage: 1
2221 + m_ReflectionProbeUsage: 1
2222 + m_RayTracingMode: 0
2223 + m_RenderingLayerMask: 1
2224 + m_RendererPriority: 0
2225 + m_Materials:
2226 + - {fileID: 2100000, guid: 2a7782c65c7520d45be3e8ef87b3b9d3, type: 2}
2227 + m_StaticBatchInfo:
2228 + firstSubMesh: 0
2229 + subMeshCount: 0
2230 + m_StaticBatchRoot: {fileID: 0}
2231 + m_ProbeAnchor: {fileID: 0}
2232 + m_LightProbeVolumeOverride: {fileID: 0}
2233 + m_ScaleInLightmap: 1
2234 + m_ReceiveGI: 1
2235 + m_PreserveUVs: 0
2236 + m_IgnoreNormalsForChartDetection: 0
2237 + m_ImportantGI: 0
2238 + m_StitchLightmapSeams: 0
2239 + m_SelectedEditorRenderState: 3
2240 + m_MinimumChartSize: 4
2241 + m_AutoUVMaxDistance: 0.5
2242 + m_AutoUVMaxAngle: 89
2243 + m_LightmapParameters: {fileID: 0}
2244 + m_SortingLayerID: 0
2245 + m_SortingLayer: 0
2246 + m_SortingOrder: 0
2247 + serializedVersion: 2
2248 + m_Quality: 0
2249 + m_UpdateWhenOffscreen: 0
2250 + m_SkinnedMotionVectors: 1
2251 + m_Mesh: {fileID: 4300016, guid: ebaf91e845e67ac4f85b03ca6c72bd32, type: 3}
2252 + m_Bones:
2253 + - {fileID: 4354117456915712}
2254 + - {fileID: 4801596748095452}
2255 + - {fileID: 4127967858022266}
2256 + - {fileID: 4439595951381334}
2257 + - {fileID: 4666425505707968}
2258 + - {fileID: 4690363164342454}
2259 + - {fileID: 4026733763507060}
2260 + - {fileID: 4805208297127608}
2261 + m_BlendShapeWeights: []
2262 + m_RootBone: {fileID: 4354117456915712}
2263 + m_AABB:
2264 + m_Center: {x: 0.000054359436, y: -0.27712896, z: 0.0018572621}
2265 + m_Extent: {x: 0.11663151, y: 0.34366152, z: 0.08549583}
2266 + m_DirtyAABB: 0
2267 +--- !u!1 &1725552521570788
2268 +GameObject:
2269 + m_ObjectHideFlags: 0
2270 + m_CorrespondingSourceObject: {fileID: 0}
2271 + m_PrefabInstance: {fileID: 0}
2272 + m_PrefabAsset: {fileID: 0}
2273 + serializedVersion: 6
2274 + m_Component:
2275 + - component: {fileID: 4439595951381334}
2276 + m_Layer: 0
2277 + m_Name: girlBone_RightLeg
2278 + m_TagString: Untagged
2279 + m_Icon: {fileID: 0}
2280 + m_NavMeshLayer: 0
2281 + m_StaticEditorFlags: 0
2282 + m_IsActive: 1
2283 +--- !u!4 &4439595951381334
2284 +Transform:
2285 + m_ObjectHideFlags: 0
2286 + m_CorrespondingSourceObject: {fileID: 0}
2287 + m_PrefabInstance: {fileID: 0}
2288 + m_PrefabAsset: {fileID: 0}
2289 + m_GameObject: {fileID: 1725552521570788}
2290 + m_LocalRotation: {x: -0.008563996, y: -0.000029451186, z: -0.001955197, w: 0.99996144}
2291 + m_LocalPosition: {x: -0.000044813154, y: 0.2969606, z: 0.014514608}
2292 + m_LocalScale: {x: 0.9999999, y: 1, z: 0.9999995}
2293 + m_Children:
2294 + - {fileID: 4666425505707968}
2295 + m_Father: {fileID: 4127967858022266}
2296 + m_RootOrder: 0
2297 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
2298 +--- !u!1 &1737207650075298
2299 +GameObject:
2300 + m_ObjectHideFlags: 0
2301 + m_CorrespondingSourceObject: {fileID: 0}
2302 + m_PrefabInstance: {fileID: 0}
2303 + m_PrefabAsset: {fileID: 0}
2304 + serializedVersion: 6
2305 + m_Component:
2306 + - component: {fileID: 4141312076118382}
2307 + m_Layer: 0
2308 + m_Name: girlBone_LeftHandIndex4
2309 + m_TagString: Untagged
2310 + m_Icon: {fileID: 0}
2311 + m_NavMeshLayer: 0
2312 + m_StaticEditorFlags: 0
2313 + m_IsActive: 1
2314 +--- !u!4 &4141312076118382
2315 +Transform:
2316 + m_ObjectHideFlags: 0
2317 + m_CorrespondingSourceObject: {fileID: 0}
2318 + m_PrefabInstance: {fileID: 0}
2319 + m_PrefabAsset: {fileID: 0}
2320 + m_GameObject: {fileID: 1737207650075298}
2321 + m_LocalRotation: {x: 0.000000020489095, y: 0.0000000027939682, z: 0.0000000037252899,
2322 + w: 1}
2323 + m_LocalPosition: {x: 0.000069646834, y: 0.014366245, z: -0.00000015258789}
2324 + m_LocalScale: {x: 1.0000001, y: 1.0000001, z: 1}
2325 + m_Children: []
2326 + m_Father: {fileID: 4341655268193362}
2327 + m_RootOrder: 0
2328 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
2329 +--- !u!1 &1753924012026684
2330 +GameObject:
2331 + m_ObjectHideFlags: 0
2332 + m_CorrespondingSourceObject: {fileID: 0}
2333 + m_PrefabInstance: {fileID: 0}
2334 + m_PrefabAsset: {fileID: 0}
2335 + serializedVersion: 6
2336 + m_Component:
2337 + - component: {fileID: 4664368536208468}
2338 + m_Layer: 0
2339 + m_Name: girlBone_LeftHandMiddle4
2340 + m_TagString: Untagged
2341 + m_Icon: {fileID: 0}
2342 + m_NavMeshLayer: 0
2343 + m_StaticEditorFlags: 0
2344 + m_IsActive: 1
2345 +--- !u!4 &4664368536208468
2346 +Transform:
2347 + m_ObjectHideFlags: 0
2348 + m_CorrespondingSourceObject: {fileID: 0}
2349 + m_PrefabInstance: {fileID: 0}
2350 + m_PrefabAsset: {fileID: 0}
2351 + m_GameObject: {fileID: 1753924012026684}
2352 + m_LocalRotation: {x: 0.00000003736932, y: 1.2200819e-23, z: 0.000000004889444, w: 1}
2353 + m_LocalPosition: {x: -0.00040637492, y: 0.018224945, z: 0.00000022888183}
2354 + m_LocalScale: {x: 1, y: 1.0000001, z: 1}
2355 + m_Children: []
2356 + m_Father: {fileID: 4167153614824268}
2357 + m_RootOrder: 0
2358 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
2359 +--- !u!1 &1761771588148508
2360 +GameObject:
2361 + m_ObjectHideFlags: 0
2362 + m_CorrespondingSourceObject: {fileID: 0}
2363 + m_PrefabInstance: {fileID: 0}
2364 + m_PrefabAsset: {fileID: 0}
2365 + serializedVersion: 6
2366 + m_Component:
2367 + - component: {fileID: 4783804130908468}
2368 + m_Layer: 0
2369 + m_Name: girlBone_LeftHandIndex2
2370 + m_TagString: Untagged
2371 + m_Icon: {fileID: 0}
2372 + m_NavMeshLayer: 0
2373 + m_StaticEditorFlags: 0
2374 + m_IsActive: 1
2375 +--- !u!4 &4783804130908468
2376 +Transform:
2377 + m_ObjectHideFlags: 0
2378 + m_CorrespondingSourceObject: {fileID: 0}
2379 + m_PrefabInstance: {fileID: 0}
2380 + m_PrefabAsset: {fileID: 0}
2381 + m_GameObject: {fileID: 1761771588148508}
2382 + m_LocalRotation: {x: -0.0037578272, y: -0.00016679906, z: 0.0007008987, w: 0.99999267}
2383 + m_LocalPosition: {x: -0.00004860401, y: 0.019165616, z: 0.00008224487}
2384 + m_LocalScale: {x: 1.0000004, y: 1, z: 1.0000004}
2385 + m_Children:
2386 + - {fileID: 4341655268193362}
2387 + m_Father: {fileID: 4229706507633470}
2388 + m_RootOrder: 0
2389 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
2390 +--- !u!1 &1777215053291636
2391 +GameObject:
2392 + m_ObjectHideFlags: 0
2393 + m_CorrespondingSourceObject: {fileID: 0}
2394 + m_PrefabInstance: {fileID: 0}
2395 + m_PrefabAsset: {fileID: 0}
2396 + serializedVersion: 6
2397 + m_Component:
2398 + - component: {fileID: 4523787933544984}
2399 + m_Layer: 0
2400 + m_Name: girlBone_Neck
2401 + m_TagString: Untagged
2402 + m_Icon: {fileID: 0}
2403 + m_NavMeshLayer: 0
2404 + m_StaticEditorFlags: 0
2405 + m_IsActive: 1
2406 +--- !u!4 &4523787933544984
2407 +Transform:
2408 + m_ObjectHideFlags: 0
2409 + m_CorrespondingSourceObject: {fileID: 0}
2410 + m_PrefabInstance: {fileID: 0}
2411 + m_PrefabAsset: {fileID: 0}
2412 + m_GameObject: {fileID: 1777215053291636}
2413 + m_LocalRotation: {x: 0.022158662, y: 2.2942618e-21, z: -2.7060873e-20, w: 0.9997545}
2414 + m_LocalPosition: {x: -0, y: 0.08397598, z: -0.010515215}
2415 + m_LocalScale: {x: 0.99999994, y: 1, z: 1}
2416 + m_Children:
2417 + - {fileID: 4042239863920430}
2418 + m_Father: {fileID: 4046958656703316}
2419 + m_RootOrder: 1
2420 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
2421 +--- !u!1 &1789676075589930
2422 +GameObject:
2423 + m_ObjectHideFlags: 0
2424 + m_CorrespondingSourceObject: {fileID: 0}
2425 + m_PrefabInstance: {fileID: 0}
2426 + m_PrefabAsset: {fileID: 0}
2427 + serializedVersion: 6
2428 + m_Component:
2429 + - component: {fileID: 4395771236236030}
2430 + m_Layer: 0
2431 + m_Name: girlBone_eyes
2432 + m_TagString: Untagged
2433 + m_Icon: {fileID: 0}
2434 + m_NavMeshLayer: 0
2435 + m_StaticEditorFlags: 0
2436 + m_IsActive: 1
2437 +--- !u!4 &4395771236236030
2438 +Transform:
2439 + m_ObjectHideFlags: 0
2440 + m_CorrespondingSourceObject: {fileID: 0}
2441 + m_PrefabInstance: {fileID: 0}
2442 + m_PrefabAsset: {fileID: 0}
2443 + m_GameObject: {fileID: 1789676075589930}
2444 + m_LocalRotation: {x: -0.0037725624, y: 0.000027900891, z: 0.000005367171, w: 0.9999929}
2445 + m_LocalPosition: {x: -2.910383e-13, y: 0.07639023, z: 0.013120426}
2446 + m_LocalScale: {x: 1.0000001, y: 1, z: 0.99999976}
2447 + m_Children:
2448 + - {fileID: 4062291092435412}
2449 + m_Father: {fileID: 4042239863920430}
2450 + m_RootOrder: 0
2451 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
2452 +--- !u!1 &1796614828412492
2453 +GameObject:
2454 + m_ObjectHideFlags: 0
2455 + m_CorrespondingSourceObject: {fileID: 0}
2456 + m_PrefabInstance: {fileID: 0}
2457 + m_PrefabAsset: {fileID: 0}
2458 + serializedVersion: 6
2459 + m_Component:
2460 + - component: {fileID: 4167153614824268}
2461 + m_Layer: 0
2462 + m_Name: girlBone_LeftHandMiddle3
2463 + m_TagString: Untagged
2464 + m_Icon: {fileID: 0}
2465 + m_NavMeshLayer: 0
2466 + m_StaticEditorFlags: 0
2467 + m_IsActive: 1
2468 +--- !u!4 &4167153614824268
2469 +Transform:
2470 + m_ObjectHideFlags: 0
2471 + m_CorrespondingSourceObject: {fileID: 0}
2472 + m_PrefabInstance: {fileID: 0}
2473 + m_PrefabAsset: {fileID: 0}
2474 + m_GameObject: {fileID: 1796614828412492}
2475 + m_LocalRotation: {x: 0.009755992, y: 0.0006591564, z: -0.027900992, w: 0.99956286}
2476 + m_LocalPosition: {x: 0.0006806278, y: 0.020289402, z: 0.00039596556}
2477 + m_LocalScale: {x: 1.0000002, y: 1.0000002, z: 1.0000002}
2478 + m_Children:
2479 + - {fileID: 4664368536208468}
2480 + m_Father: {fileID: 4833390546473628}
2481 + m_RootOrder: 0
2482 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
2483 +--- !u!1 &1797623927304012
2484 +GameObject:
2485 + m_ObjectHideFlags: 0
2486 + m_CorrespondingSourceObject: {fileID: 0}
2487 + m_PrefabInstance: {fileID: 0}
2488 + m_PrefabAsset: {fileID: 0}
2489 + serializedVersion: 6
2490 + m_Component:
2491 + - component: {fileID: 4160266186476056}
2492 + m_Layer: 0
2493 + m_Name: girlBone_LeftToe_End
2494 + m_TagString: Untagged
2495 + m_Icon: {fileID: 0}
2496 + m_NavMeshLayer: 0
2497 + m_StaticEditorFlags: 0
2498 + m_IsActive: 1
2499 +--- !u!4 &4160266186476056
2500 +Transform:
2501 + m_ObjectHideFlags: 0
2502 + m_CorrespondingSourceObject: {fileID: 0}
2503 + m_PrefabInstance: {fileID: 0}
2504 + m_PrefabAsset: {fileID: 0}
2505 + m_GameObject: {fileID: 1797623927304012}
2506 + m_LocalRotation: {x: -0.00000002793967, y: 6.984866e-10, z: -0.000000013038512,
2507 + w: 1}
2508 + m_LocalPosition: {x: 0.007235775, y: 0.058140457, z: -0.0000000023841857}
2509 + m_LocalScale: {x: 1.0000005, y: 1.0000004, z: 1.0000002}
2510 + m_Children: []
2511 + m_Father: {fileID: 4355606433998390}
2512 + m_RootOrder: 0
2513 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
2514 +--- !u!1 &1800668005206582
2515 +GameObject:
2516 + m_ObjectHideFlags: 0
2517 + m_CorrespondingSourceObject: {fileID: 0}
2518 + m_PrefabInstance: {fileID: 0}
2519 + m_PrefabAsset: {fileID: 0}
2520 + serializedVersion: 6
2521 + m_Component:
2522 + - component: {fileID: 4341655268193362}
2523 + m_Layer: 0
2524 + m_Name: girlBone_LeftHandIndex3
2525 + m_TagString: Untagged
2526 + m_Icon: {fileID: 0}
2527 + m_NavMeshLayer: 0
2528 + m_StaticEditorFlags: 0
2529 + m_IsActive: 1
2530 +--- !u!4 &4341655268193362
2531 +Transform:
2532 + m_ObjectHideFlags: 0
2533 + m_CorrespondingSourceObject: {fileID: 0}
2534 + m_PrefabInstance: {fileID: 0}
2535 + m_PrefabAsset: {fileID: 0}
2536 + m_GameObject: {fileID: 1800668005206582}
2537 + m_LocalRotation: {x: 0.0058974777, y: 0.00016612014, z: 0.0030133608, w: 0.99997807}
2538 + m_LocalPosition: {x: -0.000021014213, y: 0.018228207, z: 0.00021530151}
2539 + m_LocalScale: {x: 1.0000004, y: 1.0000002, z: 1.0000002}
2540 + m_Children:
2541 + - {fileID: 4141312076118382}
2542 + m_Father: {fileID: 4783804130908468}
2543 + m_RootOrder: 0
2544 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
2545 +--- !u!1 &1819045007636390
2546 +GameObject:
2547 + m_ObjectHideFlags: 0
2548 + m_CorrespondingSourceObject: {fileID: 0}
2549 + m_PrefabInstance: {fileID: 0}
2550 + m_PrefabAsset: {fileID: 0}
2551 + serializedVersion: 6
2552 + m_Component:
2553 + - component: {fileID: 4354117456915712}
2554 + m_Layer: 0
2555 + m_Name: girlBone_Hips
2556 + m_TagString: Untagged
2557 + m_Icon: {fileID: 0}
2558 + m_NavMeshLayer: 0
2559 + m_StaticEditorFlags: 0
2560 + m_IsActive: 1
2561 +--- !u!4 &4354117456915712
2562 +Transform:
2563 + m_ObjectHideFlags: 0
2564 + m_CorrespondingSourceObject: {fileID: 0}
2565 + m_PrefabInstance: {fileID: 0}
2566 + m_PrefabAsset: {fileID: 0}
2567 + m_GameObject: {fileID: 1819045007636390}
2568 + m_LocalRotation: {x: 9.8607613e-32, y: 4.135903e-25, z: -4.537859e-25, w: 1}
2569 + m_LocalPosition: {x: -0.000004806667, y: 0.6784319, z: -0.0078101032}
2570 + m_LocalScale: {x: 0.9999998, y: 1, z: 0.9999998}
2571 + m_Children:
2572 + - {fileID: 4690363164342454}
2573 + - {fileID: 4127967858022266}
2574 + - {fileID: 4801596748095452}
2575 + m_Father: {fileID: 4883341357160262}
2576 + m_RootOrder: 0
2577 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
2578 +--- !u!1 &1840000467212140
2579 +GameObject:
2580 + m_ObjectHideFlags: 0
2581 + m_CorrespondingSourceObject: {fileID: 0}
2582 + m_PrefabInstance: {fileID: 0}
2583 + m_PrefabAsset: {fileID: 0}
2584 + serializedVersion: 6
2585 + m_Component:
2586 + - component: {fileID: 4971529842020144}
2587 + m_Layer: 0
2588 + m_Name: girlBone_RightHandRing4
2589 + m_TagString: Untagged
2590 + m_Icon: {fileID: 0}
2591 + m_NavMeshLayer: 0
2592 + m_StaticEditorFlags: 0
2593 + m_IsActive: 1
2594 +--- !u!4 &4971529842020144
2595 +Transform:
2596 + m_ObjectHideFlags: 0
2597 + m_CorrespondingSourceObject: {fileID: 0}
2598 + m_PrefabInstance: {fileID: 0}
2599 + m_PrefabAsset: {fileID: 0}
2600 + m_GameObject: {fileID: 1840000467212140}
2601 + m_LocalRotation: {x: 0.000000023748726, y: -0.0000000037252903, z: -0.000000005587936,
2602 + w: 1}
2603 + m_LocalPosition: {x: -0.00005626142, y: 0.015687674, z: 0}
2604 + m_LocalScale: {x: 0.99999994, y: 1, z: 1}
2605 + m_Children: []
2606 + m_Father: {fileID: 4008616417794044}
2607 + m_RootOrder: 0
2608 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
2609 +--- !u!1 &1848002680695372
2610 +GameObject:
2611 + m_ObjectHideFlags: 0
2612 + m_CorrespondingSourceObject: {fileID: 0}
2613 + m_PrefabInstance: {fileID: 0}
2614 + m_PrefabAsset: {fileID: 0}
2615 + serializedVersion: 6
2616 + m_Component:
2617 + - component: {fileID: 4833390546473628}
2618 + m_Layer: 0
2619 + m_Name: girlBone_LeftHandMiddle2
2620 + m_TagString: Untagged
2621 + m_Icon: {fileID: 0}
2622 + m_NavMeshLayer: 0
2623 + m_StaticEditorFlags: 0
2624 + m_IsActive: 1
2625 +--- !u!4 &4833390546473628
2626 +Transform:
2627 + m_ObjectHideFlags: 0
2628 + m_CorrespondingSourceObject: {fileID: 0}
2629 + m_PrefabInstance: {fileID: 0}
2630 + m_PrefabAsset: {fileID: 0}
2631 + m_GameObject: {fileID: 1848002680695372}
2632 + m_LocalRotation: {x: 0.009090634, y: 0.0004407921, z: 0.02163809, w: 0.9997245}
2633 + m_LocalPosition: {x: -0.00027427674, y: 0.028254412, z: 0.0010645294}
2634 + m_LocalScale: {x: 0.9999999, y: 0.99999994, z: 1}
2635 + m_Children:
2636 + - {fileID: 4167153614824268}
2637 + m_Father: {fileID: 4662460261556690}
2638 + m_RootOrder: 0
2639 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
2640 +--- !u!1 &1866921014067190
2641 +GameObject:
2642 + m_ObjectHideFlags: 0
2643 + m_CorrespondingSourceObject: {fileID: 0}
2644 + m_PrefabInstance: {fileID: 0}
2645 + m_PrefabAsset: {fileID: 0}
2646 + serializedVersion: 6
2647 + m_Component:
2648 + - component: {fileID: 4932696857576562}
2649 + - component: {fileID: 137881791255630346}
2650 + m_Layer: 0
2651 + m_Name: nacked_body
2652 + m_TagString: Untagged
2653 + m_Icon: {fileID: 0}
2654 + m_NavMeshLayer: 0
2655 + m_StaticEditorFlags: 0
2656 + m_IsActive: 0
2657 +--- !u!4 &4932696857576562
2658 +Transform:
2659 + m_ObjectHideFlags: 0
2660 + m_CorrespondingSourceObject: {fileID: 0}
2661 + m_PrefabInstance: {fileID: 0}
2662 + m_PrefabAsset: {fileID: 0}
2663 + m_GameObject: {fileID: 1866921014067190}
2664 + m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071068}
2665 + m_LocalPosition: {x: 2.0758502, y: 0, z: -0.0149475}
2666 + m_LocalScale: {x: 1, y: 1, z: 1}
2667 + m_Children: []
2668 + m_Father: {fileID: 4203470457943290}
2669 + m_RootOrder: 7
2670 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
2671 +--- !u!137 &137881791255630346
2672 +SkinnedMeshRenderer:
2673 + m_ObjectHideFlags: 0
2674 + m_CorrespondingSourceObject: {fileID: 0}
2675 + m_PrefabInstance: {fileID: 0}
2676 + m_PrefabAsset: {fileID: 0}
2677 + m_GameObject: {fileID: 1866921014067190}
2678 + m_Enabled: 1
2679 + m_CastShadows: 1
2680 + m_ReceiveShadows: 1
2681 + m_DynamicOccludee: 1
2682 + m_MotionVectors: 1
2683 + m_LightProbeUsage: 1
2684 + m_ReflectionProbeUsage: 1
2685 + m_RayTracingMode: 0
2686 + m_RenderingLayerMask: 1
2687 + m_RendererPriority: 0
2688 + m_Materials:
2689 + - {fileID: 2100000, guid: d7bdc2d5f68853f43b9023972e0a688a, type: 2}
2690 + m_StaticBatchInfo:
2691 + firstSubMesh: 0
2692 + subMeshCount: 0
2693 + m_StaticBatchRoot: {fileID: 0}
2694 + m_ProbeAnchor: {fileID: 0}
2695 + m_LightProbeVolumeOverride: {fileID: 0}
2696 + m_ScaleInLightmap: 1
2697 + m_ReceiveGI: 1
2698 + m_PreserveUVs: 0
2699 + m_IgnoreNormalsForChartDetection: 0
2700 + m_ImportantGI: 0
2701 + m_StitchLightmapSeams: 0
2702 + m_SelectedEditorRenderState: 3
2703 + m_MinimumChartSize: 4
2704 + m_AutoUVMaxDistance: 0.5
2705 + m_AutoUVMaxAngle: 89
2706 + m_LightmapParameters: {fileID: 0}
2707 + m_SortingLayerID: 0
2708 + m_SortingLayer: 0
2709 + m_SortingOrder: 0
2710 + serializedVersion: 2
2711 + m_Quality: 0
2712 + m_UpdateWhenOffscreen: 0
2713 + m_SkinnedMotionVectors: 1
2714 + m_Mesh: {fileID: 4300006, guid: ebaf91e845e67ac4f85b03ca6c72bd32, type: 3}
2715 + m_Bones:
2716 + - {fileID: 4354117456915712}
2717 + - {fileID: 4801596748095452}
2718 + - {fileID: 4460955216083280}
2719 + - {fileID: 4046958656703316}
2720 + - {fileID: 4523787933544984}
2721 + - {fileID: 4042239863920430}
2722 + - {fileID: 4970367704179448}
2723 + - {fileID: 4435480750022110}
2724 + - {fileID: 4962307417148674}
2725 + - {fileID: 4008705941920370}
2726 + - {fileID: 4885659317983816}
2727 + - {fileID: 4047810778954354}
2728 + - {fileID: 4477900738885146}
2729 + - {fileID: 4978214648975866}
2730 + m_BlendShapeWeights: []
2731 + m_RootBone: {fileID: 4354117456915712}
2732 + m_AABB:
2733 + m_Center: {x: 0.000004544854, y: 0.16365692, z: 0.02047034}
2734 + m_Extent: {x: 0.4231152, y: 0.15985909, z: 0.08802132}
2735 + m_DirtyAABB: 0
2736 +--- !u!1 &1900274007143584
2737 +GameObject:
2738 + m_ObjectHideFlags: 0
2739 + m_CorrespondingSourceObject: {fileID: 0}
2740 + m_PrefabInstance: {fileID: 0}
2741 + m_PrefabAsset: {fileID: 0}
2742 + serializedVersion: 6
2743 + m_Component:
2744 + - component: {fileID: 4804084406394552}
2745 + m_Layer: 0
2746 + m_Name: girlBone_RightHandIndex1
2747 + m_TagString: Untagged
2748 + m_Icon: {fileID: 0}
2749 + m_NavMeshLayer: 0
2750 + m_StaticEditorFlags: 0
2751 + m_IsActive: 1
2752 +--- !u!4 &4804084406394552
2753 +Transform:
2754 + m_ObjectHideFlags: 0
2755 + m_CorrespondingSourceObject: {fileID: 0}
2756 + m_PrefabInstance: {fileID: 0}
2757 + m_PrefabAsset: {fileID: 0}
2758 + m_GameObject: {fileID: 1900274007143584}
2759 + m_LocalRotation: {x: 0.005784999, y: -0.0019441925, z: 0.047004677, w: 0.99887604}
2760 + m_LocalPosition: {x: -0.020500213, y: 0.074022174, z: 0.0024048614}
2761 + m_LocalScale: {x: 1, y: 0.9999999, z: 1}
2762 + m_Children:
2763 + - {fileID: 4281201777327930}
2764 + m_Father: {fileID: 4008705941920370}
2765 + m_RootOrder: 0
2766 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
2767 +--- !u!1 &1901434312550002
2768 +GameObject:
2769 + m_ObjectHideFlags: 0
2770 + m_CorrespondingSourceObject: {fileID: 0}
2771 + m_PrefabInstance: {fileID: 0}
2772 + m_PrefabAsset: {fileID: 0}
2773 + serializedVersion: 6
2774 + m_Component:
2775 + - component: {fileID: 4047810778954354}
2776 + m_Layer: 0
2777 + m_Name: girlBone_LeftArm
2778 + m_TagString: Untagged
2779 + m_Icon: {fileID: 0}
2780 + m_NavMeshLayer: 0
2781 + m_StaticEditorFlags: 0
2782 + m_IsActive: 1
2783 +--- !u!4 &4047810778954354
2784 +Transform:
2785 + m_ObjectHideFlags: 0
2786 + m_CorrespondingSourceObject: {fileID: 0}
2787 + m_PrefabInstance: {fileID: 0}
2788 + m_PrefabAsset: {fileID: 0}
2789 + m_GameObject: {fileID: 1901434312550002}
2790 + m_LocalRotation: {x: -0.11813999, y: -0.0050295396, z: -0.022881467, w: 0.99272054}
2791 + m_LocalPosition: {x: -0.000000011920928, y: 0.0614916, z: -0.00000022888183}
2792 + m_LocalScale: {x: 0.99999976, y: 1, z: 0.9999998}
2793 + m_Children:
2794 + - {fileID: 4477900738885146}
2795 + m_Father: {fileID: 4885659317983816}
2796 + m_RootOrder: 0
2797 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
2798 +--- !u!1 &1911498575809070
2799 +GameObject:
2800 + m_ObjectHideFlags: 0
2801 + m_CorrespondingSourceObject: {fileID: 0}
2802 + m_PrefabInstance: {fileID: 0}
2803 + m_PrefabAsset: {fileID: 0}
2804 + serializedVersion: 6
2805 + m_Component:
2806 + - component: {fileID: 4035716376342418}
2807 + - component: {fileID: 137706915639498454}
2808 + m_Layer: 0
2809 + m_Name: clothingSet_04_boots
2810 + m_TagString: Untagged
2811 + m_Icon: {fileID: 0}
2812 + m_NavMeshLayer: 0
2813 + m_StaticEditorFlags: 0
2814 + m_IsActive: 1
2815 +--- !u!4 &4035716376342418
2816 +Transform:
2817 + m_ObjectHideFlags: 0
2818 + m_CorrespondingSourceObject: {fileID: 0}
2819 + m_PrefabInstance: {fileID: 0}
2820 + m_PrefabAsset: {fileID: 0}
2821 + m_GameObject: {fileID: 1911498575809070}
2822 + m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071068}
2823 + m_LocalPosition: {x: -0, y: 0, z: 0}
2824 + m_LocalScale: {x: 1, y: 1, z: 1}
2825 + m_Children: []
2826 + m_Father: {fileID: 4203470457943290}
2827 + m_RootOrder: 1
2828 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
2829 +--- !u!137 &137706915639498454
2830 +SkinnedMeshRenderer:
2831 + m_ObjectHideFlags: 0
2832 + m_CorrespondingSourceObject: {fileID: 0}
2833 + m_PrefabInstance: {fileID: 0}
2834 + m_PrefabAsset: {fileID: 0}
2835 + m_GameObject: {fileID: 1911498575809070}
2836 + m_Enabled: 1
2837 + m_CastShadows: 1
2838 + m_ReceiveShadows: 1
2839 + m_DynamicOccludee: 1
2840 + m_MotionVectors: 1
2841 + m_LightProbeUsage: 1
2842 + m_ReflectionProbeUsage: 1
2843 + m_RayTracingMode: 0
2844 + m_RenderingLayerMask: 1
2845 + m_RendererPriority: 0
2846 + m_Materials:
2847 + - {fileID: 2100000, guid: 2a7782c65c7520d45be3e8ef87b3b9d3, type: 2}
2848 + m_StaticBatchInfo:
2849 + firstSubMesh: 0
2850 + subMeshCount: 0
2851 + m_StaticBatchRoot: {fileID: 0}
2852 + m_ProbeAnchor: {fileID: 0}
2853 + m_LightProbeVolumeOverride: {fileID: 0}
2854 + m_ScaleInLightmap: 1
2855 + m_ReceiveGI: 1
2856 + m_PreserveUVs: 0
2857 + m_IgnoreNormalsForChartDetection: 0
2858 + m_ImportantGI: 0
2859 + m_StitchLightmapSeams: 0
2860 + m_SelectedEditorRenderState: 3
2861 + m_MinimumChartSize: 4
2862 + m_AutoUVMaxDistance: 0.5
2863 + m_AutoUVMaxAngle: 89
2864 + m_LightmapParameters: {fileID: 0}
2865 + m_SortingLayerID: 0
2866 + m_SortingLayer: 0
2867 + m_SortingOrder: 0
2868 + serializedVersion: 2
2869 + m_Quality: 0
2870 + m_UpdateWhenOffscreen: 0
2871 + m_SkinnedMotionVectors: 1
2872 + m_Mesh: {fileID: 4300018, guid: ebaf91e845e67ac4f85b03ca6c72bd32, type: 3}
2873 + m_Bones:
2874 + - {fileID: 4439595951381334}
2875 + - {fileID: 4666425505707968}
2876 + - {fileID: 4609385560783686}
2877 + - {fileID: 4026733763507060}
2878 + - {fileID: 4805208297127608}
2879 + - {fileID: 4355606433998390}
2880 + m_BlendShapeWeights: []
2881 + m_RootBone: {fileID: 4026733763507060}
2882 + m_AABB:
2883 + m_Center: {x: -0.06422368, y: 0.32209525, z: 0.020818241}
2884 + m_Extent: {x: 0.11175954, y: 0.07521219, z: 0.10161885}
2885 + m_DirtyAABB: 0
2886 +--- !u!1 &1917155002819414
2887 +GameObject:
2888 + m_ObjectHideFlags: 0
2889 + m_CorrespondingSourceObject: {fileID: 0}
2890 + m_PrefabInstance: {fileID: 0}
2891 + m_PrefabAsset: {fileID: 0}
2892 + serializedVersion: 6
2893 + m_Component:
2894 + - component: {fileID: 4670342141894114}
2895 + m_Layer: 0
2896 + m_Name: girlBone_RightHandMiddle4
2897 + m_TagString: Untagged
2898 + m_Icon: {fileID: 0}
2899 + m_NavMeshLayer: 0
2900 + m_StaticEditorFlags: 0
2901 + m_IsActive: 1
2902 +--- !u!4 &4670342141894114
2903 +Transform:
2904 + m_ObjectHideFlags: 0
2905 + m_CorrespondingSourceObject: {fileID: 0}
2906 + m_PrefabInstance: {fileID: 0}
2907 + m_PrefabAsset: {fileID: 0}
2908 + m_GameObject: {fileID: 1917155002819414}
2909 + m_LocalRotation: {x: 0.000000036641726, y: -0.0000000018626451, z: -9.313227e-10,
2910 + w: 1}
2911 + m_LocalPosition: {x: 0.00040636538, y: 0.018224925, z: 0.000000076293944}
2912 + m_LocalScale: {x: 1, y: 1, z: 1}
2913 + m_Children: []
2914 + m_Father: {fileID: 4505887415972792}
2915 + m_RootOrder: 0
2916 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
2917 +--- !u!1 &1958651230388464
2918 +GameObject:
2919 + m_ObjectHideFlags: 0
2920 + m_CorrespondingSourceObject: {fileID: 0}
2921 + m_PrefabInstance: {fileID: 0}
2922 + m_PrefabAsset: {fileID: 0}
2923 + serializedVersion: 6
2924 + m_Component:
2925 + - component: {fileID: 4970367704179448}
2926 + m_Layer: 0
2927 + m_Name: girlBone_RightShoulder
2928 + m_TagString: Untagged
2929 + m_Icon: {fileID: 0}
2930 + m_NavMeshLayer: 0
2931 + m_StaticEditorFlags: 0
2932 + m_IsActive: 1
2933 +--- !u!4 &4970367704179448
2934 +Transform:
2935 + m_ObjectHideFlags: 0
2936 + m_CorrespondingSourceObject: {fileID: 0}
2937 + m_PrefabInstance: {fileID: 0}
2938 + m_PrefabAsset: {fileID: 0}
2939 + m_GameObject: {fileID: 1958651230388464}
2940 + m_LocalRotation: {x: -0.5511559, y: -0.43983266, z: 0.56001276, w: -0.4349254}
2941 + m_LocalPosition: {x: 0.028530924, y: 0.072883226, z: -0.011092913}
2942 + m_LocalScale: {x: 1, y: 1, z: 0.9999999}
2943 + m_Children:
2944 + - {fileID: 4435480750022110}
2945 + m_Father: {fileID: 4046958656703316}
2946 + m_RootOrder: 2
2947 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
2948 +--- !u!1 &1959487044059850
2949 +GameObject:
2950 + m_ObjectHideFlags: 0
2951 + m_CorrespondingSourceObject: {fileID: 0}
2952 + m_PrefabInstance: {fileID: 0}
2953 + m_PrefabAsset: {fileID: 0}
2954 + serializedVersion: 6
2955 + m_Component:
2956 + - component: {fileID: 4118058108819142}
2957 + m_Layer: 0
2958 + m_Name: girlBone_RightHandPinky2
2959 + m_TagString: Untagged
2960 + m_Icon: {fileID: 0}
2961 + m_NavMeshLayer: 0
2962 + m_StaticEditorFlags: 0
2963 + m_IsActive: 1
2964 +--- !u!4 &4118058108819142
2965 +Transform:
2966 + m_ObjectHideFlags: 0
2967 + m_CorrespondingSourceObject: {fileID: 0}
2968 + m_PrefabInstance: {fileID: 0}
2969 + m_PrefabAsset: {fileID: 0}
2970 + m_GameObject: {fileID: 1959487044059850}
2971 + m_LocalRotation: {x: 0.00000009128212, y: -0.000011226696, z: -0.0006257042, w: 0.9999998}
2972 + m_LocalPosition: {x: -0.0011125087, y: 0.018093128, z: 0.003372345}
2973 + m_LocalScale: {x: 1.0000008, y: 1.0000006, z: 1.0000008}
2974 + m_Children:
2975 + - {fileID: 4835466098057684}
2976 + m_Father: {fileID: 4477060364586752}
2977 + m_RootOrder: 0
2978 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
2979 +--- !u!1 &1964906897504560
2980 +GameObject:
2981 + m_ObjectHideFlags: 0
2982 + m_CorrespondingSourceObject: {fileID: 0}
2983 + m_PrefabInstance: {fileID: 0}
2984 + m_PrefabAsset: {fileID: 0}
2985 + serializedVersion: 6
2986 + m_Component:
2987 + - component: {fileID: 4690363164342454}
2988 + m_Layer: 0
2989 + m_Name: girlBone_LeftUpLeg
2990 + m_TagString: Untagged
2991 + m_Icon: {fileID: 0}
2992 + m_NavMeshLayer: 0
2993 + m_StaticEditorFlags: 0
2994 + m_IsActive: 1
2995 +--- !u!4 &4690363164342454
2996 +Transform:
2997 + m_ObjectHideFlags: 0
2998 + m_CorrespondingSourceObject: {fileID: 0}
2999 + m_PrefabInstance: {fileID: 0}
3000 + m_PrefabAsset: {fileID: 0}
3001 + m_GameObject: {fileID: 1964906897504560}
3002 + m_LocalRotation: {x: 0.0037378953, y: -0.010900485, z: 0.99993324, w: 0.0008747484}
3003 + m_LocalPosition: {x: -0.06463796, y: -0.031077193, z: 0.006678613}
3004 + m_LocalScale: {x: 1.0000001, y: 1.0000001, z: 0.99999994}
3005 + m_Children:
3006 + - {fileID: 4026733763507060}
3007 + m_Father: {fileID: 4354117456915712}
3008 + m_RootOrder: 0
3009 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
3010 +--- !u!1 &1968678444920602
3011 +GameObject:
3012 + m_ObjectHideFlags: 0
3013 + m_CorrespondingSourceObject: {fileID: 0}
3014 + m_PrefabInstance: {fileID: 0}
3015 + m_PrefabAsset: {fileID: 0}
3016 + serializedVersion: 6
3017 + m_Component:
3018 + - component: {fileID: 4460955216083280}
3019 + m_Layer: 0
3020 + m_Name: girlBone_Spine1
3021 + m_TagString: Untagged
3022 + m_Icon: {fileID: 0}
3023 + m_NavMeshLayer: 0
3024 + m_StaticEditorFlags: 0
3025 + m_IsActive: 1
3026 +--- !u!4 &4460955216083280
3027 +Transform:
3028 + m_ObjectHideFlags: 0
3029 + m_CorrespondingSourceObject: {fileID: 0}
3030 + m_PrefabInstance: {fileID: 0}
3031 + m_PrefabAsset: {fileID: 0}
3032 + m_GameObject: {fileID: 1968678444920602}
3033 + m_LocalRotation: {x: 0.000000011175871, y: -7.2813026e-14, z: 6.7956225e-13, w: 1}
3034 + m_LocalPosition: {x: -1.1641532e-12, y: 0.06789192, z: 0.0013911533}
3035 + m_LocalScale: {x: 1, y: 1, z: 1}
3036 + m_Children:
3037 + - {fileID: 4046958656703316}
3038 + m_Father: {fileID: 4801596748095452}
3039 + m_RootOrder: 0
3040 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
3041 +--- !u!1 &1989971961568778
3042 +GameObject:
3043 + m_ObjectHideFlags: 0
3044 + m_CorrespondingSourceObject: {fileID: 0}
3045 + m_PrefabInstance: {fileID: 0}
3046 + m_PrefabAsset: {fileID: 0}
3047 + serializedVersion: 6
3048 + m_Component:
3049 + - component: {fileID: 4962307417148674}
3050 + m_Layer: 0
3051 + m_Name: girlBone_RightForeArm
3052 + m_TagString: Untagged
3053 + m_Icon: {fileID: 0}
3054 + m_NavMeshLayer: 0
3055 + m_StaticEditorFlags: 0
3056 + m_IsActive: 1
3057 +--- !u!4 &4962307417148674
3058 +Transform:
3059 + m_ObjectHideFlags: 0
3060 + m_CorrespondingSourceObject: {fileID: 0}
3061 + m_PrefabInstance: {fileID: 0}
3062 + m_PrefabAsset: {fileID: 0}
3063 + m_GameObject: {fileID: 1989971961568778}
3064 + m_LocalRotation: {x: -0.0000030215651, y: 0.0000055429036, z: -0.031014496, w: 0.99951893}
3065 + m_LocalPosition: {x: 0.005318148, y: 0.16356948, z: -0.0000014495849}
3066 + m_LocalScale: {x: 0.99999994, y: 1, z: 1}
3067 + m_Children:
3068 + - {fileID: 4008705941920370}
3069 + m_Father: {fileID: 4435480750022110}
3070 + m_RootOrder: 0
3071 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!29 &1
4 +OcclusionCullingSettings:
5 + m_ObjectHideFlags: 0
6 + serializedVersion: 2
7 + m_OcclusionBakeSettings:
8 + smallestOccluder: 5
9 + smallestHole: 0.25
10 + backfaceThreshold: 100
11 + m_SceneGUID: 00000000000000000000000000000000
12 + m_OcclusionCullingData: {fileID: 0}
13 +--- !u!104 &2
14 +RenderSettings:
15 + m_ObjectHideFlags: 0
16 + serializedVersion: 9
17 + m_Fog: 0
18 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
19 + m_FogMode: 3
20 + m_FogDensity: 0.01
21 + m_LinearFogStart: 0
22 + m_LinearFogEnd: 300
23 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
24 + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
25 + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
26 + m_AmbientIntensity: 1
27 + m_AmbientMode: 0
28 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
29 + m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
30 + m_HaloStrength: 0.5
31 + m_FlareStrength: 1
32 + m_FlareFadeSpeed: 3
33 + m_HaloTexture: {fileID: 0}
34 + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
35 + m_DefaultReflectionMode: 0
36 + m_DefaultReflectionResolution: 128
37 + m_ReflectionBounces: 1
38 + m_ReflectionIntensity: 1
39 + m_CustomReflection: {fileID: 0}
40 + m_Sun: {fileID: 0}
41 + m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
42 + m_UseRadianceAmbientProbe: 0
43 +--- !u!157 &3
44 +LightmapSettings:
45 + m_ObjectHideFlags: 0
46 + serializedVersion: 11
47 + m_GIWorkflowMode: 0
48 + m_GISettings:
49 + serializedVersion: 2
50 + m_BounceScale: 1
51 + m_IndirectOutputScale: 1
52 + m_AlbedoBoost: 1
53 + m_EnvironmentLightingMode: 0
54 + m_EnableBakedLightmaps: 1
55 + m_EnableRealtimeLightmaps: 1
56 + m_LightmapEditorSettings:
57 + serializedVersion: 12
58 + m_Resolution: 2
59 + m_BakeResolution: 40
60 + m_AtlasSize: 1024
61 + m_AO: 0
62 + m_AOMaxDistance: 1
63 + m_CompAOExponent: 1
64 + m_CompAOExponentDirect: 0
65 + m_ExtractAmbientOcclusion: 0
66 + m_Padding: 2
67 + m_LightmapParameters: {fileID: 0}
68 + m_LightmapsBakeMode: 1
69 + m_TextureCompression: 1
70 + m_FinalGather: 0
71 + m_FinalGatherFiltering: 1
72 + m_FinalGatherRayCount: 256
73 + m_ReflectionCompression: 2
74 + m_MixedBakeMode: 2
75 + m_BakeBackend: 0
76 + m_PVRSampling: 1
77 + m_PVRDirectSampleCount: 32
78 + m_PVRSampleCount: 500
79 + m_PVRBounces: 2
80 + m_PVREnvironmentSampleCount: 500
81 + m_PVREnvironmentReferencePointCount: 2048
82 + m_PVRFilteringMode: 2
83 + m_PVRDenoiserTypeDirect: 0
84 + m_PVRDenoiserTypeIndirect: 0
85 + m_PVRDenoiserTypeAO: 0
86 + m_PVRFilterTypeDirect: 0
87 + m_PVRFilterTypeIndirect: 0
88 + m_PVRFilterTypeAO: 0
89 + m_PVREnvironmentMIS: 0
90 + m_PVRCulling: 1
91 + m_PVRFilteringGaussRadiusDirect: 1
92 + m_PVRFilteringGaussRadiusIndirect: 5
93 + m_PVRFilteringGaussRadiusAO: 2
94 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5
95 + m_PVRFilteringAtrousPositionSigmaIndirect: 2
96 + m_PVRFilteringAtrousPositionSigmaAO: 1
97 + m_ExportTrainingData: 0
98 + m_TrainingDataDestination: TrainingData
99 + m_LightProbeSampleCountMultiplier: 4
100 + m_LightingDataAsset: {fileID: 0}
101 + m_UseShadowmask: 1
102 +--- !u!196 &4
103 +NavMeshSettings:
104 + serializedVersion: 2
105 + m_ObjectHideFlags: 0
106 + m_BuildSettings:
107 + serializedVersion: 2
108 + agentTypeID: 0
109 + agentRadius: 0.5
110 + agentHeight: 2
111 + agentSlope: 45
112 + agentClimb: 0.4
113 + ledgeDropHeight: 0
114 + maxJumpAcrossDistance: 0
115 + minRegionArea: 2
116 + manualCellSize: 0
117 + cellSize: 0.16666667
118 + manualTileSize: 0
119 + tileSize: 256
120 + accuratePlacement: 0
121 + debug:
122 + m_Flags: 0
123 + m_NavMeshData: {fileID: 0}
124 +--- !u!1001 &589500241
125 +PrefabInstance:
126 + m_ObjectHideFlags: 0
127 + serializedVersion: 2
128 + m_Modification:
129 + m_TransformParent: {fileID: 0}
130 + m_Modifications:
131 + - target: {fileID: 4203470457943290, guid: 01c14961d9931d94f9ccb0cf0c46ba9f, type: 3}
132 + propertyPath: m_LocalPosition.x
133 + value: 0
134 + objectReference: {fileID: 0}
135 + - target: {fileID: 4203470457943290, guid: 01c14961d9931d94f9ccb0cf0c46ba9f, type: 3}
136 + propertyPath: m_LocalPosition.y
137 + value: 0
138 + objectReference: {fileID: 0}
139 + - target: {fileID: 4203470457943290, guid: 01c14961d9931d94f9ccb0cf0c46ba9f, type: 3}
140 + propertyPath: m_LocalPosition.z
141 + value: 0
142 + objectReference: {fileID: 0}
143 + - target: {fileID: 4203470457943290, guid: 01c14961d9931d94f9ccb0cf0c46ba9f, type: 3}
144 + propertyPath: m_LocalRotation.x
145 + value: 0
146 + objectReference: {fileID: 0}
147 + - target: {fileID: 4203470457943290, guid: 01c14961d9931d94f9ccb0cf0c46ba9f, type: 3}
148 + propertyPath: m_LocalRotation.y
149 + value: 0
150 + objectReference: {fileID: 0}
151 + - target: {fileID: 4203470457943290, guid: 01c14961d9931d94f9ccb0cf0c46ba9f, type: 3}
152 + propertyPath: m_LocalRotation.z
153 + value: 0
154 + objectReference: {fileID: 0}
155 + - target: {fileID: 4203470457943290, guid: 01c14961d9931d94f9ccb0cf0c46ba9f, type: 3}
156 + propertyPath: m_LocalRotation.w
157 + value: 1
158 + objectReference: {fileID: 0}
159 + - target: {fileID: 4203470457943290, guid: 01c14961d9931d94f9ccb0cf0c46ba9f, type: 3}
160 + propertyPath: m_RootOrder
161 + value: 2
162 + objectReference: {fileID: 0}
163 + - target: {fileID: 95319963403342656, guid: 01c14961d9931d94f9ccb0cf0c46ba9f,
164 + type: 3}
165 + propertyPath: m_Controller
166 + value:
167 + objectReference: {fileID: 9100000, guid: 90551d12333151a479de3e2cf74c19e2, type: 2}
168 + m_RemovedComponents: []
169 + m_SourcePrefab: {fileID: 100100000, guid: 01c14961d9931d94f9ccb0cf0c46ba9f, type: 3}
170 +--- !u!1001 &1021310681
171 +PrefabInstance:
172 + m_ObjectHideFlags: 0
173 + serializedVersion: 2
174 + m_Modification:
175 + m_TransformParent: {fileID: 0}
176 + m_Modifications:
177 + - target: {fileID: 1003328744321094, guid: 01c14961d9931d94f9ccb0cf0c46ba9f, type: 3}
178 + propertyPath: m_Name
179 + value: clothingSet_04_And_nackedSet (1)
180 + objectReference: {fileID: 0}
181 + - target: {fileID: 1322654470426778, guid: 01c14961d9931d94f9ccb0cf0c46ba9f, type: 3}
182 + propertyPath: m_IsActive
183 + value: 1
184 + objectReference: {fileID: 0}
185 + - target: {fileID: 1386238558992680, guid: 01c14961d9931d94f9ccb0cf0c46ba9f, type: 3}
186 + propertyPath: m_IsActive
187 + value: 0
188 + objectReference: {fileID: 0}
189 + - target: {fileID: 1480221970127226, guid: 01c14961d9931d94f9ccb0cf0c46ba9f, type: 3}
190 + propertyPath: m_IsActive
191 + value: 1
192 + objectReference: {fileID: 0}
193 + - target: {fileID: 1714825062508984, guid: 01c14961d9931d94f9ccb0cf0c46ba9f, type: 3}
194 + propertyPath: m_IsActive
195 + value: 0
196 + objectReference: {fileID: 0}
197 + - target: {fileID: 1866921014067190, guid: 01c14961d9931d94f9ccb0cf0c46ba9f, type: 3}
198 + propertyPath: m_IsActive
199 + value: 1
200 + objectReference: {fileID: 0}
201 + - target: {fileID: 1911498575809070, guid: 01c14961d9931d94f9ccb0cf0c46ba9f, type: 3}
202 + propertyPath: m_IsActive
203 + value: 0
204 + objectReference: {fileID: 0}
205 + - target: {fileID: 4203470457943290, guid: 01c14961d9931d94f9ccb0cf0c46ba9f, type: 3}
206 + propertyPath: m_LocalPosition.x
207 + value: -0.527
208 + objectReference: {fileID: 0}
209 + - target: {fileID: 4203470457943290, guid: 01c14961d9931d94f9ccb0cf0c46ba9f, type: 3}
210 + propertyPath: m_LocalPosition.y
211 + value: 0
212 + objectReference: {fileID: 0}
213 + - target: {fileID: 4203470457943290, guid: 01c14961d9931d94f9ccb0cf0c46ba9f, type: 3}
214 + propertyPath: m_LocalPosition.z
215 + value: -0.458
216 + objectReference: {fileID: 0}
217 + - target: {fileID: 4203470457943290, guid: 01c14961d9931d94f9ccb0cf0c46ba9f, type: 3}
218 + propertyPath: m_LocalRotation.x
219 + value: -0
220 + objectReference: {fileID: 0}
221 + - target: {fileID: 4203470457943290, guid: 01c14961d9931d94f9ccb0cf0c46ba9f, type: 3}
222 + propertyPath: m_LocalRotation.y
223 + value: 0.21783075
224 + objectReference: {fileID: 0}
225 + - target: {fileID: 4203470457943290, guid: 01c14961d9931d94f9ccb0cf0c46ba9f, type: 3}
226 + propertyPath: m_LocalRotation.z
227 + value: -0
228 + objectReference: {fileID: 0}
229 + - target: {fileID: 4203470457943290, guid: 01c14961d9931d94f9ccb0cf0c46ba9f, type: 3}
230 + propertyPath: m_LocalRotation.w
231 + value: 0.97598654
232 + objectReference: {fileID: 0}
233 + - target: {fileID: 4203470457943290, guid: 01c14961d9931d94f9ccb0cf0c46ba9f, type: 3}
234 + propertyPath: m_RootOrder
235 + value: 3
236 + objectReference: {fileID: 0}
237 + - target: {fileID: 4203470457943290, guid: 01c14961d9931d94f9ccb0cf0c46ba9f, type: 3}
238 + propertyPath: m_LocalEulerAnglesHint.y
239 + value: 25.163002
240 + objectReference: {fileID: 0}
241 + - target: {fileID: 95319963403342656, guid: 01c14961d9931d94f9ccb0cf0c46ba9f,
242 + type: 3}
243 + propertyPath: m_Controller
244 + value:
245 + objectReference: {fileID: 9100000, guid: 90551d12333151a479de3e2cf74c19e2, type: 2}
246 + m_RemovedComponents: []
247 + m_SourcePrefab: {fileID: 100100000, guid: 01c14961d9931d94f9ccb0cf0c46ba9f, type: 3}
248 +--- !u!1 &1491828014
249 +GameObject:
250 + m_ObjectHideFlags: 0
251 + m_CorrespondingSourceObject: {fileID: 0}
252 + m_PrefabInstance: {fileID: 0}
253 + m_PrefabAsset: {fileID: 0}
254 + serializedVersion: 6
255 + m_Component:
256 + - component: {fileID: 1491828016}
257 + - component: {fileID: 1491828015}
258 + m_Layer: 0
259 + m_Name: Directional Light
260 + m_TagString: Untagged
261 + m_Icon: {fileID: 0}
262 + m_NavMeshLayer: 0
263 + m_StaticEditorFlags: 0
264 + m_IsActive: 1
265 +--- !u!108 &1491828015
266 +Light:
267 + m_ObjectHideFlags: 0
268 + m_CorrespondingSourceObject: {fileID: 0}
269 + m_PrefabInstance: {fileID: 0}
270 + m_PrefabAsset: {fileID: 0}
271 + m_GameObject: {fileID: 1491828014}
272 + m_Enabled: 1
273 + serializedVersion: 10
274 + m_Type: 1
275 + m_Shape: 0
276 + m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
277 + m_Intensity: 1
278 + m_Range: 10
279 + m_SpotAngle: 30
280 + m_InnerSpotAngle: 21.80208
281 + m_CookieSize: 10
282 + m_Shadows:
283 + m_Type: 2
284 + m_Resolution: -1
285 + m_CustomResolution: -1
286 + m_Strength: 1
287 + m_Bias: 0.05
288 + m_NormalBias: 0.4
289 + m_NearPlane: 0.2
290 + m_CullingMatrixOverride:
291 + e00: 1
292 + e01: 0
293 + e02: 0
294 + e03: 0
295 + e10: 0
296 + e11: 1
297 + e12: 0
298 + e13: 0
299 + e20: 0
300 + e21: 0
301 + e22: 1
302 + e23: 0
303 + e30: 0
304 + e31: 0
305 + e32: 0
306 + e33: 1
307 + m_UseCullingMatrixOverride: 0
308 + m_Cookie: {fileID: 0}
309 + m_DrawHalo: 0
310 + m_Flare: {fileID: 0}
311 + m_RenderMode: 0
312 + m_CullingMask:
313 + serializedVersion: 2
314 + m_Bits: 4294967295
315 + m_RenderingLayerMask: 1
316 + m_Lightmapping: 4
317 + m_LightShadowCasterMode: 0
318 + m_AreaSize: {x: 1, y: 1}
319 + m_BounceIntensity: 1
320 + m_ColorTemperature: 6570
321 + m_UseColorTemperature: 0
322 + m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
323 + m_UseBoundingSphereOverride: 0
324 + m_ShadowRadius: 0
325 + m_ShadowAngle: 0
326 +--- !u!4 &1491828016
327 +Transform:
328 + m_ObjectHideFlags: 0
329 + m_CorrespondingSourceObject: {fileID: 0}
330 + m_PrefabInstance: {fileID: 0}
331 + m_PrefabAsset: {fileID: 0}
332 + m_GameObject: {fileID: 1491828014}
333 + m_LocalRotation: {x: 0.8476289, y: -0.12410934, z: 0.22712141, w: 0.46318248}
334 + m_LocalPosition: {x: 0.05, y: 3.11, z: -0.08}
335 + m_LocalScale: {x: 1, y: 1, z: 1}
336 + m_Children: []
337 + m_Father: {fileID: 0}
338 + m_RootOrder: 1
339 + m_LocalEulerAnglesHint: {x: 122.692, y: -30, z: -0.000015258789}
340 +--- !u!1 &1620557530
341 +GameObject:
342 + m_ObjectHideFlags: 0
343 + m_CorrespondingSourceObject: {fileID: 0}
344 + m_PrefabInstance: {fileID: 0}
345 + m_PrefabAsset: {fileID: 0}
346 + serializedVersion: 6
347 + m_Component:
348 + - component: {fileID: 1620557535}
349 + - component: {fileID: 1620557534}
350 + - component: {fileID: 1620557532}
351 + - component: {fileID: 1620557531}
352 + m_Layer: 0
353 + m_Name: Main Camera
354 + m_TagString: MainCamera
355 + m_Icon: {fileID: 0}
356 + m_NavMeshLayer: 0
357 + m_StaticEditorFlags: 0
358 + m_IsActive: 1
359 +--- !u!81 &1620557531
360 +AudioListener:
361 + m_ObjectHideFlags: 0
362 + m_CorrespondingSourceObject: {fileID: 0}
363 + m_PrefabInstance: {fileID: 0}
364 + m_PrefabAsset: {fileID: 0}
365 + m_GameObject: {fileID: 1620557530}
366 + m_Enabled: 1
367 +--- !u!124 &1620557532
368 +Behaviour:
369 + m_ObjectHideFlags: 0
370 + m_CorrespondingSourceObject: {fileID: 0}
371 + m_PrefabInstance: {fileID: 0}
372 + m_PrefabAsset: {fileID: 0}
373 + m_GameObject: {fileID: 1620557530}
374 + m_Enabled: 1
375 +--- !u!20 &1620557534
376 +Camera:
377 + m_ObjectHideFlags: 0
378 + m_CorrespondingSourceObject: {fileID: 0}
379 + m_PrefabInstance: {fileID: 0}
380 + m_PrefabAsset: {fileID: 0}
381 + m_GameObject: {fileID: 1620557530}
382 + m_Enabled: 1
383 + serializedVersion: 2
384 + m_ClearFlags: 1
385 + m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
386 + m_projectionMatrixMode: 1
387 + m_GateFitMode: 2
388 + m_FOVAxisMode: 0
389 + m_SensorSize: {x: 36, y: 24}
390 + m_LensShift: {x: 0, y: 0}
391 + m_FocalLength: 50
392 + m_NormalizedViewPortRect:
393 + serializedVersion: 2
394 + x: 0
395 + y: 0
396 + width: 1
397 + height: 1
398 + near clip plane: 0.3
399 + far clip plane: 1000
400 + field of view: 60
401 + orthographic: 0
402 + orthographic size: 5
403 + m_Depth: -1
404 + m_CullingMask:
405 + serializedVersion: 2
406 + m_Bits: 4294967295
407 + m_RenderingPath: -1
408 + m_TargetTexture: {fileID: 0}
409 + m_TargetDisplay: 0
410 + m_TargetEye: 3
411 + m_HDR: 1
412 + m_AllowMSAA: 1
413 + m_AllowDynamicResolution: 0
414 + m_ForceIntoRT: 0
415 + m_OcclusionCulling: 1
416 + m_StereoConvergence: 10
417 + m_StereoSeparation: 0.022
418 +--- !u!4 &1620557535
419 +Transform:
420 + m_ObjectHideFlags: 0
421 + m_CorrespondingSourceObject: {fileID: 0}
422 + m_PrefabInstance: {fileID: 0}
423 + m_PrefabAsset: {fileID: 0}
424 + m_GameObject: {fileID: 1620557530}
425 + m_LocalRotation: {x: 0, y: 1, z: 0, w: 0}
426 + m_LocalPosition: {x: 0, y: 1.31, z: 3}
427 + m_LocalScale: {x: 1, y: 1, z: 1}
428 + m_Children: []
429 + m_Father: {fileID: 0}
430 + m_RootOrder: 0
431 + m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0}
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!21 &2100000
4 +Material:
5 + serializedVersion: 6
6 + m_ObjectHideFlags: 0
7 + m_CorrespondingSourceObject: {fileID: 0}
8 + m_PrefabInstance: {fileID: 0}
9 + m_PrefabAsset: {fileID: 0}
10 + m_Name: clothingSet_04_tex
11 + m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
12 + m_ShaderKeywords:
13 + m_LightmapFlags: 4
14 + m_EnableInstancingVariants: 0
15 + m_DoubleSidedGI: 0
16 + m_CustomRenderQueue: -1
17 + stringTagMap: {}
18 + disabledShaderPasses: []
19 + m_SavedProperties:
20 + serializedVersion: 3
21 + m_TexEnvs:
22 + - _BumpMap:
23 + m_Texture: {fileID: 0}
24 + m_Scale: {x: 1, y: 1}
25 + m_Offset: {x: 0, y: 0}
26 + - _DetailAlbedoMap:
27 + m_Texture: {fileID: 0}
28 + m_Scale: {x: 1, y: 1}
29 + m_Offset: {x: 0, y: 0}
30 + - _DetailMask:
31 + m_Texture: {fileID: 0}
32 + m_Scale: {x: 1, y: 1}
33 + m_Offset: {x: 0, y: 0}
34 + - _DetailNormalMap:
35 + m_Texture: {fileID: 0}
36 + m_Scale: {x: 1, y: 1}
37 + m_Offset: {x: 0, y: 0}
38 + - _EmissionMap:
39 + m_Texture: {fileID: 0}
40 + m_Scale: {x: 1, y: 1}
41 + m_Offset: {x: 0, y: 0}
42 + - _MainTex:
43 + m_Texture: {fileID: 2800000, guid: 784c78924e5396744953169847d21860, type: 3}
44 + m_Scale: {x: 1, y: 1}
45 + m_Offset: {x: 0, y: 0}
46 + - _MetallicGlossMap:
47 + m_Texture: {fileID: 0}
48 + m_Scale: {x: 1, y: 1}
49 + m_Offset: {x: 0, y: 0}
50 + - _OcclusionMap:
51 + m_Texture: {fileID: 0}
52 + m_Scale: {x: 1, y: 1}
53 + m_Offset: {x: 0, y: 0}
54 + - _ParallaxMap:
55 + m_Texture: {fileID: 0}
56 + m_Scale: {x: 1, y: 1}
57 + m_Offset: {x: 0, y: 0}
58 + m_Floats:
59 + - _BumpScale: 1
60 + - _Cutoff: 0.5
61 + - _DetailNormalMapScale: 1
62 + - _DstBlend: 0
63 + - _GlossMapScale: 1
64 + - _Glossiness: 0.5
65 + - _GlossyReflections: 1
66 + - _Metallic: 0
67 + - _Mode: 0
68 + - _OcclusionStrength: 1
69 + - _Parallax: 0.02
70 + - _SmoothnessTextureChannel: 0
71 + - _SpecularHighlights: 1
72 + - _SrcBlend: 1
73 + - _UVSec: 0
74 + - _ZWrite: 1
75 + m_Colors:
76 + - _Color: {r: 1, g: 1, b: 1, a: 1}
77 + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!21 &2100000
4 +Material:
5 + serializedVersion: 6
6 + m_ObjectHideFlags: 0
7 + m_CorrespondingSourceObject: {fileID: 0}
8 + m_PrefabInstance: {fileID: 0}
9 + m_PrefabAsset: {fileID: 0}
10 + m_Name: girl_texture_01
11 + m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
12 + m_ShaderKeywords:
13 + m_LightmapFlags: 4
14 + m_EnableInstancingVariants: 0
15 + m_DoubleSidedGI: 0
16 + m_CustomRenderQueue: -1
17 + stringTagMap: {}
18 + disabledShaderPasses: []
19 + m_SavedProperties:
20 + serializedVersion: 3
21 + m_TexEnvs:
22 + - _BumpMap:
23 + m_Texture: {fileID: 0}
24 + m_Scale: {x: 1, y: 1}
25 + m_Offset: {x: 0, y: 0}
26 + - _DetailAlbedoMap:
27 + m_Texture: {fileID: 0}
28 + m_Scale: {x: 1, y: 1}
29 + m_Offset: {x: 0, y: 0}
30 + - _DetailMask:
31 + m_Texture: {fileID: 0}
32 + m_Scale: {x: 1, y: 1}
33 + m_Offset: {x: 0, y: 0}
34 + - _DetailNormalMap:
35 + m_Texture: {fileID: 0}
36 + m_Scale: {x: 1, y: 1}
37 + m_Offset: {x: 0, y: 0}
38 + - _EmissionMap:
39 + m_Texture: {fileID: 0}
40 + m_Scale: {x: 1, y: 1}
41 + m_Offset: {x: 0, y: 0}
42 + - _MainTex:
43 + m_Texture: {fileID: 2800000, guid: e955f1ae9549b1f418ecd6aa9ba99082, type: 3}
44 + m_Scale: {x: 1, y: 1}
45 + m_Offset: {x: 0, y: 0}
46 + - _MetallicGlossMap:
47 + m_Texture: {fileID: 0}
48 + m_Scale: {x: 1, y: 1}
49 + m_Offset: {x: 0, y: 0}
50 + - _OcclusionMap:
51 + m_Texture: {fileID: 0}
52 + m_Scale: {x: 1, y: 1}
53 + m_Offset: {x: 0, y: 0}
54 + - _ParallaxMap:
55 + m_Texture: {fileID: 0}
56 + m_Scale: {x: 1, y: 1}
57 + m_Offset: {x: 0, y: 0}
58 + m_Floats:
59 + - _BumpScale: 1
60 + - _Cutoff: 0.5
61 + - _DetailNormalMapScale: 1
62 + - _DstBlend: 0
63 + - _GlossMapScale: 1
64 + - _Glossiness: 0.5
65 + - _GlossyReflections: 1
66 + - _Metallic: 0
67 + - _Mode: 0
68 + - _OcclusionStrength: 1
69 + - _Parallax: 0.02
70 + - _SmoothnessTextureChannel: 0
71 + - _SpecularHighlights: 1
72 + - _SrcBlend: 1
73 + - _UVSec: 0
74 + - _ZWrite: 1
75 + m_Colors:
76 + - _Color: {r: 1, g: 1, b: 1, a: 1}
77 + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!21 &2100000
4 +Material:
5 + serializedVersion: 6
6 + m_ObjectHideFlags: 0
7 + m_CorrespondingSourceObject: {fileID: 0}
8 + m_PrefabInstance: {fileID: 0}
9 + m_PrefabAsset: {fileID: 0}
10 + m_Name: hair1
11 + m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
12 + m_ShaderKeywords:
13 + m_LightmapFlags: 4
14 + m_EnableInstancingVariants: 0
15 + m_DoubleSidedGI: 0
16 + m_CustomRenderQueue: -1
17 + stringTagMap: {}
18 + disabledShaderPasses: []
19 + m_SavedProperties:
20 + serializedVersion: 3
21 + m_TexEnvs:
22 + - _BumpMap:
23 + m_Texture: {fileID: 0}
24 + m_Scale: {x: 1, y: 1}
25 + m_Offset: {x: 0, y: 0}
26 + - _DetailAlbedoMap:
27 + m_Texture: {fileID: 0}
28 + m_Scale: {x: 1, y: 1}
29 + m_Offset: {x: 0, y: 0}
30 + - _DetailMask:
31 + m_Texture: {fileID: 0}
32 + m_Scale: {x: 1, y: 1}
33 + m_Offset: {x: 0, y: 0}
34 + - _DetailNormalMap:
35 + m_Texture: {fileID: 0}
36 + m_Scale: {x: 1, y: 1}
37 + m_Offset: {x: 0, y: 0}
38 + - _EmissionMap:
39 + m_Texture: {fileID: 0}
40 + m_Scale: {x: 1, y: 1}
41 + m_Offset: {x: 0, y: 0}
42 + - _MainTex:
43 + m_Texture: {fileID: 2800000, guid: f8b7dc5e8d3dff3479902cbf2cf50f42, type: 3}
44 + m_Scale: {x: 1, y: 1}
45 + m_Offset: {x: 0, y: 0}
46 + - _MetallicGlossMap:
47 + m_Texture: {fileID: 0}
48 + m_Scale: {x: 1, y: 1}
49 + m_Offset: {x: 0, y: 0}
50 + - _OcclusionMap:
51 + m_Texture: {fileID: 0}
52 + m_Scale: {x: 1, y: 1}
53 + m_Offset: {x: 0, y: 0}
54 + - _ParallaxMap:
55 + m_Texture: {fileID: 0}
56 + m_Scale: {x: 1, y: 1}
57 + m_Offset: {x: 0, y: 0}
58 + m_Floats:
59 + - _BumpScale: 1
60 + - _Cutoff: 0.5
61 + - _DetailNormalMapScale: 1
62 + - _DstBlend: 0
63 + - _GlossMapScale: 1
64 + - _Glossiness: 0.5
65 + - _GlossyReflections: 1
66 + - _Metallic: 0
67 + - _Mode: 0
68 + - _OcclusionStrength: 1
69 + - _Parallax: 0.02
70 + - _SmoothnessTextureChannel: 0
71 + - _SpecularHighlights: 1
72 + - _SrcBlend: 1
73 + - _UVSec: 0
74 + - _ZWrite: 1
75 + m_Colors:
76 + - _Color: {r: 1, g: 1, b: 1, a: 1}
77 + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!91 &9100000
4 +AnimatorController:
5 + m_ObjectHideFlags: 0
6 + m_CorrespondingSourceObject: {fileID: 0}
7 + m_PrefabInstance: {fileID: 0}
8 + m_PrefabAsset: {fileID: 0}
9 + m_Name: girlAC
10 + serializedVersion: 5
11 + m_AnimatorParameters: []
12 + m_AnimatorLayers:
13 + - serializedVersion: 5
14 + m_Name: Base Layer
15 + m_StateMachine: {fileID: 1107184895931894816}
16 + m_Mask: {fileID: 0}
17 + m_Motions: []
18 + m_Behaviours: []
19 + m_BlendingMode: 0
20 + m_SyncedLayerIndex: -1
21 + m_DefaultWeight: 0
22 + m_IKPass: 0
23 + m_SyncedLayerAffectsTiming: 0
24 + m_Controller: {fileID: 9100000}
25 +--- !u!1102 &1102235434097723244
26 +AnimatorState:
27 + serializedVersion: 5
28 + m_ObjectHideFlags: 1
29 + m_CorrespondingSourceObject: {fileID: 0}
30 + m_PrefabInstance: {fileID: 0}
31 + m_PrefabAsset: {fileID: 0}
32 + m_Name: New State
33 + m_Speed: 1
34 + m_CycleOffset: 0
35 + m_Transitions: []
36 + m_StateMachineBehaviours: []
37 + m_Position: {x: 50, y: 50, z: 0}
38 + m_IKOnFeet: 0
39 + m_WriteDefaultValues: 1
40 + m_Mirror: 0
41 + m_SpeedParameterActive: 0
42 + m_MirrorParameterActive: 0
43 + m_CycleOffsetParameterActive: 0
44 + m_TimeParameterActive: 0
45 + m_Motion: {fileID: 7400002, guid: a5e11101db1088e47b2aef562350ae30, type: 3}
46 + m_Tag:
47 + m_SpeedParameter:
48 + m_MirrorParameter:
49 + m_CycleOffsetParameter:
50 + m_TimeParameter:
51 +--- !u!1107 &1107184895931894816
52 +AnimatorStateMachine:
53 + serializedVersion: 5
54 + m_ObjectHideFlags: 1
55 + m_CorrespondingSourceObject: {fileID: 0}
56 + m_PrefabInstance: {fileID: 0}
57 + m_PrefabAsset: {fileID: 0}
58 + m_Name: Base Layer
59 + m_ChildStates:
60 + - serializedVersion: 1
61 + m_State: {fileID: 1102235434097723244}
62 + m_Position: {x: 302.25, y: 74, z: 0}
63 + m_ChildStateMachines: []
64 + m_AnyStateTransitions: []
65 + m_EntryTransitions: []
66 + m_StateMachineTransitions: {}
67 + m_StateMachineBehaviours: []
68 + m_AnyStatePosition: {x: 50, y: 20, z: 0}
69 + m_EntryPosition: {x: 50, y: 120, z: 0}
70 + m_ExitPosition: {x: 800, y: 120, z: 0}
71 + m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
72 + m_DefaultState: {fileID: 1102235434097723244}
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!29 &1
4 +OcclusionCullingSettings:
5 + m_ObjectHideFlags: 0
6 + serializedVersion: 2
7 + m_OcclusionBakeSettings:
8 + smallestOccluder: 5
9 + smallestHole: 0.25
10 + backfaceThreshold: 100
11 + m_SceneGUID: 00000000000000000000000000000000
12 + m_OcclusionCullingData: {fileID: 0}
13 +--- !u!104 &2
14 +RenderSettings:
15 + m_ObjectHideFlags: 0
16 + serializedVersion: 9
17 + m_Fog: 0
18 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
19 + m_FogMode: 3
20 + m_FogDensity: 0.01
21 + m_LinearFogStart: 0
22 + m_LinearFogEnd: 300
23 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
24 + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
25 + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
26 + m_AmbientIntensity: 1
27 + m_AmbientMode: 0
28 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
29 + m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
30 + m_HaloStrength: 0.5
31 + m_FlareStrength: 1
32 + m_FlareFadeSpeed: 3
33 + m_HaloTexture: {fileID: 0}
34 + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
35 + m_DefaultReflectionMode: 0
36 + m_DefaultReflectionResolution: 128
37 + m_ReflectionBounces: 1
38 + m_ReflectionIntensity: 1
39 + m_CustomReflection: {fileID: 0}
40 + m_Sun: {fileID: 0}
41 + m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
42 + m_UseRadianceAmbientProbe: 0
43 +--- !u!157 &3
44 +LightmapSettings:
45 + m_ObjectHideFlags: 0
46 + serializedVersion: 11
47 + m_GIWorkflowMode: 1
48 + m_GISettings:
49 + serializedVersion: 2
50 + m_BounceScale: 1
51 + m_IndirectOutputScale: 1
52 + m_AlbedoBoost: 1
53 + m_EnvironmentLightingMode: 0
54 + m_EnableBakedLightmaps: 1
55 + m_EnableRealtimeLightmaps: 0
56 + m_LightmapEditorSettings:
57 + serializedVersion: 12
58 + m_Resolution: 2
59 + m_BakeResolution: 40
60 + m_AtlasSize: 1024
61 + m_AO: 0
62 + m_AOMaxDistance: 1
63 + m_CompAOExponent: 1
64 + m_CompAOExponentDirect: 0
65 + m_ExtractAmbientOcclusion: 0
66 + m_Padding: 2
67 + m_LightmapParameters: {fileID: 0}
68 + m_LightmapsBakeMode: 1
69 + m_TextureCompression: 1
70 + m_FinalGather: 0
71 + m_FinalGatherFiltering: 1
72 + m_FinalGatherRayCount: 256
73 + m_ReflectionCompression: 2
74 + m_MixedBakeMode: 2
75 + m_BakeBackend: 1
76 + m_PVRSampling: 1
77 + m_PVRDirectSampleCount: 32
78 + m_PVRSampleCount: 512
79 + m_PVRBounces: 2
80 + m_PVREnvironmentSampleCount: 256
81 + m_PVREnvironmentReferencePointCount: 2048
82 + m_PVRFilteringMode: 1
83 + m_PVRDenoiserTypeDirect: 1
84 + m_PVRDenoiserTypeIndirect: 1
85 + m_PVRDenoiserTypeAO: 1
86 + m_PVRFilterTypeDirect: 0
87 + m_PVRFilterTypeIndirect: 0
88 + m_PVRFilterTypeAO: 0
89 + m_PVREnvironmentMIS: 1
90 + m_PVRCulling: 1
91 + m_PVRFilteringGaussRadiusDirect: 1
92 + m_PVRFilteringGaussRadiusIndirect: 5
93 + m_PVRFilteringGaussRadiusAO: 2
94 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5
95 + m_PVRFilteringAtrousPositionSigmaIndirect: 2
96 + m_PVRFilteringAtrousPositionSigmaAO: 1
97 + m_ExportTrainingData: 0
98 + m_TrainingDataDestination: TrainingData
99 + m_LightProbeSampleCountMultiplier: 4
100 + m_LightingDataAsset: {fileID: 0}
101 + m_UseShadowmask: 1
102 +--- !u!196 &4
103 +NavMeshSettings:
104 + serializedVersion: 2
105 + m_ObjectHideFlags: 0
106 + m_BuildSettings:
107 + serializedVersion: 2
108 + agentTypeID: 0
109 + agentRadius: 0.5
110 + agentHeight: 2
111 + agentSlope: 45
112 + agentClimb: 0.4
113 + ledgeDropHeight: 0
114 + maxJumpAcrossDistance: 0
115 + minRegionArea: 2
116 + manualCellSize: 0
117 + cellSize: 0.16666667
118 + manualTileSize: 0
119 + tileSize: 256
120 + accuratePlacement: 0
121 + debug:
122 + m_Flags: 0
123 + m_NavMeshData: {fileID: 0}
124 +--- !u!1 &116372581
125 +GameObject:
126 + m_ObjectHideFlags: 0
127 + m_CorrespondingSourceObject: {fileID: 0}
128 + m_PrefabInstance: {fileID: 762874939}
129 + m_PrefabAsset: {fileID: 0}
130 + serializedVersion: 6
131 + m_Component:
132 + - component: {fileID: 116372582}
133 + m_Layer: 0
134 + m_Name: Yuna Prefab (Missing Prefab)
135 + m_TagString: Untagged
136 + m_Icon: {fileID: 0}
137 + m_NavMeshLayer: 0
138 + m_StaticEditorFlags: 0
139 + m_IsActive: 1
140 +--- !u!4 &116372582
141 +Transform:
142 + m_ObjectHideFlags: 0
143 + m_CorrespondingSourceObject: {fileID: 0}
144 + m_PrefabInstance: {fileID: 762874939}
145 + m_PrefabAsset: {fileID: 0}
146 + m_GameObject: {fileID: 116372581}
147 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
148 + m_LocalPosition: {x: 0, y: 0, z: 0}
149 + m_LocalScale: {x: 1, y: 1, z: 1}
150 + m_Children:
151 + - {fileID: 1862774072}
152 + - {fileID: 1862774071}
153 + m_Father: {fileID: 1135918022}
154 + m_RootOrder: 1
155 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
156 +--- !u!1 &713465048
157 +GameObject:
158 + m_ObjectHideFlags: 0
159 + m_CorrespondingSourceObject: {fileID: 0}
160 + m_PrefabInstance: {fileID: 0}
161 + m_PrefabAsset: {fileID: 0}
162 + serializedVersion: 6
163 + m_Component:
164 + - component: {fileID: 713465051}
165 + - component: {fileID: 713465050}
166 + - component: {fileID: 713465049}
167 + m_Layer: 0
168 + m_Name: Main Camera
169 + m_TagString: MainCamera
170 + m_Icon: {fileID: 0}
171 + m_NavMeshLayer: 0
172 + m_StaticEditorFlags: 0
173 + m_IsActive: 1
174 +--- !u!81 &713465049
175 +AudioListener:
176 + m_ObjectHideFlags: 0
177 + m_CorrespondingSourceObject: {fileID: 0}
178 + m_PrefabInstance: {fileID: 0}
179 + m_PrefabAsset: {fileID: 0}
180 + m_GameObject: {fileID: 713465048}
181 + m_Enabled: 1
182 +--- !u!20 &713465050
183 +Camera:
184 + m_ObjectHideFlags: 0
185 + m_CorrespondingSourceObject: {fileID: 0}
186 + m_PrefabInstance: {fileID: 0}
187 + m_PrefabAsset: {fileID: 0}
188 + m_GameObject: {fileID: 713465048}
189 + m_Enabled: 1
190 + serializedVersion: 2
191 + m_ClearFlags: 1
192 + m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
193 + m_projectionMatrixMode: 1
194 + m_GateFitMode: 2
195 + m_FOVAxisMode: 0
196 + m_SensorSize: {x: 36, y: 24}
197 + m_LensShift: {x: 0, y: 0}
198 + m_FocalLength: 50
199 + m_NormalizedViewPortRect:
200 + serializedVersion: 2
201 + x: 0
202 + y: 0
203 + width: 1
204 + height: 1
205 + near clip plane: 0.3
206 + far clip plane: 1000
207 + field of view: 60
208 + orthographic: 0
209 + orthographic size: 5
210 + m_Depth: -1
211 + m_CullingMask:
212 + serializedVersion: 2
213 + m_Bits: 4294967295
214 + m_RenderingPath: -1
215 + m_TargetTexture: {fileID: 0}
216 + m_TargetDisplay: 0
217 + m_TargetEye: 3
218 + m_HDR: 1
219 + m_AllowMSAA: 1
220 + m_AllowDynamicResolution: 0
221 + m_ForceIntoRT: 0
222 + m_OcclusionCulling: 1
223 + m_StereoConvergence: 10
224 + m_StereoSeparation: 0.022
225 +--- !u!4 &713465051
226 +Transform:
227 + m_ObjectHideFlags: 0
228 + m_CorrespondingSourceObject: {fileID: 0}
229 + m_PrefabInstance: {fileID: 0}
230 + m_PrefabAsset: {fileID: 0}
231 + m_GameObject: {fileID: 713465048}
232 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
233 + m_LocalPosition: {x: 0, y: 1, z: -10}
234 + m_LocalScale: {x: 1, y: 1, z: 1}
235 + m_Children: []
236 + m_Father: {fileID: 0}
237 + m_RootOrder: 0
238 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
239 +--- !u!1 &726638625
240 +GameObject:
241 + m_ObjectHideFlags: 0
242 + m_CorrespondingSourceObject: {fileID: 0}
243 + m_PrefabInstance: {fileID: 0}
244 + m_PrefabAsset: {fileID: 0}
245 + serializedVersion: 6
246 + m_Component:
247 + - component: {fileID: 726638627}
248 + - component: {fileID: 726638626}
249 + m_Layer: 0
250 + m_Name: BodySourceView
251 + m_TagString: Untagged
252 + m_Icon: {fileID: 0}
253 + m_NavMeshLayer: 0
254 + m_StaticEditorFlags: 0
255 + m_IsActive: 1
256 +--- !u!114 &726638626
257 +MonoBehaviour:
258 + m_ObjectHideFlags: 0
259 + m_CorrespondingSourceObject: {fileID: 0}
260 + m_PrefabInstance: {fileID: 0}
261 + m_PrefabAsset: {fileID: 0}
262 + m_GameObject: {fileID: 726638625}
263 + m_Enabled: 1
264 + m_EditorHideFlags: 0
265 + m_Script: {fileID: 11500000, guid: 8821130411451d343a1488e2a9db134e, type: 3}
266 + m_Name:
267 + m_EditorClassIdentifier:
268 + BoneMaterial: {fileID: 2100000, guid: f2ea145c63353784985576f08398a815, type: 2}
269 + BodySourceManager: {fileID: 726638625}
270 +--- !u!4 &726638627
271 +Transform:
272 + m_ObjectHideFlags: 0
273 + m_CorrespondingSourceObject: {fileID: 0}
274 + m_PrefabInstance: {fileID: 0}
275 + m_PrefabAsset: {fileID: 0}
276 + m_GameObject: {fileID: 726638625}
277 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
278 + m_LocalPosition: {x: -2.9802324e-10, y: 0.13996428, z: -0.0018711961}
279 + m_LocalScale: {x: 1, y: 1, z: 1}
280 + m_Children: []
281 + m_Father: {fileID: 0}
282 + m_RootOrder: 4
283 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
284 +--- !u!1001 &762874939
285 +PrefabInstance:
286 + m_ObjectHideFlags: 0
287 + serializedVersion: 2
288 + m_Modification:
289 + m_TransformParent: {fileID: 1135918022}
290 + m_Modifications:
291 + - target: {fileID: 1797305983796964, guid: 2629a30b7c43aa94d914368a76b45918, type: 3}
292 + propertyPath: m_Name
293 + value: Yuna Prefab
294 + objectReference: {fileID: 0}
295 + - target: {fileID: 4708503561146946, guid: 2629a30b7c43aa94d914368a76b45918, type: 3}
296 + propertyPath: m_LocalPosition.x
297 + value: 0
298 + objectReference: {fileID: 0}
299 + - target: {fileID: 4708503561146946, guid: 2629a30b7c43aa94d914368a76b45918, type: 3}
300 + propertyPath: m_LocalPosition.y
301 + value: 0
302 + objectReference: {fileID: 0}
303 + - target: {fileID: 4708503561146946, guid: 2629a30b7c43aa94d914368a76b45918, type: 3}
304 + propertyPath: m_LocalPosition.z
305 + value: 0
306 + objectReference: {fileID: 0}
307 + - target: {fileID: 4708503561146946, guid: 2629a30b7c43aa94d914368a76b45918, type: 3}
308 + propertyPath: m_LocalRotation.x
309 + value: 0
310 + objectReference: {fileID: 0}
311 + - target: {fileID: 4708503561146946, guid: 2629a30b7c43aa94d914368a76b45918, type: 3}
312 + propertyPath: m_LocalRotation.y
313 + value: 0
314 + objectReference: {fileID: 0}
315 + - target: {fileID: 4708503561146946, guid: 2629a30b7c43aa94d914368a76b45918, type: 3}
316 + propertyPath: m_LocalRotation.z
317 + value: 0
318 + objectReference: {fileID: 0}
319 + - target: {fileID: 4708503561146946, guid: 2629a30b7c43aa94d914368a76b45918, type: 3}
320 + propertyPath: m_LocalRotation.w
321 + value: 1
322 + objectReference: {fileID: 0}
323 + - target: {fileID: 4708503561146946, guid: 2629a30b7c43aa94d914368a76b45918, type: 3}
324 + propertyPath: m_RootOrder
325 + value: 1
326 + objectReference: {fileID: 0}
327 + - target: {fileID: 4708503561146946, guid: 2629a30b7c43aa94d914368a76b45918, type: 3}
328 + propertyPath: m_LocalEulerAnglesHint.x
329 + value: 0
330 + objectReference: {fileID: 0}
331 + - target: {fileID: 4708503561146946, guid: 2629a30b7c43aa94d914368a76b45918, type: 3}
332 + propertyPath: m_LocalEulerAnglesHint.y
333 + value: 0
334 + objectReference: {fileID: 0}
335 + - target: {fileID: 4708503561146946, guid: 2629a30b7c43aa94d914368a76b45918, type: 3}
336 + propertyPath: m_LocalEulerAnglesHint.z
337 + value: 0
338 + objectReference: {fileID: 0}
339 + - target: {fileID: 95420946213149514, guid: 2629a30b7c43aa94d914368a76b45918,
340 + type: 3}
341 + propertyPath: m_Controller
342 + value:
343 + objectReference: {fileID: 9100000, guid: 24bc9a48ffd1bec46885c34c849e1d21, type: 2}
344 + - target: {fileID: 95420946213149514, guid: 2629a30b7c43aa94d914368a76b45918,
345 + type: 3}
346 + propertyPath: m_UpdateMode
347 + value: 1
348 + objectReference: {fileID: 0}
349 + m_RemovedComponents: []
350 + m_SourcePrefab: {fileID: 100100000, guid: 2629a30b7c43aa94d914368a76b45918, type: 3}
351 +--- !u!1 &819216515
352 +GameObject:
353 + m_ObjectHideFlags: 0
354 + m_CorrespondingSourceObject: {fileID: 0}
355 + m_PrefabInstance: {fileID: 762874939}
356 + m_PrefabAsset: {fileID: 0}
357 + serializedVersion: 6
358 + m_Component:
359 + - component: {fileID: 1862774071}
360 + m_Layer: 0
361 + m_Name: Missing Prefab (Dummy)
362 + m_TagString: Untagged
363 + m_Icon: {fileID: 0}
364 + m_NavMeshLayer: 0
365 + m_StaticEditorFlags: 0
366 + m_IsActive: 1
367 +--- !u!1 &983073246
368 +GameObject:
369 + m_ObjectHideFlags: 0
370 + m_CorrespondingSourceObject: {fileID: 0}
371 + m_PrefabInstance: {fileID: 0}
372 + m_PrefabAsset: {fileID: 0}
373 + serializedVersion: 6
374 + m_Component:
375 + - component: {fileID: 983073248}
376 + - component: {fileID: 983073247}
377 + m_Layer: 0
378 + m_Name: Directional Light
379 + m_TagString: Untagged
380 + m_Icon: {fileID: 0}
381 + m_NavMeshLayer: 0
382 + m_StaticEditorFlags: 0
383 + m_IsActive: 1
384 +--- !u!108 &983073247
385 +Light:
386 + m_ObjectHideFlags: 0
387 + m_CorrespondingSourceObject: {fileID: 0}
388 + m_PrefabInstance: {fileID: 0}
389 + m_PrefabAsset: {fileID: 0}
390 + m_GameObject: {fileID: 983073246}
391 + m_Enabled: 1
392 + serializedVersion: 10
393 + m_Type: 1
394 + m_Shape: 0
395 + m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
396 + m_Intensity: 1
397 + m_Range: 10
398 + m_SpotAngle: 30
399 + m_InnerSpotAngle: 21.80208
400 + m_CookieSize: 10
401 + m_Shadows:
402 + m_Type: 2
403 + m_Resolution: -1
404 + m_CustomResolution: -1
405 + m_Strength: 1
406 + m_Bias: 0.05
407 + m_NormalBias: 0.4
408 + m_NearPlane: 0.2
409 + m_CullingMatrixOverride:
410 + e00: 1
411 + e01: 0
412 + e02: 0
413 + e03: 0
414 + e10: 0
415 + e11: 1
416 + e12: 0
417 + e13: 0
418 + e20: 0
419 + e21: 0
420 + e22: 1
421 + e23: 0
422 + e30: 0
423 + e31: 0
424 + e32: 0
425 + e33: 1
426 + m_UseCullingMatrixOverride: 0
427 + m_Cookie: {fileID: 0}
428 + m_DrawHalo: 0
429 + m_Flare: {fileID: 0}
430 + m_RenderMode: 0
431 + m_CullingMask:
432 + serializedVersion: 2
433 + m_Bits: 4294967295
434 + m_RenderingLayerMask: 1
435 + m_Lightmapping: 4
436 + m_LightShadowCasterMode: 0
437 + m_AreaSize: {x: 1, y: 1}
438 + m_BounceIntensity: 1
439 + m_ColorTemperature: 6570
440 + m_UseColorTemperature: 0
441 + m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
442 + m_UseBoundingSphereOverride: 0
443 + m_ShadowRadius: 0
444 + m_ShadowAngle: 0
445 +--- !u!4 &983073248
446 +Transform:
447 + m_ObjectHideFlags: 0
448 + m_CorrespondingSourceObject: {fileID: 0}
449 + m_PrefabInstance: {fileID: 0}
450 + m_PrefabAsset: {fileID: 0}
451 + m_GameObject: {fileID: 983073246}
452 + m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
453 + m_LocalPosition: {x: 0, y: 3, z: 0}
454 + m_LocalScale: {x: 1, y: 1, z: 1}
455 + m_Children: []
456 + m_Father: {fileID: 0}
457 + m_RootOrder: 1
458 + m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
459 +--- !u!1 &1135918020
460 +GameObject:
461 + m_ObjectHideFlags: 0
462 + m_CorrespondingSourceObject: {fileID: 0}
463 + m_PrefabInstance: {fileID: 0}
464 + m_PrefabAsset: {fileID: 0}
465 + serializedVersion: 6
466 + m_Component:
467 + - component: {fileID: 1135918022}
468 + - component: {fileID: 1135918021}
469 + - component: {fileID: 1135918023}
470 + m_Layer: 0
471 + m_Name: GameObject
472 + m_TagString: Untagged
473 + m_Icon: {fileID: 0}
474 + m_NavMeshLayer: 0
475 + m_StaticEditorFlags: 0
476 + m_IsActive: 1
477 +--- !u!114 &1135918021
478 +MonoBehaviour:
479 + m_ObjectHideFlags: 0
480 + m_CorrespondingSourceObject: {fileID: 0}
481 + m_PrefabInstance: {fileID: 0}
482 + m_PrefabAsset: {fileID: 0}
483 + m_GameObject: {fileID: 1135918020}
484 + m_Enabled: 0
485 + m_EditorHideFlags: 0
486 + m_Script: {fileID: 11500000, guid: 8821130411451d343a1488e2a9db134e, type: 3}
487 + m_Name:
488 + m_EditorClassIdentifier:
489 + BoneMaterial: {fileID: 2100000, guid: f2ea145c63353784985576f08398a815, type: 2}
490 + BodySourceManager: {fileID: 2061180373}
491 +--- !u!4 &1135918022
492 +Transform:
493 + m_ObjectHideFlags: 0
494 + m_CorrespondingSourceObject: {fileID: 0}
495 + m_PrefabInstance: {fileID: 0}
496 + m_PrefabAsset: {fileID: 0}
497 + m_GameObject: {fileID: 1135918020}
498 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
499 + m_LocalPosition: {x: -2.9802324e-10, y: 0.13996428, z: -0.0018711961}
500 + m_LocalScale: {x: 1, y: 1, z: 1}
501 + m_Children:
502 + - {fileID: 1520274719}
503 + - {fileID: 116372582}
504 + m_Father: {fileID: 0}
505 + m_RootOrder: 3
506 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
507 +--- !u!114 &1135918023
508 +MonoBehaviour:
509 + m_ObjectHideFlags: 0
510 + m_CorrespondingSourceObject: {fileID: 0}
511 + m_PrefabInstance: {fileID: 0}
512 + m_PrefabAsset: {fileID: 0}
513 + m_GameObject: {fileID: 1135918020}
514 + m_Enabled: 1
515 + m_EditorHideFlags: 0
516 + m_Script: {fileID: 11500000, guid: 819eb0cfd2d3e7c439a730d87e92e292, type: 3}
517 + m_Name:
518 + m_EditorClassIdentifier:
519 + BoneMaterial: {fileID: 2100000, guid: f2ea145c63353784985576f08398a815, type: 2}
520 + BodySourceManager: {fileID: 2061180373}
521 + humanoid: {fileID: 0}
522 + mirror: 1
523 + move: 1
524 +--- !u!1 &1520274718
525 +GameObject:
526 + m_ObjectHideFlags: 0
527 + m_CorrespondingSourceObject: {fileID: 0}
528 + m_PrefabInstance: {fileID: 0}
529 + m_PrefabAsset: {fileID: 0}
530 + serializedVersion: 6
531 + m_Component:
532 + - component: {fileID: 1520274719}
533 + - component: {fileID: 1520274722}
534 + - component: {fileID: 1520274721}
535 + - component: {fileID: 1520274720}
536 + m_Layer: 0
537 + m_Name: Cube
538 + m_TagString: Untagged
539 + m_Icon: {fileID: 0}
540 + m_NavMeshLayer: 0
541 + m_StaticEditorFlags: 0
542 + m_IsActive: 0
543 +--- !u!4 &1520274719
544 +Transform:
545 + m_ObjectHideFlags: 0
546 + m_CorrespondingSourceObject: {fileID: 0}
547 + m_PrefabInstance: {fileID: 0}
548 + m_PrefabAsset: {fileID: 0}
549 + m_GameObject: {fileID: 1520274718}
550 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
551 + m_LocalPosition: {x: 0, y: 0, z: 0}
552 + m_LocalScale: {x: 1, y: 1, z: 1}
553 + m_Children: []
554 + m_Father: {fileID: 1135918022}
555 + m_RootOrder: 0
556 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
557 +--- !u!65 &1520274720
558 +BoxCollider:
559 + m_ObjectHideFlags: 0
560 + m_CorrespondingSourceObject: {fileID: 0}
561 + m_PrefabInstance: {fileID: 0}
562 + m_PrefabAsset: {fileID: 0}
563 + m_GameObject: {fileID: 1520274718}
564 + m_Material: {fileID: 0}
565 + m_IsTrigger: 0
566 + m_Enabled: 1
567 + serializedVersion: 2
568 + m_Size: {x: 1, y: 1, z: 1}
569 + m_Center: {x: 0, y: 0, z: 0}
570 +--- !u!23 &1520274721
571 +MeshRenderer:
572 + m_ObjectHideFlags: 0
573 + m_CorrespondingSourceObject: {fileID: 0}
574 + m_PrefabInstance: {fileID: 0}
575 + m_PrefabAsset: {fileID: 0}
576 + m_GameObject: {fileID: 1520274718}
577 + m_Enabled: 1
578 + m_CastShadows: 1
579 + m_ReceiveShadows: 1
580 + m_DynamicOccludee: 1
581 + m_MotionVectors: 1
582 + m_LightProbeUsage: 1
583 + m_ReflectionProbeUsage: 1
584 + m_RayTracingMode: 2
585 + m_RenderingLayerMask: 1
586 + m_RendererPriority: 0
587 + m_Materials:
588 + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
589 + m_StaticBatchInfo:
590 + firstSubMesh: 0
591 + subMeshCount: 0
592 + m_StaticBatchRoot: {fileID: 0}
593 + m_ProbeAnchor: {fileID: 0}
594 + m_LightProbeVolumeOverride: {fileID: 0}
595 + m_ScaleInLightmap: 1
596 + m_ReceiveGI: 1
597 + m_PreserveUVs: 0
598 + m_IgnoreNormalsForChartDetection: 0
599 + m_ImportantGI: 0
600 + m_StitchLightmapSeams: 1
601 + m_SelectedEditorRenderState: 3
602 + m_MinimumChartSize: 4
603 + m_AutoUVMaxDistance: 0.5
604 + m_AutoUVMaxAngle: 89
605 + m_LightmapParameters: {fileID: 0}
606 + m_SortingLayerID: 0
607 + m_SortingLayer: 0
608 + m_SortingOrder: 0
609 +--- !u!33 &1520274722
610 +MeshFilter:
611 + m_ObjectHideFlags: 0
612 + m_CorrespondingSourceObject: {fileID: 0}
613 + m_PrefabInstance: {fileID: 0}
614 + m_PrefabAsset: {fileID: 0}
615 + m_GameObject: {fileID: 1520274718}
616 + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
617 +--- !u!1 &1862774070
618 +GameObject:
619 + m_ObjectHideFlags: 0
620 + m_CorrespondingSourceObject: {fileID: 1797305983796964, guid: 2629a30b7c43aa94d914368a76b45918,
621 + type: 3}
622 + m_PrefabInstance: {fileID: 762874939}
623 + m_PrefabAsset: {fileID: 0}
624 + serializedVersion: 6
625 + m_Component:
626 + - component: {fileID: 1862774072}
627 + - component: {fileID: 1862774074}
628 + - component: {fileID: 1862774073}
629 + m_Layer: 0
630 + m_Name: Missing Prefab (Dummy)
631 + m_TagString: Untagged
632 + m_Icon: {fileID: 0}
633 + m_NavMeshLayer: 0
634 + m_StaticEditorFlags: 0
635 + m_IsActive: 0
636 +--- !u!4 &1862774071
637 +Transform:
638 + m_ObjectHideFlags: 0
639 + m_CorrespondingSourceObject: {fileID: 4708503561146946, guid: 2629a30b7c43aa94d914368a76b45918,
640 + type: 3}
641 + m_PrefabInstance: {fileID: 762874939}
642 + m_PrefabAsset: {fileID: 0}
643 + m_GameObject: {fileID: 819216515}
644 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
645 + m_LocalPosition: {x: 0, y: 0, z: 0}
646 + m_LocalScale: {x: 1, y: 1, z: 1}
647 + m_Children: []
648 + m_Father: {fileID: 116372582}
649 + m_RootOrder: 1
650 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
651 +--- !u!4 &1862774072
652 +Transform:
653 + m_ObjectHideFlags: 0
654 + m_CorrespondingSourceObject: {fileID: 0}
655 + m_PrefabInstance: {fileID: 762874939}
656 + m_PrefabAsset: {fileID: 0}
657 + m_GameObject: {fileID: 1862774070}
658 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
659 + m_LocalPosition: {x: 0, y: 0, z: 0}
660 + m_LocalScale: {x: 1, y: 1, z: 1}
661 + m_Children: []
662 + m_Father: {fileID: 116372582}
663 + m_RootOrder: 0
664 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
665 +--- !u!144 &1862774073
666 +CharacterJoint:
667 + m_ObjectHideFlags: 0
668 + m_CorrespondingSourceObject: {fileID: 0}
669 + m_PrefabInstance: {fileID: 0}
670 + m_PrefabAsset: {fileID: 0}
671 + m_GameObject: {fileID: 1862774070}
672 + m_ConnectedBody: {fileID: 0}
673 + m_Anchor: {x: 0, y: 0, z: 0}
674 + m_Axis: {x: 1, y: 0, z: 0}
675 + m_AutoConfigureConnectedAnchor: 1
676 + m_ConnectedAnchor: {x: -2.9802324e-10, y: 0.13996428, z: -0.0018711961}
677 + serializedVersion: 2
678 + m_SwingAxis: {x: 0, y: 1, z: 0}
679 + m_TwistLimitSpring:
680 + spring: 0
681 + damper: 0
682 + m_LowTwistLimit:
683 + limit: -20
684 + bounciness: 0
685 + contactDistance: 0
686 + m_HighTwistLimit:
687 + limit: 70
688 + bounciness: 0
689 + contactDistance: 0
690 + m_SwingLimitSpring:
691 + spring: 0
692 + damper: 0
693 + m_Swing1Limit:
694 + limit: 40
695 + bounciness: 0
696 + contactDistance: 0
697 + m_Swing2Limit:
698 + limit: 40
699 + bounciness: 0
700 + contactDistance: 0
701 + m_EnableProjection: 0
702 + m_ProjectionDistance: 0.1
703 + m_ProjectionAngle: 180
704 + m_BreakForce: Infinity
705 + m_BreakTorque: Infinity
706 + m_EnableCollision: 0
707 + m_EnablePreprocessing: 1
708 + m_MassScale: 1
709 + m_ConnectedMassScale: 1
710 +--- !u!54 &1862774074
711 +Rigidbody:
712 + m_ObjectHideFlags: 0
713 + m_CorrespondingSourceObject: {fileID: 0}
714 + m_PrefabInstance: {fileID: 0}
715 + m_PrefabAsset: {fileID: 0}
716 + m_GameObject: {fileID: 1862774070}
717 + serializedVersion: 2
718 + m_Mass: 1
719 + m_Drag: 0
720 + m_AngularDrag: 0.05
721 + m_UseGravity: 1
722 + m_IsKinematic: 0
723 + m_Interpolate: 0
724 + m_Constraints: 0
725 + m_CollisionDetection: 0
726 +--- !u!1 &2061180373
727 +GameObject:
728 + m_ObjectHideFlags: 0
729 + m_CorrespondingSourceObject: {fileID: 0}
730 + m_PrefabInstance: {fileID: 0}
731 + m_PrefabAsset: {fileID: 0}
732 + serializedVersion: 6
733 + m_Component:
734 + - component: {fileID: 2061180375}
735 + - component: {fileID: 2061180374}
736 + m_Layer: 0
737 + m_Name: BodySourceManager
738 + m_TagString: Untagged
739 + m_Icon: {fileID: 0}
740 + m_NavMeshLayer: 0
741 + m_StaticEditorFlags: 0
742 + m_IsActive: 1
743 +--- !u!114 &2061180374
744 +MonoBehaviour:
745 + m_ObjectHideFlags: 0
746 + m_CorrespondingSourceObject: {fileID: 0}
747 + m_PrefabInstance: {fileID: 0}
748 + m_PrefabAsset: {fileID: 0}
749 + m_GameObject: {fileID: 2061180373}
750 + m_Enabled: 1
751 + m_EditorHideFlags: 0
752 + m_Script: {fileID: 11500000, guid: 2e74aed0503c9d24290a1ae5438fddc3, type: 3}
753 + m_Name:
754 + m_EditorClassIdentifier:
755 +--- !u!4 &2061180375
756 +Transform:
757 + m_ObjectHideFlags: 0
758 + m_CorrespondingSourceObject: {fileID: 0}
759 + m_PrefabInstance: {fileID: 0}
760 + m_PrefabAsset: {fileID: 0}
761 + m_GameObject: {fileID: 2061180373}
762 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
763 + m_LocalPosition: {x: 0, y: 0.5453696, z: -0.0044015795}
764 + m_LocalScale: {x: 1, y: 1, z: 1}
765 + m_Children: []
766 + m_Father: {fileID: 0}
767 + m_RootOrder: 2
768 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!29 &1
4 +OcclusionCullingSettings:
5 + m_ObjectHideFlags: 0
6 + serializedVersion: 2
7 + m_OcclusionBakeSettings:
8 + smallestOccluder: 5
9 + smallestHole: 0.25
10 + backfaceThreshold: 100
11 + m_SceneGUID: 00000000000000000000000000000000
12 + m_OcclusionCullingData: {fileID: 0}
13 +--- !u!104 &2
14 +RenderSettings:
15 + m_ObjectHideFlags: 0
16 + serializedVersion: 9
17 + m_Fog: 0
18 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
19 + m_FogMode: 3
20 + m_FogDensity: 0.01
21 + m_LinearFogStart: 0
22 + m_LinearFogEnd: 300
23 + m_AmbientSkyColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
24 + m_AmbientEquatorColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
25 + m_AmbientGroundColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
26 + m_AmbientIntensity: 1
27 + m_AmbientMode: 3
28 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
29 + m_SkyboxMaterial: {fileID: 0}
30 + m_HaloStrength: 0.5
31 + m_FlareStrength: 1
32 + m_FlareFadeSpeed: 3
33 + m_HaloTexture: {fileID: 0}
34 + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
35 + m_DefaultReflectionMode: 0
36 + m_DefaultReflectionResolution: 128
37 + m_ReflectionBounces: 1
38 + m_ReflectionIntensity: 1
39 + m_CustomReflection: {fileID: 0}
40 + m_Sun: {fileID: 0}
41 + m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
42 + m_UseRadianceAmbientProbe: 0
43 +--- !u!157 &4
44 +LightmapSettings:
45 + m_ObjectHideFlags: 0
46 + serializedVersion: 11
47 + m_GIWorkflowMode: 1
48 + m_GISettings:
49 + serializedVersion: 2
50 + m_BounceScale: 1
51 + m_IndirectOutputScale: 1
52 + m_AlbedoBoost: 1
53 + m_EnvironmentLightingMode: 0
54 + m_EnableBakedLightmaps: 1
55 + m_EnableRealtimeLightmaps: 0
56 + m_LightmapEditorSettings:
57 + serializedVersion: 12
58 + m_Resolution: 1
59 + m_BakeResolution: 50
60 + m_AtlasSize: 1024
61 + m_AO: 1
62 + m_AOMaxDistance: 1
63 + m_CompAOExponent: 1
64 + m_CompAOExponentDirect: 0
65 + m_ExtractAmbientOcclusion: 0
66 + m_Padding: 2
67 + m_LightmapParameters: {fileID: 0}
68 + m_LightmapsBakeMode: 1
69 + m_TextureCompression: 0
70 + m_FinalGather: 0
71 + m_FinalGatherFiltering: 1
72 + m_FinalGatherRayCount: 256
73 + m_ReflectionCompression: 2
74 + m_MixedBakeMode: 1
75 + m_BakeBackend: 0
76 + m_PVRSampling: 1
77 + m_PVRDirectSampleCount: 32
78 + m_PVRSampleCount: 512
79 + m_PVRBounces: 2
80 + m_PVREnvironmentSampleCount: 512
81 + m_PVREnvironmentReferencePointCount: 2048
82 + m_PVRFilteringMode: 0
83 + m_PVRDenoiserTypeDirect: 0
84 + m_PVRDenoiserTypeIndirect: 0
85 + m_PVRDenoiserTypeAO: 0
86 + m_PVRFilterTypeDirect: 0
87 + m_PVRFilterTypeIndirect: 0
88 + m_PVRFilterTypeAO: 0
89 + m_PVREnvironmentMIS: 0
90 + m_PVRCulling: 1
91 + m_PVRFilteringGaussRadiusDirect: 1
92 + m_PVRFilteringGaussRadiusIndirect: 5
93 + m_PVRFilteringGaussRadiusAO: 2
94 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5
95 + m_PVRFilteringAtrousPositionSigmaIndirect: 2
96 + m_PVRFilteringAtrousPositionSigmaAO: 1
97 + m_ExportTrainingData: 0
98 + m_TrainingDataDestination: TrainingData
99 + m_LightProbeSampleCountMultiplier: 4
100 + m_LightingDataAsset: {fileID: 0}
101 + m_UseShadowmask: 0
102 +--- !u!196 &5
103 +NavMeshSettings:
104 + serializedVersion: 2
105 + m_ObjectHideFlags: 0
106 + m_BuildSettings:
107 + serializedVersion: 2
108 + agentTypeID: 0
109 + agentRadius: 0.5
110 + agentHeight: 2
111 + agentSlope: 45
112 + agentClimb: 0.4
113 + ledgeDropHeight: 0
114 + maxJumpAcrossDistance: 0
115 + minRegionArea: 2
116 + manualCellSize: 0
117 + cellSize: 0.16666666
118 + manualTileSize: 0
119 + tileSize: 256
120 + accuratePlacement: 0
121 + debug:
122 + m_Flags: 0
123 + m_NavMeshData: {fileID: 0}
124 +--- !u!1 &112136118
125 +GameObject:
126 + m_ObjectHideFlags: 0
127 + m_CorrespondingSourceObject: {fileID: 0}
128 + m_PrefabInstance: {fileID: 0}
129 + m_PrefabAsset: {fileID: 0}
130 + serializedVersion: 6
131 + m_Component:
132 + - component: {fileID: 112136119}
133 + - component: {fileID: 112136120}
134 + m_Layer: 0
135 + m_Name: BodyView
136 + m_TagString: Untagged
137 + m_Icon: {fileID: 0}
138 + m_NavMeshLayer: 0
139 + m_StaticEditorFlags: 0
140 + m_IsActive: 1
141 +--- !u!4 &112136119
142 +Transform:
143 + m_ObjectHideFlags: 0
144 + m_CorrespondingSourceObject: {fileID: 0}
145 + m_PrefabInstance: {fileID: 0}
146 + m_PrefabAsset: {fileID: 0}
147 + m_GameObject: {fileID: 112136118}
148 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
149 + m_LocalPosition: {x: 0, y: 0, z: 0}
150 + m_LocalScale: {x: 1, y: 1, z: 1}
151 + m_Children:
152 + - {fileID: 716011534}
153 + m_Father: {fileID: 0}
154 + m_RootOrder: 1
155 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
156 +--- !u!114 &112136120
157 +MonoBehaviour:
158 + m_ObjectHideFlags: 0
159 + m_CorrespondingSourceObject: {fileID: 0}
160 + m_PrefabInstance: {fileID: 0}
161 + m_PrefabAsset: {fileID: 0}
162 + m_GameObject: {fileID: 112136118}
163 + m_Enabled: 1
164 + m_EditorHideFlags: 0
165 + m_Script: {fileID: 11500000, guid: 8821130411451d343a1488e2a9db134e, type: 3}
166 + m_Name:
167 + m_EditorClassIdentifier:
168 + BoneMaterial: {fileID: 2100000, guid: f2ea145c63353784985576f08398a815, type: 2}
169 + BodySourceManager: {fileID: 1698423884}
170 +--- !u!1 &252019523
171 +GameObject:
172 + m_ObjectHideFlags: 0
173 + m_CorrespondingSourceObject: {fileID: 0}
174 + m_PrefabInstance: {fileID: 0}
175 + m_PrefabAsset: {fileID: 0}
176 + serializedVersion: 6
177 + m_Component:
178 + - component: {fileID: 252019524}
179 + - component: {fileID: 252019527}
180 + - component: {fileID: 252019526}
181 + - component: {fileID: 252019525}
182 + - component: {fileID: 252019528}
183 + m_Layer: 0
184 + m_Name: DesignerOnlyView
185 + m_TagString: Untagged
186 + m_Icon: {fileID: 0}
187 + m_NavMeshLayer: 0
188 + m_StaticEditorFlags: 0
189 + m_IsActive: 1
190 +--- !u!4 &252019524
191 +Transform:
192 + m_ObjectHideFlags: 0
193 + m_CorrespondingSourceObject: {fileID: 0}
194 + m_PrefabInstance: {fileID: 0}
195 + m_PrefabAsset: {fileID: 0}
196 + m_GameObject: {fileID: 252019523}
197 + m_LocalRotation: {x: -0.7071069, y: 0, z: 0, w: 0.70710677}
198 + m_LocalPosition: {x: 60, y: -45, z: 50}
199 + m_LocalScale: {x: 13, y: 1, z: 10}
200 + m_Children: []
201 + m_Father: {fileID: 1988608401}
202 + m_RootOrder: 1
203 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
204 +--- !u!23 &252019525
205 +MeshRenderer:
206 + m_ObjectHideFlags: 0
207 + m_CorrespondingSourceObject: {fileID: 0}
208 + m_PrefabInstance: {fileID: 0}
209 + m_PrefabAsset: {fileID: 0}
210 + m_GameObject: {fileID: 252019523}
211 + m_Enabled: 1
212 + m_CastShadows: 1
213 + m_ReceiveShadows: 1
214 + m_DynamicOccludee: 1
215 + m_MotionVectors: 1
216 + m_LightProbeUsage: 0
217 + m_ReflectionProbeUsage: 1
218 + m_RayTracingMode: 2
219 + m_RenderingLayerMask: 1
220 + m_RendererPriority: 0
221 + m_Materials:
222 + - {fileID: 10302, guid: 0000000000000000f000000000000000, type: 0}
223 + m_StaticBatchInfo:
224 + firstSubMesh: 0
225 + subMeshCount: 0
226 + m_StaticBatchRoot: {fileID: 0}
227 + m_ProbeAnchor: {fileID: 0}
228 + m_LightProbeVolumeOverride: {fileID: 0}
229 + m_ScaleInLightmap: 1
230 + m_ReceiveGI: 1
231 + m_PreserveUVs: 0
232 + m_IgnoreNormalsForChartDetection: 0
233 + m_ImportantGI: 0
234 + m_StitchLightmapSeams: 1
235 + m_SelectedEditorRenderState: 3
236 + m_MinimumChartSize: 4
237 + m_AutoUVMaxDistance: 0.5
238 + m_AutoUVMaxAngle: 89
239 + m_LightmapParameters: {fileID: 0}
240 + m_SortingLayerID: 0
241 + m_SortingLayer: 0
242 + m_SortingOrder: 0
243 +--- !u!64 &252019526
244 +MeshCollider:
245 + m_ObjectHideFlags: 0
246 + m_CorrespondingSourceObject: {fileID: 0}
247 + m_PrefabInstance: {fileID: 0}
248 + m_PrefabAsset: {fileID: 0}
249 + m_GameObject: {fileID: 252019523}
250 + m_Material: {fileID: 0}
251 + m_IsTrigger: 0
252 + m_Enabled: 1
253 + serializedVersion: 4
254 + m_Convex: 0
255 + m_CookingOptions: 30
256 + m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
257 +--- !u!33 &252019527
258 +MeshFilter:
259 + m_ObjectHideFlags: 0
260 + m_CorrespondingSourceObject: {fileID: 0}
261 + m_PrefabInstance: {fileID: 0}
262 + m_PrefabAsset: {fileID: 0}
263 + m_GameObject: {fileID: 252019523}
264 + m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
265 +--- !u!114 &252019528
266 +MonoBehaviour:
267 + m_ObjectHideFlags: 0
268 + m_CorrespondingSourceObject: {fileID: 0}
269 + m_PrefabInstance: {fileID: 0}
270 + m_PrefabAsset: {fileID: 0}
271 + m_GameObject: {fileID: 252019523}
272 + m_Enabled: 1
273 + m_EditorHideFlags: 0
274 + m_Script: {fileID: 11500000, guid: 61e5c93f5da1e324aa7fd9671db875bc, type: 3}
275 + m_Name:
276 + m_EditorClassIdentifier:
277 +--- !u!1 &257076396
278 +GameObject:
279 + m_ObjectHideFlags: 0
280 + m_CorrespondingSourceObject: {fileID: 0}
281 + m_PrefabInstance: {fileID: 0}
282 + m_PrefabAsset: {fileID: 0}
283 + serializedVersion: 6
284 + m_Component:
285 + - component: {fileID: 257076398}
286 + - component: {fileID: 257076397}
287 + - component: {fileID: 257076399}
288 + - component: {fileID: 257076400}
289 + m_Layer: 0
290 + m_Name: DepthView
291 + m_TagString: Untagged
292 + m_Icon: {fileID: 0}
293 + m_NavMeshLayer: 0
294 + m_StaticEditorFlags: 0
295 + m_IsActive: 1
296 +--- !u!114 &257076397
297 +MonoBehaviour:
298 + m_ObjectHideFlags: 0
299 + m_CorrespondingSourceObject: {fileID: 0}
300 + m_PrefabInstance: {fileID: 0}
301 + m_PrefabAsset: {fileID: 0}
302 + m_GameObject: {fileID: 257076396}
303 + m_Enabled: 1
304 + m_EditorHideFlags: 0
305 + m_Script: {fileID: 11500000, guid: 383e102cbe3bfb34d94c98ea3c2479b4, type: 3}
306 + m_Name:
307 + m_EditorClassIdentifier:
308 + ViewMode: 1
309 + ColorSourceManager: {fileID: 679549941}
310 + DepthSourceManager: {fileID: 1022827879}
311 + MultiSourceManager: {fileID: 1736670513}
312 +--- !u!4 &257076398
313 +Transform:
314 + m_ObjectHideFlags: 0
315 + m_CorrespondingSourceObject: {fileID: 0}
316 + m_PrefabInstance: {fileID: 0}
317 + m_PrefabAsset: {fileID: 0}
318 + m_GameObject: {fileID: 257076396}
319 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
320 + m_LocalPosition: {x: 0, y: -0, z: 0}
321 + m_LocalScale: {x: 1, y: 1, z: 1}
322 + m_Children: []
323 + m_Father: {fileID: 1988608401}
324 + m_RootOrder: 0
325 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
326 +--- !u!23 &257076399
327 +MeshRenderer:
328 + m_ObjectHideFlags: 0
329 + m_CorrespondingSourceObject: {fileID: 0}
330 + m_PrefabInstance: {fileID: 0}
331 + m_PrefabAsset: {fileID: 0}
332 + m_GameObject: {fileID: 257076396}
333 + m_Enabled: 1
334 + m_CastShadows: 1
335 + m_ReceiveShadows: 1
336 + m_DynamicOccludee: 1
337 + m_MotionVectors: 1
338 + m_LightProbeUsage: 0
339 + m_ReflectionProbeUsage: 1
340 + m_RayTracingMode: 2
341 + m_RenderingLayerMask: 1
342 + m_RendererPriority: 0
343 + m_Materials:
344 + - {fileID: 10302, guid: 0000000000000000f000000000000000, type: 0}
345 + m_StaticBatchInfo:
346 + firstSubMesh: 0
347 + subMeshCount: 0
348 + m_StaticBatchRoot: {fileID: 0}
349 + m_ProbeAnchor: {fileID: 0}
350 + m_LightProbeVolumeOverride: {fileID: 0}
351 + m_ScaleInLightmap: 1
352 + m_ReceiveGI: 1
353 + m_PreserveUVs: 0
354 + m_IgnoreNormalsForChartDetection: 0
355 + m_ImportantGI: 0
356 + m_StitchLightmapSeams: 1
357 + m_SelectedEditorRenderState: 3
358 + m_MinimumChartSize: 4
359 + m_AutoUVMaxDistance: 0.5
360 + m_AutoUVMaxAngle: 89
361 + m_LightmapParameters: {fileID: 0}
362 + m_SortingLayerID: 0
363 + m_SortingLayer: 0
364 + m_SortingOrder: 0
365 +--- !u!33 &257076400
366 +MeshFilter:
367 + m_ObjectHideFlags: 0
368 + m_CorrespondingSourceObject: {fileID: 0}
369 + m_PrefabInstance: {fileID: 0}
370 + m_PrefabAsset: {fileID: 0}
371 + m_GameObject: {fileID: 257076396}
372 + m_Mesh: {fileID: 0}
373 +--- !u!1 &660022884
374 +GameObject:
375 + m_ObjectHideFlags: 0
376 + m_CorrespondingSourceObject: {fileID: 0}
377 + m_PrefabInstance: {fileID: 0}
378 + m_PrefabAsset: {fileID: 0}
379 + serializedVersion: 6
380 + m_Component:
381 + - component: {fileID: 660022886}
382 + - component: {fileID: 660022885}
383 + m_Layer: 0
384 + m_Name: Directional light
385 + m_TagString: Untagged
386 + m_Icon: {fileID: 0}
387 + m_NavMeshLayer: 0
388 + m_StaticEditorFlags: 0
389 + m_IsActive: 1
390 +--- !u!108 &660022885
391 +Light:
392 + m_ObjectHideFlags: 0
393 + m_CorrespondingSourceObject: {fileID: 0}
394 + m_PrefabInstance: {fileID: 0}
395 + m_PrefabAsset: {fileID: 0}
396 + m_GameObject: {fileID: 660022884}
397 + m_Enabled: 1
398 + serializedVersion: 10
399 + m_Type: 1
400 + m_Shape: 0
401 + m_Color: {r: 1, g: 1, b: 1, a: 1}
402 + m_Intensity: 1
403 + m_Range: 10
404 + m_SpotAngle: 30
405 + m_InnerSpotAngle: 21.80208
406 + m_CookieSize: 10
407 + m_Shadows:
408 + m_Type: 0
409 + m_Resolution: -1
410 + m_CustomResolution: -1
411 + m_Strength: 1
412 + m_Bias: 0.05
413 + m_NormalBias: 0.4
414 + m_NearPlane: 0.2
415 + m_CullingMatrixOverride:
416 + e00: 1
417 + e01: 0
418 + e02: 0
419 + e03: 0
420 + e10: 0
421 + e11: 1
422 + e12: 0
423 + e13: 0
424 + e20: 0
425 + e21: 0
426 + e22: 1
427 + e23: 0
428 + e30: 0
429 + e31: 0
430 + e32: 0
431 + e33: 1
432 + m_UseCullingMatrixOverride: 0
433 + m_Cookie: {fileID: 0}
434 + m_DrawHalo: 0
435 + m_Flare: {fileID: 0}
436 + m_RenderMode: 0
437 + m_CullingMask:
438 + serializedVersion: 2
439 + m_Bits: 4294967295
440 + m_RenderingLayerMask: 1
441 + m_Lightmapping: 1
442 + m_LightShadowCasterMode: 0
443 + m_AreaSize: {x: 1, y: 1}
444 + m_BounceIntensity: 1
445 + m_ColorTemperature: 6570
446 + m_UseColorTemperature: 0
447 + m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
448 + m_UseBoundingSphereOverride: 0
449 + m_ShadowRadius: 0
450 + m_ShadowAngle: 0
451 +--- !u!4 &660022886
452 +Transform:
453 + m_ObjectHideFlags: 0
454 + m_CorrespondingSourceObject: {fileID: 0}
455 + m_PrefabInstance: {fileID: 0}
456 + m_PrefabAsset: {fileID: 0}
457 + m_GameObject: {fileID: 660022884}
458 + m_LocalRotation: {x: 0.30909714, y: -0.24520965, z: 0.08282233, w: 0.9151348}
459 + m_LocalPosition: {x: -13.278711, y: 5.633033, z: 4.732221}
460 + m_LocalScale: {x: 1, y: 1, z: 1}
461 + m_Children: []
462 + m_Father: {fileID: 0}
463 + m_RootOrder: 6
464 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
465 +--- !u!1 &679549941
466 +GameObject:
467 + m_ObjectHideFlags: 0
468 + m_CorrespondingSourceObject: {fileID: 0}
469 + m_PrefabInstance: {fileID: 0}
470 + m_PrefabAsset: {fileID: 0}
471 + serializedVersion: 6
472 + m_Component:
473 + - component: {fileID: 679549942}
474 + - component: {fileID: 679549943}
475 + m_Layer: 0
476 + m_Name: ColorManager
477 + m_TagString: Untagged
478 + m_Icon: {fileID: 0}
479 + m_NavMeshLayer: 0
480 + m_StaticEditorFlags: 0
481 + m_IsActive: 1
482 +--- !u!4 &679549942
483 +Transform:
484 + m_ObjectHideFlags: 0
485 + m_CorrespondingSourceObject: {fileID: 0}
486 + m_PrefabInstance: {fileID: 0}
487 + m_PrefabAsset: {fileID: 0}
488 + m_GameObject: {fileID: 679549941}
489 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
490 + m_LocalPosition: {x: -208.42621, y: 330.08652, z: 342.24237}
491 + m_LocalScale: {x: 1, y: 1, z: 1}
492 + m_Children: []
493 + m_Father: {fileID: 0}
494 + m_RootOrder: 2
495 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
496 +--- !u!114 &679549943
497 +MonoBehaviour:
498 + m_ObjectHideFlags: 0
499 + m_CorrespondingSourceObject: {fileID: 0}
500 + m_PrefabInstance: {fileID: 0}
501 + m_PrefabAsset: {fileID: 0}
502 + m_GameObject: {fileID: 679549941}
503 + m_Enabled: 1
504 + m_EditorHideFlags: 0
505 + m_Script: {fileID: 11500000, guid: 92ab5bea6110edb4081e490c0982748d, type: 3}
506 + m_Name:
507 + m_EditorClassIdentifier:
508 +--- !u!1 &716011529
509 +GameObject:
510 + m_ObjectHideFlags: 0
511 + m_CorrespondingSourceObject: {fileID: 0}
512 + m_PrefabInstance: {fileID: 0}
513 + m_PrefabAsset: {fileID: 0}
514 + serializedVersion: 6
515 + m_Component:
516 + - component: {fileID: 716011534}
517 + - component: {fileID: 716011533}
518 + - component: {fileID: 716011532}
519 + - component: {fileID: 716011531}
520 + - component: {fileID: 716011530}
521 + m_Layer: 0
522 + m_Name: Cube
523 + m_TagString: Untagged
524 + m_Icon: {fileID: 0}
525 + m_NavMeshLayer: 0
526 + m_StaticEditorFlags: 0
527 + m_IsActive: 1
528 +--- !u!114 &716011530
529 +MonoBehaviour:
530 + m_ObjectHideFlags: 0
531 + m_CorrespondingSourceObject: {fileID: 0}
532 + m_PrefabInstance: {fileID: 0}
533 + m_PrefabAsset: {fileID: 0}
534 + m_GameObject: {fileID: 716011529}
535 + m_Enabled: 1
536 + m_EditorHideFlags: 0
537 + m_Script: {fileID: 11500000, guid: 61e5c93f5da1e324aa7fd9671db875bc, type: 3}
538 + m_Name:
539 + m_EditorClassIdentifier:
540 +--- !u!23 &716011531
541 +MeshRenderer:
542 + m_ObjectHideFlags: 0
543 + m_CorrespondingSourceObject: {fileID: 0}
544 + m_PrefabInstance: {fileID: 0}
545 + m_PrefabAsset: {fileID: 0}
546 + m_GameObject: {fileID: 716011529}
547 + m_Enabled: 1
548 + m_CastShadows: 1
549 + m_ReceiveShadows: 1
550 + m_DynamicOccludee: 1
551 + m_MotionVectors: 1
552 + m_LightProbeUsage: 0
553 + m_ReflectionProbeUsage: 1
554 + m_RayTracingMode: 2
555 + m_RenderingLayerMask: 1
556 + m_RendererPriority: 0
557 + m_Materials:
558 + - {fileID: 10302, guid: 0000000000000000f000000000000000, type: 0}
559 + m_StaticBatchInfo:
560 + firstSubMesh: 0
561 + subMeshCount: 0
562 + m_StaticBatchRoot: {fileID: 0}
563 + m_ProbeAnchor: {fileID: 0}
564 + m_LightProbeVolumeOverride: {fileID: 0}
565 + m_ScaleInLightmap: 1
566 + m_ReceiveGI: 1
567 + m_PreserveUVs: 0
568 + m_IgnoreNormalsForChartDetection: 0
569 + m_ImportantGI: 0
570 + m_StitchLightmapSeams: 1
571 + m_SelectedEditorRenderState: 3
572 + m_MinimumChartSize: 4
573 + m_AutoUVMaxDistance: 0.5
574 + m_AutoUVMaxAngle: 89
575 + m_LightmapParameters: {fileID: 0}
576 + m_SortingLayerID: 0
577 + m_SortingLayer: 0
578 + m_SortingOrder: 0
579 +--- !u!65 &716011532
580 +BoxCollider:
581 + m_ObjectHideFlags: 0
582 + m_CorrespondingSourceObject: {fileID: 0}
583 + m_PrefabInstance: {fileID: 0}
584 + m_PrefabAsset: {fileID: 0}
585 + m_GameObject: {fileID: 716011529}
586 + m_Material: {fileID: 0}
587 + m_IsTrigger: 0
588 + m_Enabled: 1
589 + serializedVersion: 2
590 + m_Size: {x: 1, y: 1, z: 1}
591 + m_Center: {x: 0, y: 0, z: 0}
592 +--- !u!33 &716011533
593 +MeshFilter:
594 + m_ObjectHideFlags: 0
595 + m_CorrespondingSourceObject: {fileID: 0}
596 + m_PrefabInstance: {fileID: 0}
597 + m_PrefabAsset: {fileID: 0}
598 + m_GameObject: {fileID: 716011529}
599 + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
600 +--- !u!4 &716011534
601 +Transform:
602 + m_ObjectHideFlags: 0
603 + m_CorrespondingSourceObject: {fileID: 0}
604 + m_PrefabInstance: {fileID: 0}
605 + m_PrefabAsset: {fileID: 0}
606 + m_GameObject: {fileID: 716011529}
607 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
608 + m_LocalPosition: {x: 0, y: 0, z: 0}
609 + m_LocalScale: {x: 3, y: 8, z: 0.01}
610 + m_Children: []
611 + m_Father: {fileID: 112136119}
612 + m_RootOrder: 0
613 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
614 +--- !u!1 &934010673
615 +GameObject:
616 + m_ObjectHideFlags: 0
617 + m_CorrespondingSourceObject: {fileID: 0}
618 + m_PrefabInstance: {fileID: 0}
619 + m_PrefabAsset: {fileID: 0}
620 + serializedVersion: 6
621 + m_Component:
622 + - component: {fileID: 934010678}
623 + - component: {fileID: 934010677}
624 + - component: {fileID: 934010676}
625 + - component: {fileID: 934010675}
626 + - component: {fileID: 934010674}
627 + m_Layer: 0
628 + m_Name: ColorView
629 + m_TagString: Untagged
630 + m_Icon: {fileID: 0}
631 + m_NavMeshLayer: 0
632 + m_StaticEditorFlags: 0
633 + m_IsActive: 1
634 +--- !u!114 &934010674
635 +MonoBehaviour:
636 + m_ObjectHideFlags: 0
637 + m_CorrespondingSourceObject: {fileID: 0}
638 + m_PrefabInstance: {fileID: 0}
639 + m_PrefabAsset: {fileID: 0}
640 + m_GameObject: {fileID: 934010673}
641 + m_Enabled: 1
642 + m_EditorHideFlags: 0
643 + m_Script: {fileID: 11500000, guid: ee5302fdf7d10e74fbbbe1a2f7503f46, type: 3}
644 + m_Name:
645 + m_EditorClassIdentifier:
646 + ColorSourceManager: {fileID: 679549941}
647 +--- !u!23 &934010675
648 +MeshRenderer:
649 + m_ObjectHideFlags: 0
650 + m_CorrespondingSourceObject: {fileID: 0}
651 + m_PrefabInstance: {fileID: 0}
652 + m_PrefabAsset: {fileID: 0}
653 + m_GameObject: {fileID: 934010673}
654 + m_Enabled: 1
655 + m_CastShadows: 1
656 + m_ReceiveShadows: 1
657 + m_DynamicOccludee: 1
658 + m_MotionVectors: 1
659 + m_LightProbeUsage: 0
660 + m_ReflectionProbeUsage: 1
661 + m_RayTracingMode: 2
662 + m_RenderingLayerMask: 1
663 + m_RendererPriority: 0
664 + m_Materials:
665 + - {fileID: 10302, guid: 0000000000000000f000000000000000, type: 0}
666 + m_StaticBatchInfo:
667 + firstSubMesh: 0
668 + subMeshCount: 0
669 + m_StaticBatchRoot: {fileID: 0}
670 + m_ProbeAnchor: {fileID: 0}
671 + m_LightProbeVolumeOverride: {fileID: 0}
672 + m_ScaleInLightmap: 1
673 + m_ReceiveGI: 1
674 + m_PreserveUVs: 0
675 + m_IgnoreNormalsForChartDetection: 0
676 + m_ImportantGI: 0
677 + m_StitchLightmapSeams: 1
678 + m_SelectedEditorRenderState: 3
679 + m_MinimumChartSize: 4
680 + m_AutoUVMaxDistance: 0.5
681 + m_AutoUVMaxAngle: 89
682 + m_LightmapParameters: {fileID: 0}
683 + m_SortingLayerID: 0
684 + m_SortingLayer: 0
685 + m_SortingOrder: 0
686 +--- !u!65 &934010676
687 +BoxCollider:
688 + m_ObjectHideFlags: 0
689 + m_CorrespondingSourceObject: {fileID: 0}
690 + m_PrefabInstance: {fileID: 0}
691 + m_PrefabAsset: {fileID: 0}
692 + m_GameObject: {fileID: 934010673}
693 + m_Material: {fileID: 0}
694 + m_IsTrigger: 0
695 + m_Enabled: 1
696 + serializedVersion: 2
697 + m_Size: {x: 1, y: 1, z: 1}
698 + m_Center: {x: 0, y: 0, z: 0}
699 +--- !u!33 &934010677
700 +MeshFilter:
701 + m_ObjectHideFlags: 0
702 + m_CorrespondingSourceObject: {fileID: 0}
703 + m_PrefabInstance: {fileID: 0}
704 + m_PrefabAsset: {fileID: 0}
705 + m_GameObject: {fileID: 934010673}
706 + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
707 +--- !u!4 &934010678
708 +Transform:
709 + m_ObjectHideFlags: 0
710 + m_CorrespondingSourceObject: {fileID: 0}
711 + m_PrefabInstance: {fileID: 0}
712 + m_PrefabAsset: {fileID: 0}
713 + m_GameObject: {fileID: 934010673}
714 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
715 + m_LocalPosition: {x: -118, y: 64.30853, z: 150.01746}
716 + m_LocalScale: {x: 96, y: 54, z: 1}
717 + m_Children: []
718 + m_Father: {fileID: 0}
719 + m_RootOrder: 3
720 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
721 +--- !u!1 &1022827879
722 +GameObject:
723 + m_ObjectHideFlags: 0
724 + m_CorrespondingSourceObject: {fileID: 0}
725 + m_PrefabInstance: {fileID: 0}
726 + m_PrefabAsset: {fileID: 0}
727 + serializedVersion: 6
728 + m_Component:
729 + - component: {fileID: 1022827881}
730 + - component: {fileID: 1022827880}
731 + m_Layer: 0
732 + m_Name: DepthManager
733 + m_TagString: Untagged
734 + m_Icon: {fileID: 0}
735 + m_NavMeshLayer: 0
736 + m_StaticEditorFlags: 0
737 + m_IsActive: 1
738 +--- !u!114 &1022827880
739 +MonoBehaviour:
740 + m_ObjectHideFlags: 0
741 + m_CorrespondingSourceObject: {fileID: 0}
742 + m_PrefabInstance: {fileID: 0}
743 + m_PrefabAsset: {fileID: 0}
744 + m_GameObject: {fileID: 1022827879}
745 + m_Enabled: 1
746 + m_EditorHideFlags: 0
747 + m_Script: {fileID: 11500000, guid: 1cd019cdd7a54604b9ae8091d242d8a4, type: 3}
748 + m_Name:
749 + m_EditorClassIdentifier:
750 +--- !u!4 &1022827881
751 +Transform:
752 + m_ObjectHideFlags: 0
753 + m_CorrespondingSourceObject: {fileID: 0}
754 + m_PrefabInstance: {fileID: 0}
755 + m_PrefabAsset: {fileID: 0}
756 + m_GameObject: {fileID: 1022827879}
757 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
758 + m_LocalPosition: {x: 5.873085, y: 0, z: 182.0674}
759 + m_LocalScale: {x: 1, y: 1, z: 1}
760 + m_Children: []
761 + m_Father: {fileID: 0}
762 + m_RootOrder: 5
763 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
764 +--- !u!1 &1464340100
765 +GameObject:
766 + m_ObjectHideFlags: 0
767 + m_CorrespondingSourceObject: {fileID: 0}
768 + m_PrefabInstance: {fileID: 0}
769 + m_PrefabAsset: {fileID: 0}
770 + serializedVersion: 6
771 + m_Component:
772 + - component: {fileID: 1464340102}
773 + - component: {fileID: 1464340101}
774 + m_Layer: 0
775 + m_Name: InfraredManager
776 + m_TagString: Untagged
777 + m_Icon: {fileID: 0}
778 + m_NavMeshLayer: 0
779 + m_StaticEditorFlags: 0
780 + m_IsActive: 1
781 +--- !u!114 &1464340101
782 +MonoBehaviour:
783 + m_ObjectHideFlags: 0
784 + m_CorrespondingSourceObject: {fileID: 0}
785 + m_PrefabInstance: {fileID: 0}
786 + m_PrefabAsset: {fileID: 0}
787 + m_GameObject: {fileID: 1464340100}
788 + m_Enabled: 1
789 + m_EditorHideFlags: 0
790 + m_Script: {fileID: 11500000, guid: 63eff7f54e54aa049a2331755f3cb99c, type: 3}
791 + m_Name:
792 + m_EditorClassIdentifier:
793 +--- !u!4 &1464340102
794 +Transform:
795 + m_ObjectHideFlags: 0
796 + m_CorrespondingSourceObject: {fileID: 0}
797 + m_PrefabInstance: {fileID: 0}
798 + m_PrefabAsset: {fileID: 0}
799 + m_GameObject: {fileID: 1464340100}
800 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
801 + m_LocalPosition: {x: 0, y: 1, z: -17}
802 + m_LocalScale: {x: 1, y: 1, z: 1}
803 + m_Children: []
804 + m_Father: {fileID: 0}
805 + m_RootOrder: 7
806 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
807 +--- !u!1 &1608503454
808 +GameObject:
809 + m_ObjectHideFlags: 0
810 + m_CorrespondingSourceObject: {fileID: 0}
811 + m_PrefabInstance: {fileID: 0}
812 + m_PrefabAsset: {fileID: 0}
813 + serializedVersion: 6
814 + m_Component:
815 + - component: {fileID: 1608503459}
816 + - component: {fileID: 1608503458}
817 + - component: {fileID: 1608503457}
818 + - component: {fileID: 1608503456}
819 + - component: {fileID: 1608503455}
820 + m_Layer: 0
821 + m_Name: InfraredView
822 + m_TagString: Untagged
823 + m_Icon: {fileID: 0}
824 + m_NavMeshLayer: 0
825 + m_StaticEditorFlags: 0
826 + m_IsActive: 1
827 +--- !u!114 &1608503455
828 +MonoBehaviour:
829 + m_ObjectHideFlags: 0
830 + m_CorrespondingSourceObject: {fileID: 0}
831 + m_PrefabInstance: {fileID: 0}
832 + m_PrefabAsset: {fileID: 0}
833 + m_GameObject: {fileID: 1608503454}
834 + m_Enabled: 1
835 + m_EditorHideFlags: 0
836 + m_Script: {fileID: 11500000, guid: 98f8736f9d8c8e44592c96e57d57c5d4, type: 3}
837 + m_Name:
838 + m_EditorClassIdentifier:
839 + InfraredSourceManager: {fileID: 1464340100}
840 +--- !u!23 &1608503456
841 +MeshRenderer:
842 + m_ObjectHideFlags: 0
843 + m_CorrespondingSourceObject: {fileID: 0}
844 + m_PrefabInstance: {fileID: 0}
845 + m_PrefabAsset: {fileID: 0}
846 + m_GameObject: {fileID: 1608503454}
847 + m_Enabled: 1
848 + m_CastShadows: 1
849 + m_ReceiveShadows: 1
850 + m_DynamicOccludee: 1
851 + m_MotionVectors: 1
852 + m_LightProbeUsage: 0
853 + m_ReflectionProbeUsage: 1
854 + m_RayTracingMode: 2
855 + m_RenderingLayerMask: 1
856 + m_RendererPriority: 0
857 + m_Materials:
858 + - {fileID: 10302, guid: 0000000000000000f000000000000000, type: 0}
859 + m_StaticBatchInfo:
860 + firstSubMesh: 0
861 + subMeshCount: 0
862 + m_StaticBatchRoot: {fileID: 0}
863 + m_ProbeAnchor: {fileID: 0}
864 + m_LightProbeVolumeOverride: {fileID: 0}
865 + m_ScaleInLightmap: 1
866 + m_ReceiveGI: 1
867 + m_PreserveUVs: 0
868 + m_IgnoreNormalsForChartDetection: 0
869 + m_ImportantGI: 0
870 + m_StitchLightmapSeams: 1
871 + m_SelectedEditorRenderState: 3
872 + m_MinimumChartSize: 4
873 + m_AutoUVMaxDistance: 0.5
874 + m_AutoUVMaxAngle: 89
875 + m_LightmapParameters: {fileID: 0}
876 + m_SortingLayerID: 0
877 + m_SortingLayer: 0
878 + m_SortingOrder: 0
879 +--- !u!65 &1608503457
880 +BoxCollider:
881 + m_ObjectHideFlags: 0
882 + m_CorrespondingSourceObject: {fileID: 0}
883 + m_PrefabInstance: {fileID: 0}
884 + m_PrefabAsset: {fileID: 0}
885 + m_GameObject: {fileID: 1608503454}
886 + m_Material: {fileID: 0}
887 + m_IsTrigger: 0
888 + m_Enabled: 1
889 + serializedVersion: 2
890 + m_Size: {x: 1, y: 1, z: 1}
891 + m_Center: {x: 0, y: 0, z: 0}
892 +--- !u!33 &1608503458
893 +MeshFilter:
894 + m_ObjectHideFlags: 0
895 + m_CorrespondingSourceObject: {fileID: 0}
896 + m_PrefabInstance: {fileID: 0}
897 + m_PrefabAsset: {fileID: 0}
898 + m_GameObject: {fileID: 1608503454}
899 + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
900 +--- !u!4 &1608503459
901 +Transform:
902 + m_ObjectHideFlags: 0
903 + m_CorrespondingSourceObject: {fileID: 0}
904 + m_PrefabInstance: {fileID: 0}
905 + m_PrefabAsset: {fileID: 0}
906 + m_GameObject: {fileID: 1608503454}
907 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
908 + m_LocalPosition: {x: -118, y: -6.0306396, z: 150.01746}
909 + m_LocalScale: {x: 96, y: 79.5, z: 1}
910 + m_Children: []
911 + m_Father: {fileID: 0}
912 + m_RootOrder: 8
913 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
914 +--- !u!1 &1698423884
915 +GameObject:
916 + m_ObjectHideFlags: 0
917 + m_CorrespondingSourceObject: {fileID: 0}
918 + m_PrefabInstance: {fileID: 0}
919 + m_PrefabAsset: {fileID: 0}
920 + serializedVersion: 6
921 + m_Component:
922 + - component: {fileID: 1698423886}
923 + - component: {fileID: 1698423885}
924 + m_Layer: 0
925 + m_Name: BodyManager
926 + m_TagString: Untagged
927 + m_Icon: {fileID: 0}
928 + m_NavMeshLayer: 0
929 + m_StaticEditorFlags: 0
930 + m_IsActive: 1
931 +--- !u!114 &1698423885
932 +MonoBehaviour:
933 + m_ObjectHideFlags: 0
934 + m_CorrespondingSourceObject: {fileID: 0}
935 + m_PrefabInstance: {fileID: 0}
936 + m_PrefabAsset: {fileID: 0}
937 + m_GameObject: {fileID: 1698423884}
938 + m_Enabled: 1
939 + m_EditorHideFlags: 0
940 + m_Script: {fileID: 11500000, guid: 2e74aed0503c9d24290a1ae5438fddc3, type: 3}
941 + m_Name:
942 + m_EditorClassIdentifier:
943 +--- !u!4 &1698423886
944 +Transform:
945 + m_ObjectHideFlags: 0
946 + m_CorrespondingSourceObject: {fileID: 0}
947 + m_PrefabInstance: {fileID: 0}
948 + m_PrefabAsset: {fileID: 0}
949 + m_GameObject: {fileID: 1698423884}
950 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
951 + m_LocalPosition: {x: 5.873085, y: 0, z: 182.0674}
952 + m_LocalScale: {x: 1, y: 1, z: 1}
953 + m_Children: []
954 + m_Father: {fileID: 0}
955 + m_RootOrder: 0
956 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
957 +--- !u!1 &1736670513
958 +GameObject:
959 + m_ObjectHideFlags: 0
960 + m_CorrespondingSourceObject: {fileID: 0}
961 + m_PrefabInstance: {fileID: 0}
962 + m_PrefabAsset: {fileID: 0}
963 + serializedVersion: 6
964 + m_Component:
965 + - component: {fileID: 1736670515}
966 + - component: {fileID: 1736670514}
967 + m_Layer: 0
968 + m_Name: MultiFrameManager
969 + m_TagString: Untagged
970 + m_Icon: {fileID: 0}
971 + m_NavMeshLayer: 0
972 + m_StaticEditorFlags: 0
973 + m_IsActive: 1
974 +--- !u!114 &1736670514
975 +MonoBehaviour:
976 + m_ObjectHideFlags: 0
977 + m_CorrespondingSourceObject: {fileID: 0}
978 + m_PrefabInstance: {fileID: 0}
979 + m_PrefabAsset: {fileID: 0}
980 + m_GameObject: {fileID: 1736670513}
981 + m_Enabled: 1
982 + m_EditorHideFlags: 0
983 + m_Script: {fileID: 11500000, guid: f752c4e07617d8d4eb21d4975a2d7c61, type: 3}
984 + m_Name:
985 + m_EditorClassIdentifier:
986 +--- !u!4 &1736670515
987 +Transform:
988 + m_ObjectHideFlags: 0
989 + m_CorrespondingSourceObject: {fileID: 0}
990 + m_PrefabInstance: {fileID: 0}
991 + m_PrefabAsset: {fileID: 0}
992 + m_GameObject: {fileID: 1736670513}
993 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
994 + m_LocalPosition: {x: -208.42621, y: 330.08652, z: 342.24237}
995 + m_LocalScale: {x: 1, y: 1, z: 1}
996 + m_Children: []
997 + m_Father: {fileID: 0}
998 + m_RootOrder: 10
999 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1000 +--- !u!1 &1747301860
1001 +GameObject:
1002 + m_ObjectHideFlags: 0
1003 + m_CorrespondingSourceObject: {fileID: 0}
1004 + m_PrefabInstance: {fileID: 0}
1005 + m_PrefabAsset: {fileID: 0}
1006 + serializedVersion: 6
1007 + m_Component:
1008 + - component: {fileID: 1747301865}
1009 + - component: {fileID: 1747301864}
1010 + - component: {fileID: 1747301862}
1011 + - component: {fileID: 1747301861}
1012 + m_Layer: 0
1013 + m_Name: Main Camera
1014 + m_TagString: MainCamera
1015 + m_Icon: {fileID: 0}
1016 + m_NavMeshLayer: 0
1017 + m_StaticEditorFlags: 0
1018 + m_IsActive: 1
1019 +--- !u!81 &1747301861
1020 +AudioListener:
1021 + m_ObjectHideFlags: 0
1022 + m_CorrespondingSourceObject: {fileID: 0}
1023 + m_PrefabInstance: {fileID: 0}
1024 + m_PrefabAsset: {fileID: 0}
1025 + m_GameObject: {fileID: 1747301860}
1026 + m_Enabled: 1
1027 +--- !u!124 &1747301862
1028 +Behaviour:
1029 + m_ObjectHideFlags: 0
1030 + m_CorrespondingSourceObject: {fileID: 0}
1031 + m_PrefabInstance: {fileID: 0}
1032 + m_PrefabAsset: {fileID: 0}
1033 + m_GameObject: {fileID: 1747301860}
1034 + m_Enabled: 1
1035 +--- !u!20 &1747301864
1036 +Camera:
1037 + m_ObjectHideFlags: 0
1038 + m_CorrespondingSourceObject: {fileID: 0}
1039 + m_PrefabInstance: {fileID: 0}
1040 + m_PrefabAsset: {fileID: 0}
1041 + m_GameObject: {fileID: 1747301860}
1042 + m_Enabled: 1
1043 + serializedVersion: 2
1044 + m_ClearFlags: 1
1045 + m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0.019607844}
1046 + m_projectionMatrixMode: 1
1047 + m_GateFitMode: 2
1048 + m_FOVAxisMode: 0
1049 + m_SensorSize: {x: 36, y: 24}
1050 + m_LensShift: {x: 0, y: 0}
1051 + m_FocalLength: 50
1052 + m_NormalizedViewPortRect:
1053 + serializedVersion: 2
1054 + x: 0
1055 + y: 0
1056 + width: 1
1057 + height: 1
1058 + near clip plane: 0.3
1059 + far clip plane: 400
1060 + field of view: 60
1061 + orthographic: 0
1062 + orthographic size: 5
1063 + m_Depth: -1
1064 + m_CullingMask:
1065 + serializedVersion: 2
1066 + m_Bits: 4294967295
1067 + m_RenderingPath: -1
1068 + m_TargetTexture: {fileID: 0}
1069 + m_TargetDisplay: 0
1070 + m_TargetEye: 3
1071 + m_HDR: 0
1072 + m_AllowMSAA: 1
1073 + m_AllowDynamicResolution: 0
1074 + m_ForceIntoRT: 0
1075 + m_OcclusionCulling: 1
1076 + m_StereoConvergence: 10
1077 + m_StereoSeparation: 0.022
1078 +--- !u!4 &1747301865
1079 +Transform:
1080 + m_ObjectHideFlags: 0
1081 + m_CorrespondingSourceObject: {fileID: 0}
1082 + m_PrefabInstance: {fileID: 0}
1083 + m_PrefabAsset: {fileID: 0}
1084 + m_GameObject: {fileID: 1747301860}
1085 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
1086 + m_LocalPosition: {x: 0, y: 1, z: -17}
1087 + m_LocalScale: {x: 1, y: 1, z: 1}
1088 + m_Children: []
1089 + m_Father: {fileID: 0}
1090 + m_RootOrder: 9
1091 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1092 +--- !u!1 &1988608400
1093 +GameObject:
1094 + m_ObjectHideFlags: 0
1095 + m_CorrespondingSourceObject: {fileID: 0}
1096 + m_PrefabInstance: {fileID: 0}
1097 + m_PrefabAsset: {fileID: 0}
1098 + serializedVersion: 6
1099 + m_Component:
1100 + - component: {fileID: 1988608401}
1101 + m_Layer: 0
1102 + m_Name: DepthBase
1103 + m_TagString: Untagged
1104 + m_Icon: {fileID: 0}
1105 + m_NavMeshLayer: 0
1106 + m_StaticEditorFlags: 0
1107 + m_IsActive: 1
1108 +--- !u!4 &1988608401
1109 +Transform:
1110 + m_ObjectHideFlags: 0
1111 + m_CorrespondingSourceObject: {fileID: 0}
1112 + m_PrefabInstance: {fileID: 0}
1113 + m_PrefabAsset: {fileID: 0}
1114 + m_GameObject: {fileID: 1988608400}
1115 + m_LocalRotation: {x: 0.16042967, y: -0.37686968, z: -0.06645215, w: -0.9098438}
1116 + m_LocalPosition: {x: 5.873085, y: 0, z: 182.0674}
1117 + m_LocalScale: {x: 1, y: 1, z: 1}
1118 + m_Children:
1119 + - {fileID: 257076398}
1120 + - {fileID: 252019524}
1121 + m_Father: {fileID: 0}
1122 + m_RootOrder: 4
1123 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!21 &2100000
4 +Material:
5 + serializedVersion: 6
6 + m_ObjectHideFlags: 0
7 + m_CorrespondingSourceObject: {fileID: 0}
8 + m_PrefabInstance: {fileID: 0}
9 + m_PrefabAsset: {fileID: 0}
10 + m_Name: BoneMaterial
11 + m_Shader: {fileID: 200, guid: 0000000000000000f000000000000000, type: 0}
12 + m_ShaderKeywords:
13 + m_LightmapFlags: 4
14 + m_EnableInstancingVariants: 0
15 + m_DoubleSidedGI: 0
16 + m_CustomRenderQueue: -1
17 + stringTagMap: {}
18 + disabledShaderPasses: []
19 + m_SavedProperties:
20 + serializedVersion: 3
21 + m_TexEnvs:
22 + - _MainTex:
23 + m_Texture: {fileID: 0}
24 + m_Scale: {x: 1, y: 1}
25 + m_Offset: {x: 0, y: 0}
26 + m_Floats:
27 + - _InvFade: 1
28 + m_Colors:
29 + - _Color: {r: 1, g: 1, b: 1, a: 1}
30 + - _TintColor: {r: 0.5, g: 0.5, b: 0.5, a: 0.5}
1 +using UnityEngine;
2 +using System.Collections;
3 +using Windows.Kinect;
4 +
5 +public class BodySourceManager : MonoBehaviour
6 +{
7 + private KinectSensor _Sensor;
8 + private BodyFrameReader _Reader;
9 + private Body[] _Data = null;
10 +
11 + public Body[] GetData()
12 + {
13 + return _Data;
14 + }
15 +
16 +
17 + void Start ()
18 + {
19 + _Sensor = KinectSensor.GetDefault();
20 +
21 + if (_Sensor != null)
22 + {
23 + _Reader = _Sensor.BodyFrameSource.OpenReader();
24 +
25 + if (!_Sensor.IsOpen)
26 + {
27 + _Sensor.Open();
28 + }
29 + }
30 + }
31 +
32 + void Update ()
33 + {
34 + if (_Reader != null)
35 + {
36 + var frame = _Reader.AcquireLatestFrame();
37 + if (frame != null)
38 + {
39 + if (_Data == null)
40 + {
41 + _Data = new Body[_Sensor.BodyFrameSource.BodyCount];
42 + }
43 +
44 + frame.GetAndRefreshBodyData(_Data);
45 +
46 + frame.Dispose();
47 + frame = null;
48 + }
49 + }
50 + }
51 +
52 + void OnApplicationQuit()
53 + {
54 + if (_Reader != null)
55 + {
56 + _Reader.Dispose();
57 + _Reader = null;
58 + }
59 +
60 + if (_Sensor != null)
61 + {
62 + if (_Sensor.IsOpen)
63 + {
64 + _Sensor.Close();
65 + }
66 +
67 + _Sensor = null;
68 + }
69 + }
70 +}
1 +using UnityEngine;
2 +using System.Collections;
3 +using System.Collections.Generic;
4 +using Kinect = Windows.Kinect;
5 +
6 +public class BodySourceView : MonoBehaviour
7 +{
8 + public Material BoneMaterial;
9 + public GameObject BodySourceManager;
10 +
11 + private Dictionary<ulong, GameObject> _Bodies = new Dictionary<ulong, GameObject>();
12 + private BodySourceManager _BodyManager;
13 +
14 + private Dictionary<Kinect.JointType, Kinect.JointType> _BoneMap = new Dictionary<Kinect.JointType, Kinect.JointType>()
15 + {
16 + { Kinect.JointType.FootLeft, Kinect.JointType.AnkleLeft },
17 + { Kinect.JointType.AnkleLeft, Kinect.JointType.KneeLeft },
18 + { Kinect.JointType.KneeLeft, Kinect.JointType.HipLeft },
19 + { Kinect.JointType.HipLeft, Kinect.JointType.SpineBase },
20 +
21 + { Kinect.JointType.FootRight, Kinect.JointType.AnkleRight },
22 + { Kinect.JointType.AnkleRight, Kinect.JointType.KneeRight },
23 + { Kinect.JointType.KneeRight, Kinect.JointType.HipRight },
24 + { Kinect.JointType.HipRight, Kinect.JointType.SpineBase },
25 +
26 + { Kinect.JointType.HandTipLeft, Kinect.JointType.HandLeft },
27 + { Kinect.JointType.ThumbLeft, Kinect.JointType.HandLeft },
28 + { Kinect.JointType.HandLeft, Kinect.JointType.WristLeft },
29 + { Kinect.JointType.WristLeft, Kinect.JointType.ElbowLeft },
30 + { Kinect.JointType.ElbowLeft, Kinect.JointType.ShoulderLeft },
31 + { Kinect.JointType.ShoulderLeft, Kinect.JointType.SpineShoulder },
32 +
33 + { Kinect.JointType.HandTipRight, Kinect.JointType.HandRight },
34 + { Kinect.JointType.ThumbRight, Kinect.JointType.HandRight },
35 + { Kinect.JointType.HandRight, Kinect.JointType.WristRight },
36 + { Kinect.JointType.WristRight, Kinect.JointType.ElbowRight },
37 + { Kinect.JointType.ElbowRight, Kinect.JointType.ShoulderRight },
38 + { Kinect.JointType.ShoulderRight, Kinect.JointType.SpineShoulder },
39 +
40 + { Kinect.JointType.SpineBase, Kinect.JointType.SpineMid },
41 + { Kinect.JointType.SpineMid, Kinect.JointType.SpineShoulder },
42 + { Kinect.JointType.SpineShoulder, Kinect.JointType.Neck },
43 + { Kinect.JointType.Neck, Kinect.JointType.Head },
44 + };
45 +
46 + void Update ()
47 + {
48 + if (BodySourceManager == null)
49 + {
50 + return;
51 + }
52 +
53 + _BodyManager = BodySourceManager.GetComponent<BodySourceManager>();
54 + if (_BodyManager == null)
55 + {
56 + return;
57 + }
58 +
59 + Kinect.Body[] data = _BodyManager.GetData();
60 + if (data == null)
61 + {
62 + return;
63 + }
64 +
65 + List<ulong> trackedIds = new List<ulong>();
66 + foreach(var body in data)
67 + {
68 + if (body == null)
69 + {
70 + continue;
71 + }
72 +
73 + if(body.IsTracked)
74 + {
75 + trackedIds.Add (body.TrackingId);
76 + }
77 + }
78 +
79 + List<ulong> knownIds = new List<ulong>(_Bodies.Keys);
80 +
81 + // First delete untracked bodies
82 + foreach(ulong trackingId in knownIds)
83 + {
84 + if(!trackedIds.Contains(trackingId))
85 + {
86 + Destroy(_Bodies[trackingId]);
87 + _Bodies.Remove(trackingId);
88 + }
89 + }
90 +
91 + foreach(var body in data)
92 + {
93 + if (body == null)
94 + {
95 + continue;
96 + }
97 +
98 + if(body.IsTracked)
99 + {
100 + if(!_Bodies.ContainsKey(body.TrackingId))
101 + {
102 + _Bodies[body.TrackingId] = CreateBodyObject(body.TrackingId);
103 +
104 + }
105 + RefreshBodyObject(body, _Bodies[body.TrackingId]);
106 + }
107 + }
108 + }
109 +
110 + private GameObject CreateBodyObject(ulong id)
111 + {
112 + GameObject body = new GameObject("Body:" + id);
113 +
114 + for (Kinect.JointType jt = Kinect.JointType.SpineBase; jt <= Kinect.JointType.ThumbRight; jt++)
115 + {
116 + GameObject jointObj = GameObject.CreatePrimitive(PrimitiveType.Cube);
117 +
118 + LineRenderer lr = jointObj.AddComponent<LineRenderer>();
119 + lr.SetVertexCount(2);
120 + lr.material = BoneMaterial;
121 + lr.SetWidth(0.05f, 0.05f);
122 +
123 + jointObj.transform.localScale = new Vector3(0.3f, 0.3f, 0.3f);
124 + jointObj.name = jt.ToString();
125 + jointObj.transform.parent = body.transform;
126 + }
127 +
128 + return body;
129 + }
130 +
131 + private void RefreshBodyObject(Kinect.Body body, GameObject bodyObject)
132 + {
133 +
134 + for (Kinect.JointType jt = Kinect.JointType.SpineBase; jt <= Kinect.JointType.ThumbRight; jt++)
135 + {
136 + Kinect.Joint sourceJoint = body.Joints[jt];
137 + Debug.Log(body.Joints[jt].JointType);
138 + Debug.Log(sourceJoint.Position.X * 10);
139 + Debug.Log(sourceJoint.Position.Y * 10);
140 + Debug.Log(sourceJoint.Position.Z * 10);
141 + Kinect.Joint? targetJoint = null;
142 +
143 + if(_BoneMap.ContainsKey(jt))
144 + {
145 + targetJoint = body.Joints[_BoneMap[jt]];
146 + }
147 + Transform jointObj = bodyObject.transform.Find(jt.ToString());
148 + jointObj.localPosition = GetVector3FromJoint(sourceJoint);
149 +
150 + LineRenderer lr = jointObj.GetComponent<LineRenderer>();
151 + if(targetJoint.HasValue)
152 + {
153 + lr.SetPosition(0, jointObj.localPosition);
154 + lr.SetPosition(1, GetVector3FromJoint(targetJoint.Value));
155 + lr.SetColors(GetColorForState (sourceJoint.TrackingState), GetColorForState(targetJoint.Value.TrackingState));
156 + }
157 + else
158 + {
159 + lr.enabled = false;
160 + }
161 + }
162 + }
163 +
164 + private static Color GetColorForState(Kinect.TrackingState state)
165 + {
166 + switch (state)
167 + {
168 + case Kinect.TrackingState.Tracked:
169 + return Color.green;
170 +
171 + case Kinect.TrackingState.Inferred:
172 + return Color.red;
173 +
174 + default:
175 + return Color.black;
176 + }
177 + }
178 +
179 + private static Vector3 GetVector3FromJoint(Kinect.Joint joint)
180 + {
181 + return new Vector3(joint.Position.X * 10, joint.Position.Y * 10, joint.Position.Z * 10);
182 + }
183 +}
1 +using UnityEngine;
2 +using System.Collections;
3 +using Windows.Kinect;
4 +
5 +public class ColorSourceManager : MonoBehaviour
6 +{
7 + public int ColorWidth { get; private set; }
8 + public int ColorHeight { get; private set; }
9 +
10 + private KinectSensor _Sensor;
11 + private ColorFrameReader _Reader;
12 + private Texture2D _Texture;
13 + private byte[] _Data;
14 +
15 + public Texture2D GetColorTexture()
16 + {
17 + return _Texture;
18 + }
19 +
20 + void Start()
21 + {
22 + _Sensor = KinectSensor.GetDefault();
23 +
24 + if (_Sensor != null)
25 + {
26 + _Reader = _Sensor.ColorFrameSource.OpenReader();
27 +
28 + var frameDesc = _Sensor.ColorFrameSource.CreateFrameDescription(ColorImageFormat.Rgba);
29 + ColorWidth = frameDesc.Width;
30 + ColorHeight = frameDesc.Height;
31 +
32 + _Texture = new Texture2D(frameDesc.Width, frameDesc.Height, TextureFormat.RGBA32, false);
33 + _Data = new byte[frameDesc.BytesPerPixel * frameDesc.LengthInPixels];
34 +
35 + if (!_Sensor.IsOpen)
36 + {
37 + _Sensor.Open();
38 + }
39 + }
40 + }
41 +
42 + void Update ()
43 + {
44 + if (_Reader != null)
45 + {
46 + var frame = _Reader.AcquireLatestFrame();
47 +
48 + if (frame != null)
49 + {
50 + frame.CopyConvertedFrameDataToArray(_Data, ColorImageFormat.Rgba);
51 + _Texture.LoadRawTextureData(_Data);
52 + _Texture.Apply();
53 +
54 + frame.Dispose();
55 + frame = null;
56 + }
57 + }
58 + }
59 +
60 + void OnApplicationQuit()
61 + {
62 + if (_Reader != null)
63 + {
64 + _Reader.Dispose();
65 + _Reader = null;
66 + }
67 +
68 + if (_Sensor != null)
69 + {
70 + if (_Sensor.IsOpen)
71 + {
72 + _Sensor.Close();
73 + }
74 +
75 + _Sensor = null;
76 + }
77 + }
78 +}
1 +using UnityEngine;
2 +using System.Collections;
3 +using Windows.Kinect;
4 +
5 +public class ColorSourceView : MonoBehaviour
6 +{
7 + public GameObject ColorSourceManager;
8 + private ColorSourceManager _ColorManager;
9 +
10 + void Start ()
11 + {
12 + gameObject.GetComponent<Renderer>().material.SetTextureScale("_MainTex", new Vector2(-1, 1));
13 + }
14 +
15 + void Update()
16 + {
17 + if (ColorSourceManager == null)
18 + {
19 + return;
20 + }
21 +
22 + _ColorManager = ColorSourceManager.GetComponent<ColorSourceManager>();
23 + if (_ColorManager == null)
24 + {
25 + return;
26 + }
27 +
28 + gameObject.GetComponent<Renderer>().material.mainTexture = _ColorManager.GetColorTexture();
29 + }
30 +}
1 +using UnityEngine;
2 +using System.Collections;
3 +using Windows.Kinect;
4 +
5 +public class DepthSourceManager : MonoBehaviour
6 +{
7 + private KinectSensor _Sensor;
8 + private DepthFrameReader _Reader;
9 + private ushort[] _Data;
10 +
11 + public ushort[] GetData()
12 + {
13 + return _Data;
14 + }
15 +
16 + void Start ()
17 + {
18 + _Sensor = KinectSensor.GetDefault();
19 +
20 + if (_Sensor != null)
21 + {
22 + _Reader = _Sensor.DepthFrameSource.OpenReader();
23 + _Data = new ushort[_Sensor.DepthFrameSource.FrameDescription.LengthInPixels];
24 + }
25 + }
26 +
27 + void Update ()
28 + {
29 + if (_Reader != null)
30 + {
31 + var frame = _Reader.AcquireLatestFrame();
32 + if (frame != null)
33 + {
34 + frame.CopyFrameDataToArray(_Data);
35 + frame.Dispose();
36 + frame = null;
37 + }
38 + }
39 + }
40 +
41 + void OnApplicationQuit()
42 + {
43 + if (_Reader != null)
44 + {
45 + _Reader.Dispose();
46 + _Reader = null;
47 + }
48 +
49 + if (_Sensor != null)
50 + {
51 + if (_Sensor.IsOpen)
52 + {
53 + _Sensor.Close();
54 + }
55 +
56 + _Sensor = null;
57 + }
58 + }
59 +}
1 +using UnityEngine;
2 +using System.Collections;
3 +using Windows.Kinect;
4 +
5 +public enum DepthViewMode
6 +{
7 + SeparateSourceReaders,
8 + MultiSourceReader,
9 +}
10 +
11 +public class DepthSourceView : MonoBehaviour
12 +{
13 + public DepthViewMode ViewMode = DepthViewMode.SeparateSourceReaders;
14 +
15 + public GameObject ColorSourceManager;
16 + public GameObject DepthSourceManager;
17 + public GameObject MultiSourceManager;
18 +
19 + private KinectSensor _Sensor;
20 + private CoordinateMapper _Mapper;
21 + private Mesh _Mesh;
22 + private Vector3[] _Vertices;
23 + private Vector2[] _UV;
24 + private int[] _Triangles;
25 +
26 + // Only works at 4 right now
27 + private const int _DownsampleSize = 4;
28 + private const double _DepthScale = 0.1f;
29 + private const int _Speed = 50;
30 +
31 + private MultiSourceManager _MultiManager;
32 + private ColorSourceManager _ColorManager;
33 + private DepthSourceManager _DepthManager;
34 +
35 + void Start()
36 + {
37 + _Sensor = KinectSensor.GetDefault();
38 + if (_Sensor != null)
39 + {
40 + _Mapper = _Sensor.CoordinateMapper;
41 + var frameDesc = _Sensor.DepthFrameSource.FrameDescription;
42 +
43 + // Downsample to lower resolution
44 + CreateMesh(frameDesc.Width / _DownsampleSize, frameDesc.Height / _DownsampleSize);
45 +
46 + if (!_Sensor.IsOpen)
47 + {
48 + _Sensor.Open();
49 + }
50 + }
51 + }
52 +
53 + void CreateMesh(int width, int height)
54 + {
55 + _Mesh = new Mesh();
56 + GetComponent<MeshFilter>().mesh = _Mesh;
57 +
58 + _Vertices = new Vector3[width * height];
59 + _UV = new Vector2[width * height];
60 + _Triangles = new int[6 * ((width - 1) * (height - 1))];
61 +
62 + int triangleIndex = 0;
63 + for (int y = 0; y < height; y++)
64 + {
65 + for (int x = 0; x < width; x++)
66 + {
67 + int index = (y * width) + x;
68 +
69 + _Vertices[index] = new Vector3(x, -y, 0);
70 + _UV[index] = new Vector2(((float)x / (float)width), ((float)y / (float)height));
71 +
72 + // Skip the last row/col
73 + if (x != (width - 1) && y != (height - 1))
74 + {
75 + int topLeft = index;
76 + int topRight = topLeft + 1;
77 + int bottomLeft = topLeft + width;
78 + int bottomRight = bottomLeft + 1;
79 +
80 + _Triangles[triangleIndex++] = topLeft;
81 + _Triangles[triangleIndex++] = topRight;
82 + _Triangles[triangleIndex++] = bottomLeft;
83 + _Triangles[triangleIndex++] = bottomLeft;
84 + _Triangles[triangleIndex++] = topRight;
85 + _Triangles[triangleIndex++] = bottomRight;
86 + }
87 + }
88 + }
89 +
90 + _Mesh.vertices = _Vertices;
91 + _Mesh.uv = _UV;
92 + _Mesh.triangles = _Triangles;
93 + _Mesh.RecalculateNormals();
94 + }
95 +
96 + void OnGUI()
97 + {
98 + GUI.BeginGroup(new Rect(0, 0, Screen.width, Screen.height));
99 + GUI.TextField(new Rect(Screen.width - 250 , 10, 250, 20), "DepthMode: " + ViewMode.ToString());
100 + GUI.EndGroup();
101 + }
102 +
103 + void Update()
104 + {
105 + if (_Sensor == null)
106 + {
107 + return;
108 + }
109 +
110 + if (Input.GetButtonDown("Fire1"))
111 + {
112 + if(ViewMode == DepthViewMode.MultiSourceReader)
113 + {
114 + ViewMode = DepthViewMode.SeparateSourceReaders;
115 + }
116 + else
117 + {
118 + ViewMode = DepthViewMode.MultiSourceReader;
119 + }
120 + }
121 +
122 + float yVal = Input.GetAxis("Horizontal");
123 + float xVal = -Input.GetAxis("Vertical");
124 +
125 + transform.Rotate(
126 + (xVal * Time.deltaTime * _Speed),
127 + (yVal * Time.deltaTime * _Speed),
128 + 0,
129 + Space.Self);
130 +
131 + if (ViewMode == DepthViewMode.SeparateSourceReaders)
132 + {
133 + if (ColorSourceManager == null)
134 + {
135 + return;
136 + }
137 +
138 + _ColorManager = ColorSourceManager.GetComponent<ColorSourceManager>();
139 + if (_ColorManager == null)
140 + {
141 + return;
142 + }
143 +
144 + if (DepthSourceManager == null)
145 + {
146 + return;
147 + }
148 +
149 + _DepthManager = DepthSourceManager.GetComponent<DepthSourceManager>();
150 + if (_DepthManager == null)
151 + {
152 + return;
153 + }
154 +
155 + gameObject.GetComponent<Renderer>().material.mainTexture = _ColorManager.GetColorTexture();
156 + RefreshData(_DepthManager.GetData(),
157 + _ColorManager.ColorWidth,
158 + _ColorManager.ColorHeight);
159 + }
160 + else
161 + {
162 + if (MultiSourceManager == null)
163 + {
164 + return;
165 + }
166 +
167 + _MultiManager = MultiSourceManager.GetComponent<MultiSourceManager>();
168 + if (_MultiManager == null)
169 + {
170 + return;
171 + }
172 +
173 + gameObject.GetComponent<Renderer>().material.mainTexture = _MultiManager.GetColorTexture();
174 +
175 + RefreshData(_MultiManager.GetDepthData(),
176 + _MultiManager.ColorWidth,
177 + _MultiManager.ColorHeight);
178 + }
179 + }
180 +
181 + private void RefreshData(ushort[] depthData, int colorWidth, int colorHeight)
182 + {
183 + var frameDesc = _Sensor.DepthFrameSource.FrameDescription;
184 +
185 + ColorSpacePoint[] colorSpace = new ColorSpacePoint[depthData.Length];
186 + _Mapper.MapDepthFrameToColorSpace(depthData, colorSpace);
187 +
188 + for (int y = 0; y < frameDesc.Height; y += _DownsampleSize)
189 + {
190 + for (int x = 0; x < frameDesc.Width; x += _DownsampleSize)
191 + {
192 + int indexX = x / _DownsampleSize;
193 + int indexY = y / _DownsampleSize;
194 + int smallIndex = (indexY * (frameDesc.Width / _DownsampleSize)) + indexX;
195 +
196 + double avg = GetAvg(depthData, x, y, frameDesc.Width, frameDesc.Height);
197 +
198 + avg = avg * _DepthScale;
199 +
200 + _Vertices[smallIndex].z = (float)avg;
201 +
202 + // Update UV mapping with CDRP
203 + var colorSpacePoint = colorSpace[(y * frameDesc.Width) + x];
204 + _UV[smallIndex] = new Vector2(colorSpacePoint.X / colorWidth, colorSpacePoint.Y / colorHeight);
205 + }
206 + }
207 +
208 + _Mesh.vertices = _Vertices;
209 + _Mesh.uv = _UV;
210 + _Mesh.triangles = _Triangles;
211 + _Mesh.RecalculateNormals();
212 + }
213 +
214 + private double GetAvg(ushort[] depthData, int x, int y, int width, int height)
215 + {
216 + double sum = 0.0;
217 +
218 + for (int y1 = y; y1 < y + 4; y1++)
219 + {
220 + for (int x1 = x; x1 < x + 4; x1++)
221 + {
222 + int fullIndex = (y1 * width) + x1;
223 +
224 + if (depthData[fullIndex] == 0)
225 + sum += 4500;
226 + else
227 + sum += depthData[fullIndex];
228 +
229 + }
230 + }
231 +
232 + return sum / 16;
233 + }
234 +
235 + void OnApplicationQuit()
236 + {
237 + if (_Mapper != null)
238 + {
239 + _Mapper = null;
240 + }
241 +
242 + if (_Sensor != null)
243 + {
244 + if (_Sensor.IsOpen)
245 + {
246 + _Sensor.Close();
247 + }
248 +
249 + _Sensor = null;
250 + }
251 + }
252 +}
1 +using UnityEngine;
2 +using System.Collections;
3 +
4 +public class DisableOnStart : MonoBehaviour {
5 +
6 + // Use this for initialization
7 + void Start ()
8 + {
9 + gameObject.SetActive (false);
10 + }
11 +}
1 +using UnityEngine;
2 +using System.Collections;
3 +using Windows.Kinect;
4 +
5 +public class InfraredSourceManager : MonoBehaviour
6 +{
7 + private KinectSensor _Sensor;
8 + private InfraredFrameReader _Reader;
9 + private ushort[] _Data;
10 + private byte[] _RawData;
11 +
12 + // I'm not sure this makes sense for the Kinect APIs
13 + // Instead, this logic should be in the VIEW
14 + private Texture2D _Texture;
15 +
16 + public Texture2D GetInfraredTexture()
17 + {
18 + return _Texture;
19 + }
20 +
21 + void Start()
22 + {
23 + _Sensor = KinectSensor.GetDefault();
24 + if (_Sensor != null)
25 + {
26 + _Reader = _Sensor.InfraredFrameSource.OpenReader();
27 + var frameDesc = _Sensor.InfraredFrameSource.FrameDescription;
28 + _Data = new ushort[frameDesc.LengthInPixels];
29 + _RawData = new byte[frameDesc.LengthInPixels * 4];
30 + _Texture = new Texture2D(frameDesc.Width, frameDesc.Height, TextureFormat.BGRA32, false);
31 +
32 + if (!_Sensor.IsOpen)
33 + {
34 + _Sensor.Open();
35 + }
36 + }
37 + }
38 +
39 + void Update ()
40 + {
41 + if (_Reader != null)
42 + {
43 + var frame = _Reader.AcquireLatestFrame();
44 + if (frame != null)
45 + {
46 + frame.CopyFrameDataToArray(_Data);
47 +
48 + int index = 0;
49 + foreach(var ir in _Data)
50 + {
51 + byte intensity = (byte)(ir >> 8);
52 + _RawData[index++] = intensity;
53 + _RawData[index++] = intensity;
54 + _RawData[index++] = intensity;
55 + _RawData[index++] = 255; // Alpha
56 + }
57 +
58 + _Texture.LoadRawTextureData(_RawData);
59 + _Texture.Apply();
60 +
61 + frame.Dispose();
62 + frame = null;
63 + }
64 + }
65 + }
66 +
67 + void OnApplicationQuit()
68 + {
69 + if (_Reader != null)
70 + {
71 + _Reader.Dispose();
72 + _Reader = null;
73 + }
74 +
75 + if (_Sensor != null)
76 + {
77 + if (_Sensor.IsOpen)
78 + {
79 + _Sensor.Close();
80 + }
81 +
82 + _Sensor = null;
83 + }
84 + }
85 +}
1 +using UnityEngine;
2 +using System.Collections;
3 +
4 +public class InfraredSourceView : MonoBehaviour
5 +{
6 + public GameObject InfraredSourceManager;
7 + private InfraredSourceManager _InfraredManager;
8 +
9 + void Start ()
10 + {
11 + gameObject.GetComponent<Renderer>().material.SetTextureScale("_MainTex", new Vector2(-1, 1));
12 + }
13 +
14 + void Update()
15 + {
16 + if (InfraredSourceManager == null)
17 + {
18 + return;
19 + }
20 +
21 + _InfraredManager = InfraredSourceManager.GetComponent<InfraredSourceManager>();
22 + if (_InfraredManager == null)
23 + {
24 + return;
25 + }
26 +
27 + gameObject.GetComponent<Renderer>().material.mainTexture = _InfraredManager.GetInfraredTexture();
28 + }
29 +}
1 +using UnityEngine;
2 +using System.Collections;
3 +using Windows.Kinect;
4 +
5 +public class MultiSourceManager : MonoBehaviour {
6 + public int ColorWidth { get; private set; }
7 + public int ColorHeight { get; private set; }
8 +
9 + private KinectSensor _Sensor;
10 + private MultiSourceFrameReader _Reader;
11 + private Texture2D _ColorTexture;
12 + private ushort[] _DepthData;
13 + private byte[] _ColorData;
14 +
15 + public Texture2D GetColorTexture()
16 + {
17 + return _ColorTexture;
18 + }
19 +
20 + public ushort[] GetDepthData()
21 + {
22 + return _DepthData;
23 + }
24 +
25 + void Start ()
26 + {
27 + _Sensor = KinectSensor.GetDefault();
28 +
29 + if (_Sensor != null)
30 + {
31 + _Reader = _Sensor.OpenMultiSourceFrameReader(FrameSourceTypes.Color | FrameSourceTypes.Depth);
32 +
33 + var colorFrameDesc = _Sensor.ColorFrameSource.CreateFrameDescription(ColorImageFormat.Rgba);
34 + ColorWidth = colorFrameDesc.Width;
35 + ColorHeight = colorFrameDesc.Height;
36 +
37 + _ColorTexture = new Texture2D(colorFrameDesc.Width, colorFrameDesc.Height, TextureFormat.RGBA32, false);
38 + _ColorData = new byte[colorFrameDesc.BytesPerPixel * colorFrameDesc.LengthInPixels];
39 +
40 + var depthFrameDesc = _Sensor.DepthFrameSource.FrameDescription;
41 + _DepthData = new ushort[depthFrameDesc.LengthInPixels];
42 +
43 + if (!_Sensor.IsOpen)
44 + {
45 + _Sensor.Open();
46 + }
47 + }
48 + }
49 +
50 + void Update ()
51 + {
52 + if (_Reader != null)
53 + {
54 + var frame = _Reader.AcquireLatestFrame();
55 + if (frame != null)
56 + {
57 + var colorFrame = frame.ColorFrameReference.AcquireFrame();
58 + if (colorFrame != null)
59 + {
60 + var depthFrame = frame.DepthFrameReference.AcquireFrame();
61 + if (depthFrame != null)
62 + {
63 + colorFrame.CopyConvertedFrameDataToArray(_ColorData, ColorImageFormat.Rgba);
64 + _ColorTexture.LoadRawTextureData(_ColorData);
65 + _ColorTexture.Apply();
66 +
67 + depthFrame.CopyFrameDataToArray(_DepthData);
68 +
69 + depthFrame.Dispose();
70 + depthFrame = null;
71 + }
72 +
73 + colorFrame.Dispose();
74 + colorFrame = null;
75 + }
76 +
77 + frame = null;
78 + }
79 + }
80 + }
81 +
82 + void OnApplicationQuit()
83 + {
84 + if (_Reader != null)
85 + {
86 + _Reader.Dispose();
87 + _Reader = null;
88 + }
89 +
90 + if (_Sensor != null)
91 + {
92 + if (_Sensor.IsOpen)
93 + {
94 + _Sensor.Close();
95 + }
96 +
97 + _Sensor = null;
98 + }
99 + }
100 +}
No preview for this file type
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!29 &1
4 +OcclusionCullingSettings:
5 + m_ObjectHideFlags: 0
6 + serializedVersion: 2
7 + m_OcclusionBakeSettings:
8 + smallestOccluder: 5
9 + smallestHole: 0.25
10 + backfaceThreshold: 100
11 + m_SceneGUID: 00000000000000000000000000000000
12 + m_OcclusionCullingData: {fileID: 0}
13 +--- !u!104 &2
14 +RenderSettings:
15 + m_ObjectHideFlags: 0
16 + serializedVersion: 9
17 + m_Fog: 0
18 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
19 + m_FogMode: 3
20 + m_FogDensity: 0.01
21 + m_LinearFogStart: 0
22 + m_LinearFogEnd: 300
23 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
24 + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
25 + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
26 + m_AmbientIntensity: 1
27 + m_AmbientMode: 0
28 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
29 + m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
30 + m_HaloStrength: 0.5
31 + m_FlareStrength: 1
32 + m_FlareFadeSpeed: 3
33 + m_HaloTexture: {fileID: 0}
34 + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
35 + m_DefaultReflectionMode: 0
36 + m_DefaultReflectionResolution: 128
37 + m_ReflectionBounces: 1
38 + m_ReflectionIntensity: 1
39 + m_CustomReflection: {fileID: 0}
40 + m_Sun: {fileID: 0}
41 + m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
42 + m_UseRadianceAmbientProbe: 0
43 +--- !u!157 &3
44 +LightmapSettings:
45 + m_ObjectHideFlags: 0
46 + serializedVersion: 11
47 + m_GIWorkflowMode: 1
48 + m_GISettings:
49 + serializedVersion: 2
50 + m_BounceScale: 1
51 + m_IndirectOutputScale: 1
52 + m_AlbedoBoost: 1
53 + m_EnvironmentLightingMode: 0
54 + m_EnableBakedLightmaps: 1
55 + m_EnableRealtimeLightmaps: 0
56 + m_LightmapEditorSettings:
57 + serializedVersion: 12
58 + m_Resolution: 2
59 + m_BakeResolution: 40
60 + m_AtlasSize: 1024
61 + m_AO: 0
62 + m_AOMaxDistance: 1
63 + m_CompAOExponent: 1
64 + m_CompAOExponentDirect: 0
65 + m_ExtractAmbientOcclusion: 0
66 + m_Padding: 2
67 + m_LightmapParameters: {fileID: 0}
68 + m_LightmapsBakeMode: 1
69 + m_TextureCompression: 1
70 + m_FinalGather: 0
71 + m_FinalGatherFiltering: 1
72 + m_FinalGatherRayCount: 256
73 + m_ReflectionCompression: 2
74 + m_MixedBakeMode: 2
75 + m_BakeBackend: 1
76 + m_PVRSampling: 1
77 + m_PVRDirectSampleCount: 32
78 + m_PVRSampleCount: 512
79 + m_PVRBounces: 2
80 + m_PVREnvironmentSampleCount: 256
81 + m_PVREnvironmentReferencePointCount: 2048
82 + m_PVRFilteringMode: 1
83 + m_PVRDenoiserTypeDirect: 1
84 + m_PVRDenoiserTypeIndirect: 1
85 + m_PVRDenoiserTypeAO: 1
86 + m_PVRFilterTypeDirect: 0
87 + m_PVRFilterTypeIndirect: 0
88 + m_PVRFilterTypeAO: 0
89 + m_PVREnvironmentMIS: 1
90 + m_PVRCulling: 1
91 + m_PVRFilteringGaussRadiusDirect: 1
92 + m_PVRFilteringGaussRadiusIndirect: 5
93 + m_PVRFilteringGaussRadiusAO: 2
94 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5
95 + m_PVRFilteringAtrousPositionSigmaIndirect: 2
96 + m_PVRFilteringAtrousPositionSigmaAO: 1
97 + m_ExportTrainingData: 0
98 + m_TrainingDataDestination: TrainingData
99 + m_LightProbeSampleCountMultiplier: 4
100 + m_LightingDataAsset: {fileID: 0}
101 + m_UseShadowmask: 1
102 +--- !u!196 &4
103 +NavMeshSettings:
104 + serializedVersion: 2
105 + m_ObjectHideFlags: 0
106 + m_BuildSettings:
107 + serializedVersion: 2
108 + agentTypeID: 0
109 + agentRadius: 0.5
110 + agentHeight: 2
111 + agentSlope: 45
112 + agentClimb: 0.4
113 + ledgeDropHeight: 0
114 + maxJumpAcrossDistance: 0
115 + minRegionArea: 2
116 + manualCellSize: 0
117 + cellSize: 0.16666667
118 + manualTileSize: 0
119 + tileSize: 256
120 + accuratePlacement: 0
121 + debug:
122 + m_Flags: 0
123 + m_NavMeshData: {fileID: 0}
124 +--- !u!1 &72268619
125 +GameObject:
126 + m_ObjectHideFlags: 0
127 + m_CorrespondingSourceObject: {fileID: 0}
128 + m_PrefabInstance: {fileID: 0}
129 + m_PrefabAsset: {fileID: 0}
130 + serializedVersion: 6
131 + m_Component:
132 + - component: {fileID: 72268621}
133 + - component: {fileID: 72268620}
134 + m_Layer: 0
135 + m_Name: Directional Light
136 + m_TagString: Untagged
137 + m_Icon: {fileID: 0}
138 + m_NavMeshLayer: 0
139 + m_StaticEditorFlags: 0
140 + m_IsActive: 1
141 +--- !u!108 &72268620
142 +Light:
143 + m_ObjectHideFlags: 0
144 + m_CorrespondingSourceObject: {fileID: 0}
145 + m_PrefabInstance: {fileID: 0}
146 + m_PrefabAsset: {fileID: 0}
147 + m_GameObject: {fileID: 72268619}
148 + m_Enabled: 1
149 + serializedVersion: 10
150 + m_Type: 1
151 + m_Shape: 0
152 + m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
153 + m_Intensity: 1
154 + m_Range: 10
155 + m_SpotAngle: 30
156 + m_InnerSpotAngle: 21.80208
157 + m_CookieSize: 10
158 + m_Shadows:
159 + m_Type: 2
160 + m_Resolution: -1
161 + m_CustomResolution: -1
162 + m_Strength: 1
163 + m_Bias: 0.05
164 + m_NormalBias: 0.4
165 + m_NearPlane: 0.2
166 + m_CullingMatrixOverride:
167 + e00: 1
168 + e01: 0
169 + e02: 0
170 + e03: 0
171 + e10: 0
172 + e11: 1
173 + e12: 0
174 + e13: 0
175 + e20: 0
176 + e21: 0
177 + e22: 1
178 + e23: 0
179 + e30: 0
180 + e31: 0
181 + e32: 0
182 + e33: 1
183 + m_UseCullingMatrixOverride: 0
184 + m_Cookie: {fileID: 0}
185 + m_DrawHalo: 0
186 + m_Flare: {fileID: 0}
187 + m_RenderMode: 0
188 + m_CullingMask:
189 + serializedVersion: 2
190 + m_Bits: 4294967295
191 + m_RenderingLayerMask: 1
192 + m_Lightmapping: 4
193 + m_LightShadowCasterMode: 0
194 + m_AreaSize: {x: 1, y: 1}
195 + m_BounceIntensity: 1
196 + m_ColorTemperature: 6570
197 + m_UseColorTemperature: 0
198 + m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
199 + m_UseBoundingSphereOverride: 0
200 + m_ShadowRadius: 0
201 + m_ShadowAngle: 0
202 +--- !u!4 &72268621
203 +Transform:
204 + m_ObjectHideFlags: 0
205 + m_CorrespondingSourceObject: {fileID: 0}
206 + m_PrefabInstance: {fileID: 0}
207 + m_PrefabAsset: {fileID: 0}
208 + m_GameObject: {fileID: 72268619}
209 + m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
210 + m_LocalPosition: {x: 4.27, y: 6.31, z: -7.38}
211 + m_LocalScale: {x: 1, y: 1, z: 1}
212 + m_Children: []
213 + m_Father: {fileID: 0}
214 + m_RootOrder: 1
215 + m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
216 +--- !u!1 &78138943
217 +GameObject:
218 + m_ObjectHideFlags: 0
219 + m_CorrespondingSourceObject: {fileID: 0}
220 + m_PrefabInstance: {fileID: 0}
221 + m_PrefabAsset: {fileID: 0}
222 + serializedVersion: 6
223 + m_Component:
224 + - component: {fileID: 78138945}
225 + - component: {fileID: 78138944}
226 + m_Layer: 0
227 + m_Name: Controller
228 + m_TagString: Untagged
229 + m_Icon: {fileID: 0}
230 + m_NavMeshLayer: 0
231 + m_StaticEditorFlags: 0
232 + m_IsActive: 1
233 +--- !u!114 &78138944
234 +MonoBehaviour:
235 + m_ObjectHideFlags: 0
236 + m_CorrespondingSourceObject: {fileID: 0}
237 + m_PrefabInstance: {fileID: 0}
238 + m_PrefabAsset: {fileID: 0}
239 + m_GameObject: {fileID: 78138943}
240 + m_Enabled: 1
241 + m_EditorHideFlags: 0
242 + m_Script: {fileID: 11500000, guid: 819eb0cfd2d3e7c439a730d87e92e292, type: 3}
243 + m_Name:
244 + m_EditorClassIdentifier:
245 + BodySourceManager: {fileID: 1437275810}
246 + Trainnner: {fileID: 1930240349}
247 + Trainnne: {fileID: 2039867598}
248 + mirror: 1
249 + move: 1
250 + IfSpineIsStraight: {fileID: 368216883}
251 + HipBalance: {fileID: 1619135385}
252 + AngleLeftKnee: {fileID: 1666167296}
253 + AngleRightKnee: {fileID: 1169040624}
254 + KneeToeLeft: {fileID: 1975731713}
255 + KneeToeRight: {fileID: 990568286}
256 + LeftLegUp: {fileID: 754789530}
257 + RightLegUp: {fileID: 93800750}
258 +--- !u!4 &78138945
259 +Transform:
260 + m_ObjectHideFlags: 0
261 + m_CorrespondingSourceObject: {fileID: 0}
262 + m_PrefabInstance: {fileID: 0}
263 + m_PrefabAsset: {fileID: 0}
264 + m_GameObject: {fileID: 78138943}
265 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
266 + m_LocalPosition: {x: -0.7337067, y: 1.5634074, z: 4.575219}
267 + m_LocalScale: {x: 1, y: 1, z: 1}
268 + m_Children: []
269 + m_Father: {fileID: 0}
270 + m_RootOrder: 7
271 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
272 +--- !u!1 &93800748
273 +GameObject:
274 + m_ObjectHideFlags: 0
275 + m_CorrespondingSourceObject: {fileID: 0}
276 + m_PrefabInstance: {fileID: 0}
277 + m_PrefabAsset: {fileID: 0}
278 + serializedVersion: 6
279 + m_Component:
280 + - component: {fileID: 93800749}
281 + - component: {fileID: 93800751}
282 + - component: {fileID: 93800750}
283 + m_Layer: 5
284 + m_Name: RightLegUp
285 + m_TagString: Untagged
286 + m_Icon: {fileID: 0}
287 + m_NavMeshLayer: 0
288 + m_StaticEditorFlags: 0
289 + m_IsActive: 1
290 +--- !u!224 &93800749
291 +RectTransform:
292 + m_ObjectHideFlags: 0
293 + m_CorrespondingSourceObject: {fileID: 0}
294 + m_PrefabInstance: {fileID: 0}
295 + m_PrefabAsset: {fileID: 0}
296 + m_GameObject: {fileID: 93800748}
297 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
298 + m_LocalPosition: {x: 0, y: 0, z: 0}
299 + m_LocalScale: {x: 1, y: 1, z: 1}
300 + m_Children: []
301 + m_Father: {fileID: 399429971}
302 + m_RootOrder: 7
303 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
304 + m_AnchorMin: {x: 0.5, y: 0.5}
305 + m_AnchorMax: {x: 0.5, y: 0.5}
306 + m_AnchoredPosition: {x: 0, y: 0}
307 + m_SizeDelta: {x: 160, y: 30}
308 + m_Pivot: {x: 0.5, y: 0.5}
309 +--- !u!114 &93800750
310 +MonoBehaviour:
311 + m_ObjectHideFlags: 0
312 + m_CorrespondingSourceObject: {fileID: 0}
313 + m_PrefabInstance: {fileID: 0}
314 + m_PrefabAsset: {fileID: 0}
315 + m_GameObject: {fileID: 93800748}
316 + m_Enabled: 1
317 + m_EditorHideFlags: 0
318 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
319 + m_Name:
320 + m_EditorClassIdentifier:
321 + m_Material: {fileID: 0}
322 + m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
323 + m_RaycastTarget: 1
324 + m_Maskable: 1
325 + m_OnCullStateChanged:
326 + m_PersistentCalls:
327 + m_Calls: []
328 + m_FontData:
329 + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
330 + m_FontSize: 14
331 + m_FontStyle: 0
332 + m_BestFit: 0
333 + m_MinSize: 10
334 + m_MaxSize: 40
335 + m_Alignment: 0
336 + m_AlignByGeometry: 0
337 + m_RichText: 1
338 + m_HorizontalOverflow: 0
339 + m_VerticalOverflow: 0
340 + m_LineSpacing: 1
341 + m_Text: New Text
342 +--- !u!222 &93800751
343 +CanvasRenderer:
344 + m_ObjectHideFlags: 0
345 + m_CorrespondingSourceObject: {fileID: 0}
346 + m_PrefabInstance: {fileID: 0}
347 + m_PrefabAsset: {fileID: 0}
348 + m_GameObject: {fileID: 93800748}
349 + m_CullTransparentMesh: 0
350 +--- !u!1 &241038935
351 +GameObject:
352 + m_ObjectHideFlags: 0
353 + m_CorrespondingSourceObject: {fileID: 0}
354 + m_PrefabInstance: {fileID: 0}
355 + m_PrefabAsset: {fileID: 0}
356 + serializedVersion: 6
357 + m_Component:
358 + - component: {fileID: 241038938}
359 + - component: {fileID: 241038937}
360 + - component: {fileID: 241038936}
361 + m_Layer: 0
362 + m_Name: Main Camera
363 + m_TagString: MainCamera
364 + m_Icon: {fileID: 0}
365 + m_NavMeshLayer: 0
366 + m_StaticEditorFlags: 0
367 + m_IsActive: 1
368 +--- !u!81 &241038936
369 +AudioListener:
370 + m_ObjectHideFlags: 0
371 + m_CorrespondingSourceObject: {fileID: 0}
372 + m_PrefabInstance: {fileID: 0}
373 + m_PrefabAsset: {fileID: 0}
374 + m_GameObject: {fileID: 241038935}
375 + m_Enabled: 1
376 +--- !u!20 &241038937
377 +Camera:
378 + m_ObjectHideFlags: 0
379 + m_CorrespondingSourceObject: {fileID: 0}
380 + m_PrefabInstance: {fileID: 0}
381 + m_PrefabAsset: {fileID: 0}
382 + m_GameObject: {fileID: 241038935}
383 + m_Enabled: 1
384 + serializedVersion: 2
385 + m_ClearFlags: 1
386 + m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
387 + m_projectionMatrixMode: 1
388 + m_GateFitMode: 2
389 + m_FOVAxisMode: 0
390 + m_SensorSize: {x: 36, y: 24}
391 + m_LensShift: {x: 0, y: 0}
392 + m_FocalLength: 50
393 + m_NormalizedViewPortRect:
394 + serializedVersion: 2
395 + x: 0
396 + y: 0
397 + width: 1
398 + height: 1
399 + near clip plane: 0.3
400 + far clip plane: 1000
401 + field of view: 60
402 + orthographic: 0
403 + orthographic size: 5
404 + m_Depth: -1
405 + m_CullingMask:
406 + serializedVersion: 2
407 + m_Bits: 4294967295
408 + m_RenderingPath: -1
409 + m_TargetTexture: {fileID: 0}
410 + m_TargetDisplay: 0
411 + m_TargetEye: 3
412 + m_HDR: 1
413 + m_AllowMSAA: 1
414 + m_AllowDynamicResolution: 0
415 + m_ForceIntoRT: 0
416 + m_OcclusionCulling: 1
417 + m_StereoConvergence: 10
418 + m_StereoSeparation: 0.022
419 +--- !u!4 &241038938
420 +Transform:
421 + m_ObjectHideFlags: 0
422 + m_CorrespondingSourceObject: {fileID: 0}
423 + m_PrefabInstance: {fileID: 0}
424 + m_PrefabAsset: {fileID: 0}
425 + m_GameObject: {fileID: 241038935}
426 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
427 + m_LocalPosition: {x: 0, y: -4.5, z: -13.2}
428 + m_LocalScale: {x: 2, y: 2, z: 2}
429 + m_Children: []
430 + m_Father: {fileID: 0}
431 + m_RootOrder: 0
432 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
433 +--- !u!1 &339505467 stripped
434 +GameObject:
435 + m_CorrespondingSourceObject: {fileID: -927199367670048503, guid: 2fabf5256d4e0f64183020c8a537dc3f,
436 + type: 3}
437 + m_PrefabInstance: {fileID: 1406767318}
438 + m_PrefabAsset: {fileID: 0}
439 +--- !u!1 &368216881
440 +GameObject:
441 + m_ObjectHideFlags: 0
442 + m_CorrespondingSourceObject: {fileID: 0}
443 + m_PrefabInstance: {fileID: 0}
444 + m_PrefabAsset: {fileID: 0}
445 + serializedVersion: 6
446 + m_Component:
447 + - component: {fileID: 368216882}
448 + - component: {fileID: 368216884}
449 + - component: {fileID: 368216883}
450 + m_Layer: 5
451 + m_Name: IfSpinelsStraight
452 + m_TagString: Untagged
453 + m_Icon: {fileID: 0}
454 + m_NavMeshLayer: 0
455 + m_StaticEditorFlags: 0
456 + m_IsActive: 1
457 +--- !u!224 &368216882
458 +RectTransform:
459 + m_ObjectHideFlags: 0
460 + m_CorrespondingSourceObject: {fileID: 0}
461 + m_PrefabInstance: {fileID: 0}
462 + m_PrefabAsset: {fileID: 0}
463 + m_GameObject: {fileID: 368216881}
464 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
465 + m_LocalPosition: {x: 0, y: 0, z: 0}
466 + m_LocalScale: {x: 1, y: 1, z: 1}
467 + m_Children: []
468 + m_Father: {fileID: 399429971}
469 + m_RootOrder: 0
470 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
471 + m_AnchorMin: {x: 0.5, y: 0.5}
472 + m_AnchorMax: {x: 0.5, y: 0.5}
473 + m_AnchoredPosition: {x: 0, y: 0}
474 + m_SizeDelta: {x: 160, y: 30}
475 + m_Pivot: {x: 0.5, y: 0.5}
476 +--- !u!114 &368216883
477 +MonoBehaviour:
478 + m_ObjectHideFlags: 0
479 + m_CorrespondingSourceObject: {fileID: 0}
480 + m_PrefabInstance: {fileID: 0}
481 + m_PrefabAsset: {fileID: 0}
482 + m_GameObject: {fileID: 368216881}
483 + m_Enabled: 1
484 + m_EditorHideFlags: 0
485 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
486 + m_Name:
487 + m_EditorClassIdentifier:
488 + m_Material: {fileID: 0}
489 + m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
490 + m_RaycastTarget: 1
491 + m_Maskable: 1
492 + m_OnCullStateChanged:
493 + m_PersistentCalls:
494 + m_Calls: []
495 + m_FontData:
496 + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
497 + m_FontSize: 14
498 + m_FontStyle: 0
499 + m_BestFit: 0
500 + m_MinSize: 10
501 + m_MaxSize: 40
502 + m_Alignment: 0
503 + m_AlignByGeometry: 0
504 + m_RichText: 1
505 + m_HorizontalOverflow: 0
506 + m_VerticalOverflow: 0
507 + m_LineSpacing: 1
508 + m_Text: New Text
509 +--- !u!222 &368216884
510 +CanvasRenderer:
511 + m_ObjectHideFlags: 0
512 + m_CorrespondingSourceObject: {fileID: 0}
513 + m_PrefabInstance: {fileID: 0}
514 + m_PrefabAsset: {fileID: 0}
515 + m_GameObject: {fileID: 368216881}
516 + m_CullTransparentMesh: 0
517 +--- !u!1 &399429967
518 +GameObject:
519 + m_ObjectHideFlags: 0
520 + m_CorrespondingSourceObject: {fileID: 0}
521 + m_PrefabInstance: {fileID: 0}
522 + m_PrefabAsset: {fileID: 0}
523 + serializedVersion: 6
524 + m_Component:
525 + - component: {fileID: 399429971}
526 + - component: {fileID: 399429970}
527 + - component: {fileID: 399429969}
528 + - component: {fileID: 399429968}
529 + m_Layer: 5
530 + m_Name: Canvas
531 + m_TagString: Untagged
532 + m_Icon: {fileID: 0}
533 + m_NavMeshLayer: 0
534 + m_StaticEditorFlags: 0
535 + m_IsActive: 1
536 +--- !u!114 &399429968
537 +MonoBehaviour:
538 + m_ObjectHideFlags: 0
539 + m_CorrespondingSourceObject: {fileID: 0}
540 + m_PrefabInstance: {fileID: 0}
541 + m_PrefabAsset: {fileID: 0}
542 + m_GameObject: {fileID: 399429967}
543 + m_Enabled: 1
544 + m_EditorHideFlags: 0
545 + m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3}
546 + m_Name:
547 + m_EditorClassIdentifier:
548 + m_IgnoreReversedGraphics: 1
549 + m_BlockingObjects: 0
550 + m_BlockingMask:
551 + serializedVersion: 2
552 + m_Bits: 4294967295
553 +--- !u!114 &399429969
554 +MonoBehaviour:
555 + m_ObjectHideFlags: 0
556 + m_CorrespondingSourceObject: {fileID: 0}
557 + m_PrefabInstance: {fileID: 0}
558 + m_PrefabAsset: {fileID: 0}
559 + m_GameObject: {fileID: 399429967}
560 + m_Enabled: 1
561 + m_EditorHideFlags: 0
562 + m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
563 + m_Name:
564 + m_EditorClassIdentifier:
565 + m_UiScaleMode: 0
566 + m_ReferencePixelsPerUnit: 100
567 + m_ScaleFactor: 1
568 + m_ReferenceResolution: {x: 800, y: 600}
569 + m_ScreenMatchMode: 0
570 + m_MatchWidthOrHeight: 0
571 + m_PhysicalUnit: 3
572 + m_FallbackScreenDPI: 96
573 + m_DefaultSpriteDPI: 96
574 + m_DynamicPixelsPerUnit: 1
575 +--- !u!223 &399429970
576 +Canvas:
577 + m_ObjectHideFlags: 0
578 + m_CorrespondingSourceObject: {fileID: 0}
579 + m_PrefabInstance: {fileID: 0}
580 + m_PrefabAsset: {fileID: 0}
581 + m_GameObject: {fileID: 399429967}
582 + m_Enabled: 1
583 + serializedVersion: 3
584 + m_RenderMode: 0
585 + m_Camera: {fileID: 0}
586 + m_PlaneDistance: 100
587 + m_PixelPerfect: 0
588 + m_ReceivesEvents: 1
589 + m_OverrideSorting: 0
590 + m_OverridePixelPerfect: 0
591 + m_SortingBucketNormalizedSize: 0
592 + m_AdditionalShaderChannelsFlag: 0
593 + m_SortingLayerID: 0
594 + m_SortingOrder: 0
595 + m_TargetDisplay: 0
596 +--- !u!224 &399429971
597 +RectTransform:
598 + m_ObjectHideFlags: 0
599 + m_CorrespondingSourceObject: {fileID: 0}
600 + m_PrefabInstance: {fileID: 0}
601 + m_PrefabAsset: {fileID: 0}
602 + m_GameObject: {fileID: 399429967}
603 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
604 + m_LocalPosition: {x: 0, y: 0, z: 0}
605 + m_LocalScale: {x: 0, y: 0, z: 0}
606 + m_Children:
607 + - {fileID: 368216882}
608 + - {fileID: 1619135384}
609 + - {fileID: 1666167295}
610 + - {fileID: 1169040623}
611 + - {fileID: 1975731712}
612 + - {fileID: 990568285}
613 + - {fileID: 754789529}
614 + - {fileID: 93800749}
615 + m_Father: {fileID: 0}
616 + m_RootOrder: 10
617 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
618 + m_AnchorMin: {x: 0, y: 0}
619 + m_AnchorMax: {x: 0, y: 0}
620 + m_AnchoredPosition: {x: 0, y: 0}
621 + m_SizeDelta: {x: 0, y: 0}
622 + m_Pivot: {x: 0, y: 0}
623 +--- !u!1 &754789528
624 +GameObject:
625 + m_ObjectHideFlags: 0
626 + m_CorrespondingSourceObject: {fileID: 0}
627 + m_PrefabInstance: {fileID: 0}
628 + m_PrefabAsset: {fileID: 0}
629 + serializedVersion: 6
630 + m_Component:
631 + - component: {fileID: 754789529}
632 + - component: {fileID: 754789531}
633 + - component: {fileID: 754789530}
634 + m_Layer: 5
635 + m_Name: LeftLegUp
636 + m_TagString: Untagged
637 + m_Icon: {fileID: 0}
638 + m_NavMeshLayer: 0
639 + m_StaticEditorFlags: 0
640 + m_IsActive: 1
641 +--- !u!224 &754789529
642 +RectTransform:
643 + m_ObjectHideFlags: 0
644 + m_CorrespondingSourceObject: {fileID: 0}
645 + m_PrefabInstance: {fileID: 0}
646 + m_PrefabAsset: {fileID: 0}
647 + m_GameObject: {fileID: 754789528}
648 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
649 + m_LocalPosition: {x: 0, y: 0, z: 0}
650 + m_LocalScale: {x: 1, y: 1, z: 1}
651 + m_Children: []
652 + m_Father: {fileID: 399429971}
653 + m_RootOrder: 6
654 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
655 + m_AnchorMin: {x: 0.5, y: 0.5}
656 + m_AnchorMax: {x: 0.5, y: 0.5}
657 + m_AnchoredPosition: {x: 0, y: 0}
658 + m_SizeDelta: {x: 160, y: 30}
659 + m_Pivot: {x: 0.5, y: 0.5}
660 +--- !u!114 &754789530
661 +MonoBehaviour:
662 + m_ObjectHideFlags: 0
663 + m_CorrespondingSourceObject: {fileID: 0}
664 + m_PrefabInstance: {fileID: 0}
665 + m_PrefabAsset: {fileID: 0}
666 + m_GameObject: {fileID: 754789528}
667 + m_Enabled: 1
668 + m_EditorHideFlags: 0
669 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
670 + m_Name:
671 + m_EditorClassIdentifier:
672 + m_Material: {fileID: 0}
673 + m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
674 + m_RaycastTarget: 1
675 + m_Maskable: 1
676 + m_OnCullStateChanged:
677 + m_PersistentCalls:
678 + m_Calls: []
679 + m_FontData:
680 + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
681 + m_FontSize: 14
682 + m_FontStyle: 0
683 + m_BestFit: 0
684 + m_MinSize: 10
685 + m_MaxSize: 40
686 + m_Alignment: 0
687 + m_AlignByGeometry: 0
688 + m_RichText: 1
689 + m_HorizontalOverflow: 0
690 + m_VerticalOverflow: 0
691 + m_LineSpacing: 1
692 + m_Text: New Text
693 +--- !u!222 &754789531
694 +CanvasRenderer:
695 + m_ObjectHideFlags: 0
696 + m_CorrespondingSourceObject: {fileID: 0}
697 + m_PrefabInstance: {fileID: 0}
698 + m_PrefabAsset: {fileID: 0}
699 + m_GameObject: {fileID: 754789528}
700 + m_CullTransparentMesh: 0
701 +--- !u!1 &990568284
702 +GameObject:
703 + m_ObjectHideFlags: 0
704 + m_CorrespondingSourceObject: {fileID: 0}
705 + m_PrefabInstance: {fileID: 0}
706 + m_PrefabAsset: {fileID: 0}
707 + serializedVersion: 6
708 + m_Component:
709 + - component: {fileID: 990568285}
710 + - component: {fileID: 990568287}
711 + - component: {fileID: 990568286}
712 + m_Layer: 5
713 + m_Name: KneeToeRight
714 + m_TagString: Untagged
715 + m_Icon: {fileID: 0}
716 + m_NavMeshLayer: 0
717 + m_StaticEditorFlags: 0
718 + m_IsActive: 1
719 +--- !u!224 &990568285
720 +RectTransform:
721 + m_ObjectHideFlags: 0
722 + m_CorrespondingSourceObject: {fileID: 0}
723 + m_PrefabInstance: {fileID: 0}
724 + m_PrefabAsset: {fileID: 0}
725 + m_GameObject: {fileID: 990568284}
726 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
727 + m_LocalPosition: {x: 0, y: 0, z: 0}
728 + m_LocalScale: {x: 1, y: 1, z: 1}
729 + m_Children: []
730 + m_Father: {fileID: 399429971}
731 + m_RootOrder: 5
732 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
733 + m_AnchorMin: {x: 0.5, y: 0.5}
734 + m_AnchorMax: {x: 0.5, y: 0.5}
735 + m_AnchoredPosition: {x: 0, y: 0}
736 + m_SizeDelta: {x: 160, y: 30}
737 + m_Pivot: {x: 0.5, y: 0.5}
738 +--- !u!114 &990568286
739 +MonoBehaviour:
740 + m_ObjectHideFlags: 0
741 + m_CorrespondingSourceObject: {fileID: 0}
742 + m_PrefabInstance: {fileID: 0}
743 + m_PrefabAsset: {fileID: 0}
744 + m_GameObject: {fileID: 990568284}
745 + m_Enabled: 1
746 + m_EditorHideFlags: 0
747 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
748 + m_Name:
749 + m_EditorClassIdentifier:
750 + m_Material: {fileID: 0}
751 + m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
752 + m_RaycastTarget: 1
753 + m_Maskable: 1
754 + m_OnCullStateChanged:
755 + m_PersistentCalls:
756 + m_Calls: []
757 + m_FontData:
758 + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
759 + m_FontSize: 14
760 + m_FontStyle: 0
761 + m_BestFit: 0
762 + m_MinSize: 10
763 + m_MaxSize: 40
764 + m_Alignment: 0
765 + m_AlignByGeometry: 0
766 + m_RichText: 1
767 + m_HorizontalOverflow: 0
768 + m_VerticalOverflow: 0
769 + m_LineSpacing: 1
770 + m_Text: New Text
771 +--- !u!222 &990568287
772 +CanvasRenderer:
773 + m_ObjectHideFlags: 0
774 + m_CorrespondingSourceObject: {fileID: 0}
775 + m_PrefabInstance: {fileID: 0}
776 + m_PrefabAsset: {fileID: 0}
777 + m_GameObject: {fileID: 990568284}
778 + m_CullTransparentMesh: 0
779 +--- !u!1 &1169040622
780 +GameObject:
781 + m_ObjectHideFlags: 0
782 + m_CorrespondingSourceObject: {fileID: 0}
783 + m_PrefabInstance: {fileID: 0}
784 + m_PrefabAsset: {fileID: 0}
785 + serializedVersion: 6
786 + m_Component:
787 + - component: {fileID: 1169040623}
788 + - component: {fileID: 1169040625}
789 + - component: {fileID: 1169040624}
790 + m_Layer: 5
791 + m_Name: AngleRightKnee
792 + m_TagString: Untagged
793 + m_Icon: {fileID: 0}
794 + m_NavMeshLayer: 0
795 + m_StaticEditorFlags: 0
796 + m_IsActive: 1
797 +--- !u!224 &1169040623
798 +RectTransform:
799 + m_ObjectHideFlags: 0
800 + m_CorrespondingSourceObject: {fileID: 0}
801 + m_PrefabInstance: {fileID: 0}
802 + m_PrefabAsset: {fileID: 0}
803 + m_GameObject: {fileID: 1169040622}
804 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
805 + m_LocalPosition: {x: 0, y: 0, z: 0}
806 + m_LocalScale: {x: 1, y: 1, z: 1}
807 + m_Children: []
808 + m_Father: {fileID: 399429971}
809 + m_RootOrder: 3
810 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
811 + m_AnchorMin: {x: 0.5, y: 0.5}
812 + m_AnchorMax: {x: 0.5, y: 0.5}
813 + m_AnchoredPosition: {x: 0, y: 0}
814 + m_SizeDelta: {x: 160, y: 30}
815 + m_Pivot: {x: 0.5, y: 0.5}
816 +--- !u!114 &1169040624
817 +MonoBehaviour:
818 + m_ObjectHideFlags: 0
819 + m_CorrespondingSourceObject: {fileID: 0}
820 + m_PrefabInstance: {fileID: 0}
821 + m_PrefabAsset: {fileID: 0}
822 + m_GameObject: {fileID: 1169040622}
823 + m_Enabled: 1
824 + m_EditorHideFlags: 0
825 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
826 + m_Name:
827 + m_EditorClassIdentifier:
828 + m_Material: {fileID: 0}
829 + m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
830 + m_RaycastTarget: 1
831 + m_Maskable: 1
832 + m_OnCullStateChanged:
833 + m_PersistentCalls:
834 + m_Calls: []
835 + m_FontData:
836 + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
837 + m_FontSize: 14
838 + m_FontStyle: 0
839 + m_BestFit: 0
840 + m_MinSize: 10
841 + m_MaxSize: 40
842 + m_Alignment: 0
843 + m_AlignByGeometry: 0
844 + m_RichText: 1
845 + m_HorizontalOverflow: 0
846 + m_VerticalOverflow: 0
847 + m_LineSpacing: 1
848 + m_Text: New Text
849 +--- !u!222 &1169040625
850 +CanvasRenderer:
851 + m_ObjectHideFlags: 0
852 + m_CorrespondingSourceObject: {fileID: 0}
853 + m_PrefabInstance: {fileID: 0}
854 + m_PrefabAsset: {fileID: 0}
855 + m_GameObject: {fileID: 1169040622}
856 + m_CullTransparentMesh: 0
857 +--- !u!1 &1393434479
858 +GameObject:
859 + m_ObjectHideFlags: 0
860 + m_CorrespondingSourceObject: {fileID: 0}
861 + m_PrefabInstance: {fileID: 0}
862 + m_PrefabAsset: {fileID: 0}
863 + serializedVersion: 6
864 + m_Component:
865 + - component: {fileID: 1393434482}
866 + - component: {fileID: 1393434481}
867 + - component: {fileID: 1393434480}
868 + m_Layer: 0
869 + m_Name: EventSystem
870 + m_TagString: Untagged
871 + m_Icon: {fileID: 0}
872 + m_NavMeshLayer: 0
873 + m_StaticEditorFlags: 0
874 + m_IsActive: 1
875 +--- !u!114 &1393434480
876 +MonoBehaviour:
877 + m_ObjectHideFlags: 0
878 + m_CorrespondingSourceObject: {fileID: 0}
879 + m_PrefabInstance: {fileID: 0}
880 + m_PrefabAsset: {fileID: 0}
881 + m_GameObject: {fileID: 1393434479}
882 + m_Enabled: 1
883 + m_EditorHideFlags: 0
884 + m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3}
885 + m_Name:
886 + m_EditorClassIdentifier:
887 + m_HorizontalAxis: Horizontal
888 + m_VerticalAxis: Vertical
889 + m_SubmitButton: Submit
890 + m_CancelButton: Cancel
891 + m_InputActionsPerSecond: 10
892 + m_RepeatDelay: 0.5
893 + m_ForceModuleActive: 0
894 +--- !u!114 &1393434481
895 +MonoBehaviour:
896 + m_ObjectHideFlags: 0
897 + m_CorrespondingSourceObject: {fileID: 0}
898 + m_PrefabInstance: {fileID: 0}
899 + m_PrefabAsset: {fileID: 0}
900 + m_GameObject: {fileID: 1393434479}
901 + m_Enabled: 1
902 + m_EditorHideFlags: 0
903 + m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3}
904 + m_Name:
905 + m_EditorClassIdentifier:
906 + m_FirstSelected: {fileID: 0}
907 + m_sendNavigationEvents: 1
908 + m_DragThreshold: 10
909 +--- !u!4 &1393434482
910 +Transform:
911 + m_ObjectHideFlags: 0
912 + m_CorrespondingSourceObject: {fileID: 0}
913 + m_PrefabInstance: {fileID: 0}
914 + m_PrefabAsset: {fileID: 0}
915 + m_GameObject: {fileID: 1393434479}
916 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
917 + m_LocalPosition: {x: 0, y: 0, z: 0}
918 + m_LocalScale: {x: 1, y: 1, z: 1}
919 + m_Children: []
920 + m_Father: {fileID: 0}
921 + m_RootOrder: 11
922 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
923 +--- !u!1001 &1406767318
924 +PrefabInstance:
925 + m_ObjectHideFlags: 0
926 + serializedVersion: 2
927 + m_Modification:
928 + m_TransformParent: {fileID: 0}
929 + m_Modifications:
930 + - target: {fileID: -4216859302048453862, guid: 2fabf5256d4e0f64183020c8a537dc3f,
931 + type: 3}
932 + propertyPath: m_LocalPosition.x
933 + value: 1
934 + objectReference: {fileID: 0}
935 + - target: {fileID: -4216859302048453862, guid: 2fabf5256d4e0f64183020c8a537dc3f,
936 + type: 3}
937 + propertyPath: m_LocalPosition.y
938 + value: 0
939 + objectReference: {fileID: 0}
940 + - target: {fileID: -4216859302048453862, guid: 2fabf5256d4e0f64183020c8a537dc3f,
941 + type: 3}
942 + propertyPath: m_LocalPosition.z
943 + value: 0
944 + objectReference: {fileID: 0}
945 + - target: {fileID: -4216859302048453862, guid: 2fabf5256d4e0f64183020c8a537dc3f,
946 + type: 3}
947 + propertyPath: m_LocalRotation.x
948 + value: 0
949 + objectReference: {fileID: 0}
950 + - target: {fileID: -4216859302048453862, guid: 2fabf5256d4e0f64183020c8a537dc3f,
951 + type: 3}
952 + propertyPath: m_LocalRotation.y
953 + value: 1
954 + objectReference: {fileID: 0}
955 + - target: {fileID: -4216859302048453862, guid: 2fabf5256d4e0f64183020c8a537dc3f,
956 + type: 3}
957 + propertyPath: m_LocalRotation.z
958 + value: 0
959 + objectReference: {fileID: 0}
960 + - target: {fileID: -4216859302048453862, guid: 2fabf5256d4e0f64183020c8a537dc3f,
961 + type: 3}
962 + propertyPath: m_LocalRotation.w
963 + value: 0
964 + objectReference: {fileID: 0}
965 + - target: {fileID: -4216859302048453862, guid: 2fabf5256d4e0f64183020c8a537dc3f,
966 + type: 3}
967 + propertyPath: m_RootOrder
968 + value: 5
969 + objectReference: {fileID: 0}
970 + - target: {fileID: -4216859302048453862, guid: 2fabf5256d4e0f64183020c8a537dc3f,
971 + type: 3}
972 + propertyPath: m_LocalEulerAnglesHint.x
973 + value: 0
974 + objectReference: {fileID: 0}
975 + - target: {fileID: -4216859302048453862, guid: 2fabf5256d4e0f64183020c8a537dc3f,
976 + type: 3}
977 + propertyPath: m_LocalEulerAnglesHint.y
978 + value: 180
979 + objectReference: {fileID: 0}
980 + - target: {fileID: -4216859302048453862, guid: 2fabf5256d4e0f64183020c8a537dc3f,
981 + type: 3}
982 + propertyPath: m_LocalEulerAnglesHint.z
983 + value: 0
984 + objectReference: {fileID: 0}
985 + - target: {fileID: -927199367670048503, guid: 2fabf5256d4e0f64183020c8a537dc3f,
986 + type: 3}
987 + propertyPath: m_Name
988 + value: Trainee
989 + objectReference: {fileID: 0}
990 + - target: {fileID: -927199367670048503, guid: 2fabf5256d4e0f64183020c8a537dc3f,
991 + type: 3}
992 + propertyPath: m_IsActive
993 + value: 0
994 + objectReference: {fileID: 0}
995 + m_RemovedComponents: []
996 + m_SourcePrefab: {fileID: 100100000, guid: 2fabf5256d4e0f64183020c8a537dc3f, type: 3}
997 +--- !u!1 &1437275810
998 +GameObject:
999 + m_ObjectHideFlags: 0
1000 + m_CorrespondingSourceObject: {fileID: 0}
1001 + m_PrefabInstance: {fileID: 0}
1002 + m_PrefabAsset: {fileID: 0}
1003 + serializedVersion: 6
1004 + m_Component:
1005 + - component: {fileID: 1437275812}
1006 + - component: {fileID: 1437275811}
1007 + m_Layer: 0
1008 + m_Name: BodySourceManager
1009 + m_TagString: Untagged
1010 + m_Icon: {fileID: 0}
1011 + m_NavMeshLayer: 0
1012 + m_StaticEditorFlags: 0
1013 + m_IsActive: 1
1014 +--- !u!114 &1437275811
1015 +MonoBehaviour:
1016 + m_ObjectHideFlags: 0
1017 + m_CorrespondingSourceObject: {fileID: 0}
1018 + m_PrefabInstance: {fileID: 0}
1019 + m_PrefabAsset: {fileID: 0}
1020 + m_GameObject: {fileID: 1437275810}
1021 + m_Enabled: 1
1022 + m_EditorHideFlags: 0
1023 + m_Script: {fileID: 11500000, guid: 2e74aed0503c9d24290a1ae5438fddc3, type: 3}
1024 + m_Name:
1025 + m_EditorClassIdentifier:
1026 +--- !u!4 &1437275812
1027 +Transform:
1028 + m_ObjectHideFlags: 0
1029 + m_CorrespondingSourceObject: {fileID: 0}
1030 + m_PrefabInstance: {fileID: 0}
1031 + m_PrefabAsset: {fileID: 0}
1032 + m_GameObject: {fileID: 1437275810}
1033 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
1034 + m_LocalPosition: {x: 0, y: 0, z: 0}
1035 + m_LocalScale: {x: 1, y: 1, z: 1}
1036 + m_Children: []
1037 + m_Father: {fileID: 0}
1038 + m_RootOrder: 4
1039 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1040 +--- !u!1 &1619135383
1041 +GameObject:
1042 + m_ObjectHideFlags: 0
1043 + m_CorrespondingSourceObject: {fileID: 0}
1044 + m_PrefabInstance: {fileID: 0}
1045 + m_PrefabAsset: {fileID: 0}
1046 + serializedVersion: 6
1047 + m_Component:
1048 + - component: {fileID: 1619135384}
1049 + - component: {fileID: 1619135386}
1050 + - component: {fileID: 1619135385}
1051 + m_Layer: 5
1052 + m_Name: HipBalance
1053 + m_TagString: Untagged
1054 + m_Icon: {fileID: 0}
1055 + m_NavMeshLayer: 0
1056 + m_StaticEditorFlags: 0
1057 + m_IsActive: 1
1058 +--- !u!224 &1619135384
1059 +RectTransform:
1060 + m_ObjectHideFlags: 0
1061 + m_CorrespondingSourceObject: {fileID: 0}
1062 + m_PrefabInstance: {fileID: 0}
1063 + m_PrefabAsset: {fileID: 0}
1064 + m_GameObject: {fileID: 1619135383}
1065 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
1066 + m_LocalPosition: {x: 0, y: 0, z: 0}
1067 + m_LocalScale: {x: 1, y: 1, z: 1}
1068 + m_Children: []
1069 + m_Father: {fileID: 399429971}
1070 + m_RootOrder: 1
1071 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1072 + m_AnchorMin: {x: 0.5, y: 0.5}
1073 + m_AnchorMax: {x: 0.5, y: 0.5}
1074 + m_AnchoredPosition: {x: 0, y: 0}
1075 + m_SizeDelta: {x: 160, y: 30}
1076 + m_Pivot: {x: 0.5, y: 0.5}
1077 +--- !u!114 &1619135385
1078 +MonoBehaviour:
1079 + m_ObjectHideFlags: 0
1080 + m_CorrespondingSourceObject: {fileID: 0}
1081 + m_PrefabInstance: {fileID: 0}
1082 + m_PrefabAsset: {fileID: 0}
1083 + m_GameObject: {fileID: 1619135383}
1084 + m_Enabled: 1
1085 + m_EditorHideFlags: 0
1086 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
1087 + m_Name:
1088 + m_EditorClassIdentifier:
1089 + m_Material: {fileID: 0}
1090 + m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
1091 + m_RaycastTarget: 1
1092 + m_Maskable: 1
1093 + m_OnCullStateChanged:
1094 + m_PersistentCalls:
1095 + m_Calls: []
1096 + m_FontData:
1097 + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
1098 + m_FontSize: 14
1099 + m_FontStyle: 0
1100 + m_BestFit: 0
1101 + m_MinSize: 10
1102 + m_MaxSize: 40
1103 + m_Alignment: 0
1104 + m_AlignByGeometry: 0
1105 + m_RichText: 1
1106 + m_HorizontalOverflow: 0
1107 + m_VerticalOverflow: 0
1108 + m_LineSpacing: 1
1109 + m_Text: New Text
1110 +--- !u!222 &1619135386
1111 +CanvasRenderer:
1112 + m_ObjectHideFlags: 0
1113 + m_CorrespondingSourceObject: {fileID: 0}
1114 + m_PrefabInstance: {fileID: 0}
1115 + m_PrefabAsset: {fileID: 0}
1116 + m_GameObject: {fileID: 1619135383}
1117 + m_CullTransparentMesh: 0
1118 +--- !u!1 &1642118724
1119 +GameObject:
1120 + m_ObjectHideFlags: 0
1121 + m_CorrespondingSourceObject: {fileID: 0}
1122 + m_PrefabInstance: {fileID: 0}
1123 + m_PrefabAsset: {fileID: 0}
1124 + serializedVersion: 6
1125 + m_Component:
1126 + - component: {fileID: 1642118726}
1127 + - component: {fileID: 1642118725}
1128 + m_Layer: 0
1129 + m_Name: background_0
1130 + m_TagString: Untagged
1131 + m_Icon: {fileID: 0}
1132 + m_NavMeshLayer: 0
1133 + m_StaticEditorFlags: 0
1134 + m_IsActive: 1
1135 +--- !u!212 &1642118725
1136 +SpriteRenderer:
1137 + m_ObjectHideFlags: 0
1138 + m_CorrespondingSourceObject: {fileID: 0}
1139 + m_PrefabInstance: {fileID: 0}
1140 + m_PrefabAsset: {fileID: 0}
1141 + m_GameObject: {fileID: 1642118724}
1142 + m_Enabled: 1
1143 + m_CastShadows: 0
1144 + m_ReceiveShadows: 0
1145 + m_DynamicOccludee: 1
1146 + m_MotionVectors: 1
1147 + m_LightProbeUsage: 1
1148 + m_ReflectionProbeUsage: 1
1149 + m_RayTracingMode: 0
1150 + m_RenderingLayerMask: 1
1151 + m_RendererPriority: 0
1152 + m_Materials:
1153 + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
1154 + m_StaticBatchInfo:
1155 + firstSubMesh: 0
1156 + subMeshCount: 0
1157 + m_StaticBatchRoot: {fileID: 0}
1158 + m_ProbeAnchor: {fileID: 0}
1159 + m_LightProbeVolumeOverride: {fileID: 0}
1160 + m_ScaleInLightmap: 1
1161 + m_ReceiveGI: 1
1162 + m_PreserveUVs: 0
1163 + m_IgnoreNormalsForChartDetection: 0
1164 + m_ImportantGI: 0
1165 + m_StitchLightmapSeams: 1
1166 + m_SelectedEditorRenderState: 0
1167 + m_MinimumChartSize: 4
1168 + m_AutoUVMaxDistance: 0.5
1169 + m_AutoUVMaxAngle: 89
1170 + m_LightmapParameters: {fileID: 0}
1171 + m_SortingLayerID: 0
1172 + m_SortingLayer: 0
1173 + m_SortingOrder: 0
1174 + m_Sprite: {fileID: 2137036525185428800, guid: 00009b24b41268f4fb267f8e83771836,
1175 + type: 3}
1176 + m_Color: {r: 1, g: 1, b: 1, a: 1}
1177 + m_FlipX: 0
1178 + m_FlipY: 0
1179 + m_DrawMode: 0
1180 + m_Size: {x: 2.72, y: 1.85}
1181 + m_AdaptiveModeThreshold: 0.5
1182 + m_SpriteTileMode: 0
1183 + m_WasSpriteAssigned: 1
1184 + m_MaskInteraction: 0
1185 + m_SpriteSortPoint: 0
1186 +--- !u!4 &1642118726
1187 +Transform:
1188 + m_ObjectHideFlags: 0
1189 + m_CorrespondingSourceObject: {fileID: 0}
1190 + m_PrefabInstance: {fileID: 0}
1191 + m_PrefabAsset: {fileID: 0}
1192 + m_GameObject: {fileID: 1642118724}
1193 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
1194 + m_LocalPosition: {x: 0, y: -4, z: 0}
1195 + m_LocalScale: {x: 5.1, y: 3.5, z: 1}
1196 + m_Children: []
1197 + m_Father: {fileID: 0}
1198 + m_RootOrder: 9
1199 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1200 +--- !u!1 &1666167294
1201 +GameObject:
1202 + m_ObjectHideFlags: 0
1203 + m_CorrespondingSourceObject: {fileID: 0}
1204 + m_PrefabInstance: {fileID: 0}
1205 + m_PrefabAsset: {fileID: 0}
1206 + serializedVersion: 6
1207 + m_Component:
1208 + - component: {fileID: 1666167295}
1209 + - component: {fileID: 1666167297}
1210 + - component: {fileID: 1666167296}
1211 + m_Layer: 5
1212 + m_Name: AngleLeftKnee
1213 + m_TagString: Untagged
1214 + m_Icon: {fileID: 0}
1215 + m_NavMeshLayer: 0
1216 + m_StaticEditorFlags: 0
1217 + m_IsActive: 1
1218 +--- !u!224 &1666167295
1219 +RectTransform:
1220 + m_ObjectHideFlags: 0
1221 + m_CorrespondingSourceObject: {fileID: 0}
1222 + m_PrefabInstance: {fileID: 0}
1223 + m_PrefabAsset: {fileID: 0}
1224 + m_GameObject: {fileID: 1666167294}
1225 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
1226 + m_LocalPosition: {x: 0, y: 0, z: 0}
1227 + m_LocalScale: {x: 1, y: 1, z: 1}
1228 + m_Children: []
1229 + m_Father: {fileID: 399429971}
1230 + m_RootOrder: 2
1231 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1232 + m_AnchorMin: {x: 0.5, y: 0.5}
1233 + m_AnchorMax: {x: 0.5, y: 0.5}
1234 + m_AnchoredPosition: {x: 0, y: 0}
1235 + m_SizeDelta: {x: 160, y: 30}
1236 + m_Pivot: {x: 0.5, y: 0.5}
1237 +--- !u!114 &1666167296
1238 +MonoBehaviour:
1239 + m_ObjectHideFlags: 0
1240 + m_CorrespondingSourceObject: {fileID: 0}
1241 + m_PrefabInstance: {fileID: 0}
1242 + m_PrefabAsset: {fileID: 0}
1243 + m_GameObject: {fileID: 1666167294}
1244 + m_Enabled: 1
1245 + m_EditorHideFlags: 0
1246 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
1247 + m_Name:
1248 + m_EditorClassIdentifier:
1249 + m_Material: {fileID: 0}
1250 + m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
1251 + m_RaycastTarget: 1
1252 + m_Maskable: 1
1253 + m_OnCullStateChanged:
1254 + m_PersistentCalls:
1255 + m_Calls: []
1256 + m_FontData:
1257 + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
1258 + m_FontSize: 14
1259 + m_FontStyle: 0
1260 + m_BestFit: 0
1261 + m_MinSize: 10
1262 + m_MaxSize: 40
1263 + m_Alignment: 0
1264 + m_AlignByGeometry: 0
1265 + m_RichText: 1
1266 + m_HorizontalOverflow: 0
1267 + m_VerticalOverflow: 0
1268 + m_LineSpacing: 1
1269 + m_Text: New Text
1270 +--- !u!222 &1666167297
1271 +CanvasRenderer:
1272 + m_ObjectHideFlags: 0
1273 + m_CorrespondingSourceObject: {fileID: 0}
1274 + m_PrefabInstance: {fileID: 0}
1275 + m_PrefabAsset: {fileID: 0}
1276 + m_GameObject: {fileID: 1666167294}
1277 + m_CullTransparentMesh: 0
1278 +--- !u!1 &1853264981
1279 +GameObject:
1280 + m_ObjectHideFlags: 0
1281 + m_CorrespondingSourceObject: {fileID: 0}
1282 + m_PrefabInstance: {fileID: 0}
1283 + m_PrefabAsset: {fileID: 0}
1284 + serializedVersion: 6
1285 + m_Component:
1286 + - component: {fileID: 1853264984}
1287 + - component: {fileID: 1853264983}
1288 + - component: {fileID: 1853264982}
1289 + m_Layer: 0
1290 + m_Name: TrainnerController
1291 + m_TagString: Untagged
1292 + m_Icon: {fileID: 0}
1293 + m_NavMeshLayer: 0
1294 + m_StaticEditorFlags: 0
1295 + m_IsActive: 0
1296 +--- !u!114 &1853264982
1297 +MonoBehaviour:
1298 + m_ObjectHideFlags: 0
1299 + m_CorrespondingSourceObject: {fileID: 0}
1300 + m_PrefabInstance: {fileID: 0}
1301 + m_PrefabAsset: {fileID: 0}
1302 + m_GameObject: {fileID: 1853264981}
1303 + m_Enabled: 1
1304 + m_EditorHideFlags: 0
1305 + m_Script: {fileID: 11500000, guid: 819eb0cfd2d3e7c439a730d87e92e292, type: 3}
1306 + m_Name:
1307 + m_EditorClassIdentifier:
1308 + BodySourceManager: {fileID: 1437275810}
1309 + Trainnner: {fileID: 0}
1310 + Trainnne: {fileID: 0}
1311 + mirror: 1
1312 + move: 1
1313 + IfSpineIsStraight: {fileID: 0}
1314 + HipBalance: {fileID: 0}
1315 + AngleLeftKnee: {fileID: 0}
1316 + AngleRightKnee: {fileID: 0}
1317 + KneeToeLeft: {fileID: 0}
1318 + KneeToeRight: {fileID: 0}
1319 + LeftLegUp: {fileID: 0}
1320 + RightLegUp: {fileID: 0}
1321 +--- !u!114 &1853264983
1322 +MonoBehaviour:
1323 + m_ObjectHideFlags: 0
1324 + m_CorrespondingSourceObject: {fileID: 0}
1325 + m_PrefabInstance: {fileID: 0}
1326 + m_PrefabAsset: {fileID: 0}
1327 + m_GameObject: {fileID: 1853264981}
1328 + m_Enabled: 0
1329 + m_EditorHideFlags: 0
1330 + m_Script: {fileID: 11500000, guid: 0214f610d24b4ad4f8bc1e78eae65cdb, type: 3}
1331 + m_Name:
1332 + m_EditorClassIdentifier:
1333 + humanoid: {fileID: 1930240349}
1334 + mirror: 1
1335 + move: 1
1336 +--- !u!4 &1853264984
1337 +Transform:
1338 + m_ObjectHideFlags: 0
1339 + m_CorrespondingSourceObject: {fileID: 0}
1340 + m_PrefabInstance: {fileID: 0}
1341 + m_PrefabAsset: {fileID: 0}
1342 + m_GameObject: {fileID: 1853264981}
1343 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
1344 + m_LocalPosition: {x: 0, y: 0, z: 0}
1345 + m_LocalScale: {x: 1, y: 1, z: 1}
1346 + m_Children: []
1347 + m_Father: {fileID: 0}
1348 + m_RootOrder: 6
1349 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1350 +--- !u!1 &1871814803
1351 +GameObject:
1352 + m_ObjectHideFlags: 0
1353 + m_CorrespondingSourceObject: {fileID: 0}
1354 + m_PrefabInstance: {fileID: 0}
1355 + m_PrefabAsset: {fileID: 0}
1356 + serializedVersion: 6
1357 + m_Component:
1358 + - component: {fileID: 1871814805}
1359 + - component: {fileID: 1871814804}
1360 + - component: {fileID: 1871814806}
1361 + - component: {fileID: 1871814807}
1362 + m_Layer: 0
1363 + m_Name: TraineeController
1364 + m_TagString: Untagged
1365 + m_Icon: {fileID: 0}
1366 + m_NavMeshLayer: 0
1367 + m_StaticEditorFlags: 0
1368 + m_IsActive: 0
1369 +--- !u!114 &1871814804
1370 +MonoBehaviour:
1371 + m_ObjectHideFlags: 0
1372 + m_CorrespondingSourceObject: {fileID: 0}
1373 + m_PrefabInstance: {fileID: 0}
1374 + m_PrefabAsset: {fileID: 0}
1375 + m_GameObject: {fileID: 1871814803}
1376 + m_Enabled: 0
1377 + m_EditorHideFlags: 0
1378 + m_Script: {fileID: 11500000, guid: 0214f610d24b4ad4f8bc1e78eae65cdb, type: 3}
1379 + m_Name:
1380 + m_EditorClassIdentifier:
1381 + humanoid: {fileID: 1930240349}
1382 + mirror: 1
1383 + move: 1
1384 +--- !u!4 &1871814805
1385 +Transform:
1386 + m_ObjectHideFlags: 0
1387 + m_CorrespondingSourceObject: {fileID: 0}
1388 + m_PrefabInstance: {fileID: 0}
1389 + m_PrefabAsset: {fileID: 0}
1390 + m_GameObject: {fileID: 1871814803}
1391 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
1392 + m_LocalPosition: {x: 0, y: 0, z: 0}
1393 + m_LocalScale: {x: 1, y: 1, z: 1}
1394 + m_Children: []
1395 + m_Father: {fileID: 0}
1396 + m_RootOrder: 3
1397 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1398 +--- !u!114 &1871814806
1399 +MonoBehaviour:
1400 + m_ObjectHideFlags: 0
1401 + m_CorrespondingSourceObject: {fileID: 0}
1402 + m_PrefabInstance: {fileID: 0}
1403 + m_PrefabAsset: {fileID: 0}
1404 + m_GameObject: {fileID: 1871814803}
1405 + m_Enabled: 0
1406 + m_EditorHideFlags: 0
1407 + m_Script: {fileID: 11500000, guid: 819eb0cfd2d3e7c439a730d87e92e292, type: 3}
1408 + m_Name:
1409 + m_EditorClassIdentifier:
1410 + BodySourceManager: {fileID: 1437275810}
1411 + Trainnner: {fileID: 0}
1412 + Trainnne: {fileID: 0}
1413 + mirror: 1
1414 + move: 1
1415 + IfSpineIsStraight: {fileID: 0}
1416 + HipBalance: {fileID: 0}
1417 + AngleLeftKnee: {fileID: 0}
1418 + AngleRightKnee: {fileID: 0}
1419 + KneeToeLeft: {fileID: 0}
1420 + KneeToeRight: {fileID: 0}
1421 + LeftLegUp: {fileID: 0}
1422 + RightLegUp: {fileID: 0}
1423 +--- !u!114 &1871814807
1424 +MonoBehaviour:
1425 + m_ObjectHideFlags: 0
1426 + m_CorrespondingSourceObject: {fileID: 0}
1427 + m_PrefabInstance: {fileID: 0}
1428 + m_PrefabAsset: {fileID: 0}
1429 + m_GameObject: {fileID: 1871814803}
1430 + m_Enabled: 1
1431 + m_EditorHideFlags: 0
1432 + m_Script: {fileID: 11500000, guid: 2341915180881ed45986d94e953d5297, type: 3}
1433 + m_Name:
1434 + m_EditorClassIdentifier:
1435 + BodySourceManager: {fileID: 1437275810}
1436 + humanoid: {fileID: 339505467}
1437 + mirror: 1
1438 + move: 1
1439 +--- !u!1001 &1930240348
1440 +PrefabInstance:
1441 + m_ObjectHideFlags: 0
1442 + serializedVersion: 2
1443 + m_Modification:
1444 + m_TransformParent: {fileID: 0}
1445 + m_Modifications:
1446 + - target: {fileID: -6057140222963153312, guid: 2fabf5256d4e0f64183020c8a537dc3f,
1447 + type: 3}
1448 + propertyPath: m_Avatar
1449 + value:
1450 + objectReference: {fileID: 9000000, guid: 2fabf5256d4e0f64183020c8a537dc3f, type: 3}
1451 + - target: {fileID: -6057140222963153312, guid: 2fabf5256d4e0f64183020c8a537dc3f,
1452 + type: 3}
1453 + propertyPath: m_Controller
1454 + value:
1455 + objectReference: {fileID: 0}
1456 + - target: {fileID: -4216859302048453862, guid: 2fabf5256d4e0f64183020c8a537dc3f,
1457 + type: 3}
1458 + propertyPath: m_LocalPosition.x
1459 + value: -7
1460 + objectReference: {fileID: 0}
1461 + - target: {fileID: -4216859302048453862, guid: 2fabf5256d4e0f64183020c8a537dc3f,
1462 + type: 3}
1463 + propertyPath: m_LocalPosition.y
1464 + value: -8.83
1465 + objectReference: {fileID: 0}
1466 + - target: {fileID: -4216859302048453862, guid: 2fabf5256d4e0f64183020c8a537dc3f,
1467 + type: 3}
1468 + propertyPath: m_LocalPosition.z
1469 + value: -2.23
1470 + objectReference: {fileID: 0}
1471 + - target: {fileID: -4216859302048453862, guid: 2fabf5256d4e0f64183020c8a537dc3f,
1472 + type: 3}
1473 + propertyPath: m_LocalRotation.x
1474 + value: 0
1475 + objectReference: {fileID: 0}
1476 + - target: {fileID: -4216859302048453862, guid: 2fabf5256d4e0f64183020c8a537dc3f,
1477 + type: 3}
1478 + propertyPath: m_LocalRotation.y
1479 + value: 1
1480 + objectReference: {fileID: 0}
1481 + - target: {fileID: -4216859302048453862, guid: 2fabf5256d4e0f64183020c8a537dc3f,
1482 + type: 3}
1483 + propertyPath: m_LocalRotation.z
1484 + value: 0
1485 + objectReference: {fileID: 0}
1486 + - target: {fileID: -4216859302048453862, guid: 2fabf5256d4e0f64183020c8a537dc3f,
1487 + type: 3}
1488 + propertyPath: m_LocalRotation.w
1489 + value: 0
1490 + objectReference: {fileID: 0}
1491 + - target: {fileID: -4216859302048453862, guid: 2fabf5256d4e0f64183020c8a537dc3f,
1492 + type: 3}
1493 + propertyPath: m_RootOrder
1494 + value: 2
1495 + objectReference: {fileID: 0}
1496 + - target: {fileID: -4216859302048453862, guid: 2fabf5256d4e0f64183020c8a537dc3f,
1497 + type: 3}
1498 + propertyPath: m_LocalEulerAnglesHint.x
1499 + value: 0
1500 + objectReference: {fileID: 0}
1501 + - target: {fileID: -4216859302048453862, guid: 2fabf5256d4e0f64183020c8a537dc3f,
1502 + type: 3}
1503 + propertyPath: m_LocalEulerAnglesHint.y
1504 + value: 180
1505 + objectReference: {fileID: 0}
1506 + - target: {fileID: -4216859302048453862, guid: 2fabf5256d4e0f64183020c8a537dc3f,
1507 + type: 3}
1508 + propertyPath: m_LocalEulerAnglesHint.z
1509 + value: 0
1510 + objectReference: {fileID: 0}
1511 + - target: {fileID: -4216859302048453862, guid: 2fabf5256d4e0f64183020c8a537dc3f,
1512 + type: 3}
1513 + propertyPath: m_LocalScale.x
1514 + value: 5
1515 + objectReference: {fileID: 0}
1516 + - target: {fileID: -4216859302048453862, guid: 2fabf5256d4e0f64183020c8a537dc3f,
1517 + type: 3}
1518 + propertyPath: m_LocalScale.y
1519 + value: 5
1520 + objectReference: {fileID: 0}
1521 + - target: {fileID: -4216859302048453862, guid: 2fabf5256d4e0f64183020c8a537dc3f,
1522 + type: 3}
1523 + propertyPath: m_LocalScale.z
1524 + value: 5
1525 + objectReference: {fileID: 0}
1526 + - target: {fileID: -927199367670048503, guid: 2fabf5256d4e0f64183020c8a537dc3f,
1527 + type: 3}
1528 + propertyPath: m_Name
1529 + value: Trainner
1530 + objectReference: {fileID: 0}
1531 + m_RemovedComponents: []
1532 + m_SourcePrefab: {fileID: 100100000, guid: 2fabf5256d4e0f64183020c8a537dc3f, type: 3}
1533 +--- !u!1 &1930240349 stripped
1534 +GameObject:
1535 + m_CorrespondingSourceObject: {fileID: -927199367670048503, guid: 2fabf5256d4e0f64183020c8a537dc3f,
1536 + type: 3}
1537 + m_PrefabInstance: {fileID: 1930240348}
1538 + m_PrefabAsset: {fileID: 0}
1539 +--- !u!1 &1975731711
1540 +GameObject:
1541 + m_ObjectHideFlags: 0
1542 + m_CorrespondingSourceObject: {fileID: 0}
1543 + m_PrefabInstance: {fileID: 0}
1544 + m_PrefabAsset: {fileID: 0}
1545 + serializedVersion: 6
1546 + m_Component:
1547 + - component: {fileID: 1975731712}
1548 + - component: {fileID: 1975731714}
1549 + - component: {fileID: 1975731713}
1550 + m_Layer: 5
1551 + m_Name: KneeToeLeft
1552 + m_TagString: Untagged
1553 + m_Icon: {fileID: 0}
1554 + m_NavMeshLayer: 0
1555 + m_StaticEditorFlags: 0
1556 + m_IsActive: 1
1557 +--- !u!224 &1975731712
1558 +RectTransform:
1559 + m_ObjectHideFlags: 0
1560 + m_CorrespondingSourceObject: {fileID: 0}
1561 + m_PrefabInstance: {fileID: 0}
1562 + m_PrefabAsset: {fileID: 0}
1563 + m_GameObject: {fileID: 1975731711}
1564 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
1565 + m_LocalPosition: {x: 0, y: 0, z: 0}
1566 + m_LocalScale: {x: 1, y: 1, z: 1}
1567 + m_Children: []
1568 + m_Father: {fileID: 399429971}
1569 + m_RootOrder: 4
1570 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1571 + m_AnchorMin: {x: 0.5, y: 0.5}
1572 + m_AnchorMax: {x: 0.5, y: 0.5}
1573 + m_AnchoredPosition: {x: 0, y: 0}
1574 + m_SizeDelta: {x: 160, y: 30}
1575 + m_Pivot: {x: 0.5, y: 0.5}
1576 +--- !u!114 &1975731713
1577 +MonoBehaviour:
1578 + m_ObjectHideFlags: 0
1579 + m_CorrespondingSourceObject: {fileID: 0}
1580 + m_PrefabInstance: {fileID: 0}
1581 + m_PrefabAsset: {fileID: 0}
1582 + m_GameObject: {fileID: 1975731711}
1583 + m_Enabled: 1
1584 + m_EditorHideFlags: 0
1585 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
1586 + m_Name:
1587 + m_EditorClassIdentifier:
1588 + m_Material: {fileID: 0}
1589 + m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
1590 + m_RaycastTarget: 1
1591 + m_Maskable: 1
1592 + m_OnCullStateChanged:
1593 + m_PersistentCalls:
1594 + m_Calls: []
1595 + m_FontData:
1596 + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
1597 + m_FontSize: 14
1598 + m_FontStyle: 0
1599 + m_BestFit: 0
1600 + m_MinSize: 10
1601 + m_MaxSize: 40
1602 + m_Alignment: 0
1603 + m_AlignByGeometry: 0
1604 + m_RichText: 1
1605 + m_HorizontalOverflow: 0
1606 + m_VerticalOverflow: 0
1607 + m_LineSpacing: 1
1608 + m_Text: New Text
1609 +--- !u!222 &1975731714
1610 +CanvasRenderer:
1611 + m_ObjectHideFlags: 0
1612 + m_CorrespondingSourceObject: {fileID: 0}
1613 + m_PrefabInstance: {fileID: 0}
1614 + m_PrefabAsset: {fileID: 0}
1615 + m_GameObject: {fileID: 1975731711}
1616 + m_CullTransparentMesh: 0
1617 +--- !u!1001 &2039867597
1618 +PrefabInstance:
1619 + m_ObjectHideFlags: 0
1620 + serializedVersion: 2
1621 + m_Modification:
1622 + m_TransformParent: {fileID: 0}
1623 + m_Modifications:
1624 + - target: {fileID: 100000, guid: ebaf91e845e67ac4f85b03ca6c72bd32, type: 3}
1625 + propertyPath: m_Name
1626 + value: Trainee_woman
1627 + objectReference: {fileID: 0}
1628 + - target: {fileID: 400000, guid: ebaf91e845e67ac4f85b03ca6c72bd32, type: 3}
1629 + propertyPath: m_LocalPosition.x
1630 + value: 8
1631 + objectReference: {fileID: 0}
1632 + - target: {fileID: 400000, guid: ebaf91e845e67ac4f85b03ca6c72bd32, type: 3}
1633 + propertyPath: m_LocalPosition.y
1634 + value: -8.74
1635 + objectReference: {fileID: 0}
1636 + - target: {fileID: 400000, guid: ebaf91e845e67ac4f85b03ca6c72bd32, type: 3}
1637 + propertyPath: m_LocalPosition.z
1638 + value: -1.37
1639 + objectReference: {fileID: 0}
1640 + - target: {fileID: 400000, guid: ebaf91e845e67ac4f85b03ca6c72bd32, type: 3}
1641 + propertyPath: m_LocalRotation.x
1642 + value: 0
1643 + objectReference: {fileID: 0}
1644 + - target: {fileID: 400000, guid: ebaf91e845e67ac4f85b03ca6c72bd32, type: 3}
1645 + propertyPath: m_LocalRotation.y
1646 + value: 1
1647 + objectReference: {fileID: 0}
1648 + - target: {fileID: 400000, guid: ebaf91e845e67ac4f85b03ca6c72bd32, type: 3}
1649 + propertyPath: m_LocalRotation.z
1650 + value: 0
1651 + objectReference: {fileID: 0}
1652 + - target: {fileID: 400000, guid: ebaf91e845e67ac4f85b03ca6c72bd32, type: 3}
1653 + propertyPath: m_LocalRotation.w
1654 + value: 0
1655 + objectReference: {fileID: 0}
1656 + - target: {fileID: 400000, guid: ebaf91e845e67ac4f85b03ca6c72bd32, type: 3}
1657 + propertyPath: m_RootOrder
1658 + value: 8
1659 + objectReference: {fileID: 0}
1660 + - target: {fileID: 400000, guid: ebaf91e845e67ac4f85b03ca6c72bd32, type: 3}
1661 + propertyPath: m_LocalEulerAnglesHint.x
1662 + value: 0
1663 + objectReference: {fileID: 0}
1664 + - target: {fileID: 400000, guid: ebaf91e845e67ac4f85b03ca6c72bd32, type: 3}
1665 + propertyPath: m_LocalEulerAnglesHint.y
1666 + value: 180
1667 + objectReference: {fileID: 0}
1668 + - target: {fileID: 400000, guid: ebaf91e845e67ac4f85b03ca6c72bd32, type: 3}
1669 + propertyPath: m_LocalEulerAnglesHint.z
1670 + value: 0
1671 + objectReference: {fileID: 0}
1672 + - target: {fileID: 400000, guid: ebaf91e845e67ac4f85b03ca6c72bd32, type: 3}
1673 + propertyPath: m_LocalScale.x
1674 + value: 6
1675 + objectReference: {fileID: 0}
1676 + - target: {fileID: 400000, guid: ebaf91e845e67ac4f85b03ca6c72bd32, type: 3}
1677 + propertyPath: m_LocalScale.y
1678 + value: 6
1679 + objectReference: {fileID: 0}
1680 + - target: {fileID: 400000, guid: ebaf91e845e67ac4f85b03ca6c72bd32, type: 3}
1681 + propertyPath: m_LocalScale.z
1682 + value: 6
1683 + objectReference: {fileID: 0}
1684 + m_RemovedComponents: []
1685 + m_SourcePrefab: {fileID: 100100000, guid: ebaf91e845e67ac4f85b03ca6c72bd32, type: 3}
1686 +--- !u!1 &2039867598 stripped
1687 +GameObject:
1688 + m_CorrespondingSourceObject: {fileID: 100000, guid: ebaf91e845e67ac4f85b03ca6c72bd32,
1689 + type: 3}
1690 + m_PrefabInstance: {fileID: 2039867597}
1691 + m_PrefabAsset: {fileID: 0}
1 +using UnityEngine;
2 +using System.Collections;
3 +using System.Collections.Generic;
4 +using Kinect = Windows.Kinect;
5 +
6 +class CharacterSkeleton
7 +{
8 + public const int
9 + // JointType
10 + JointType_SpineBase = 0,
11 + JointType_SpineMid = 1,
12 + JointType_Neck = 2,
13 + JointType_Head = 3,
14 + JointType_ShoulderLeft = 4,
15 + JointType_ElbowLeft = 5,
16 + JointType_WristLeft = 6,
17 + JointType_HandLeft = 7,
18 + JointType_ShoulderRight = 8,
19 + JointType_ElbowRight = 9,
20 + JointType_WristRight = 10,
21 + JointType_HandRight = 11,
22 + JointType_HipLeft = 12,
23 + JointType_KneeLeft = 13,
24 + JointType_AnkleLeft = 14,
25 + JointType_FootLeft = 15,
26 + JointType_HipRight = 16,
27 + JointType_KneeRight = 17,
28 + JointType_AnkleRight = 18,
29 + JointType_FootRight = 19,
30 + JointType_SpineShoulder = 20,
31 + JointType_HandTipLeft = 21,
32 + JointType_ThumbLeft = 22,
33 + JointType_HandTipRight = 23,
34 + JointType_ThumbRight = 24,
35 + // TrackingState
36 + TrackingState_NotTracked = 0,
37 + TrackingState_Inferred = 1,
38 + TrackingState_Tracked = 2,
39 + // Number
40 + bodyCount = 6,
41 + jointCount = 25;
42 +
43 + private static int[] jointSegment = new int[] {
44 + JointType_SpineBase, JointType_SpineMid, // Spine
45 + JointType_Neck, JointType_Head, // Neck
46 + // left
47 + JointType_ShoulderLeft, JointType_ElbowLeft, // LeftUpperArm
48 + JointType_ElbowLeft, JointType_WristLeft, // LeftLowerArm
49 + JointType_WristLeft, JointType_HandLeft, // LeftHand
50 + JointType_HipLeft, JointType_KneeLeft, // LeftUpperLeg
51 + JointType_KneeLeft, JointType_AnkleLeft, // LeftLowerLeg6
52 + JointType_AnkleLeft, JointType_FootLeft, // LeftFoot
53 + // right
54 + JointType_ShoulderRight, JointType_ElbowRight, // RightUpperArm
55 + JointType_ElbowRight, JointType_WristRight, // RightLowerArm
56 + JointType_WristRight, JointType_HandRight, // RightHand
57 + JointType_HipRight, JointType_KneeRight, // RightUpperLeg
58 + JointType_KneeRight, JointType_AnkleRight, // RightLowerLeg
59 + JointType_AnkleRight, JointType_FootRight, // RightFoot
60 + };
61 + public Vector3[] joint = new Vector3[jointCount];
62 + public int[] jointState = new int[jointCount];
63 +
64 + Dictionary<HumanBodyBones, Vector3> trackingSegment = null;
65 + Dictionary<HumanBodyBones, int> trackingState = null;
66 +
67 + private static HumanBodyBones[] humanBone = new HumanBodyBones[] {
68 + HumanBodyBones.Hips,
69 + HumanBodyBones.Spine,
70 + HumanBodyBones.UpperChest,
71 + HumanBodyBones.Neck,
72 + HumanBodyBones.Head,
73 + HumanBodyBones.LeftUpperArm,
74 + HumanBodyBones.LeftLowerArm,
75 + HumanBodyBones.LeftHand,
76 + HumanBodyBones.LeftUpperLeg,
77 + HumanBodyBones.LeftLowerLeg,
78 + HumanBodyBones.LeftFoot,
79 + HumanBodyBones.RightUpperArm,
80 + HumanBodyBones.RightLowerArm,
81 + HumanBodyBones.RightHand,
82 + HumanBodyBones.RightUpperLeg,
83 + HumanBodyBones.RightLowerLeg,
84 + HumanBodyBones.RightFoot,
85 + };
86 +
87 + private static HumanBodyBones[] targetBone = new HumanBodyBones[] {
88 + HumanBodyBones.Spine,
89 + HumanBodyBones.Neck,
90 + HumanBodyBones.LeftUpperArm,
91 + HumanBodyBones.LeftLowerArm,
92 + HumanBodyBones.LeftHand,
93 + HumanBodyBones.LeftUpperLeg,
94 + HumanBodyBones.LeftLowerLeg,
95 + HumanBodyBones.LeftFoot,
96 + HumanBodyBones.RightUpperArm,
97 + HumanBodyBones.RightLowerArm,
98 + HumanBodyBones.RightHand,
99 + HumanBodyBones.RightUpperLeg,
100 + HumanBodyBones.RightLowerLeg,
101 + HumanBodyBones.RightFoot,
102 + };
103 +
104 + public GameObject humanoid;
105 + private Dictionary<HumanBodyBones, RigBone> rigBone = null;
106 + private bool isSavedPosition = false;
107 + private Vector3 savedPosition;
108 + private Quaternion savedHumanoidRotation;
109 +
110 + public CharacterSkeleton(GameObject h)
111 + {
112 + humanoid = h;
113 + rigBone = new Dictionary<HumanBodyBones, RigBone>();
114 + foreach (HumanBodyBones bone in humanBone)
115 + {
116 + rigBone[bone] = new RigBone(humanoid, bone);
117 + }
118 + savedHumanoidRotation = humanoid.transform.rotation;
119 + trackingSegment = new Dictionary<HumanBodyBones, Vector3>(targetBone.Length);
120 + trackingState = new Dictionary<HumanBodyBones, int>(targetBone.Length);
121 + }
122 + private void swapJoint(int a, int b)
123 + {
124 + Vector3 tmp = joint[a]; joint[a] = joint[b]; joint[b] = tmp;
125 + int t = jointState[a]; jointState[a] = jointState[b]; jointState[b] = t;
126 + }
127 + public void set(float[] jt, int[] st, int offset, bool mirrored, bool move)
128 + {
129 + if (isSavedPosition == false && jointState[JointType_SpineBase] != TrackingState_NotTracked)
130 + {
131 + isSavedPosition = true;
132 + int j = offset * jointCount + JointType_SpineBase;
133 + savedPosition = new Vector3(jt[j * 3], jt[j * 3 + 1], jt[j * 3 + 2]);
134 + }
135 + for (int i = 0; i < jointCount; i++)
136 + {
137 + int j = offset * jointCount + i;
138 + if (mirrored)
139 + {
140 + joint[i] = new Vector3(-jt[j * 3], jt[j * 3 + 1], -jt[j * 3 + 2]);
141 + }
142 + else
143 + {
144 + joint[i] = new Vector3(jt[j * 3], jt[j * 3 + 1], savedPosition.z * 2 - jt[j * 3 + 2]);
145 + }
146 + jointState[i] = st[j];
147 + }
148 + if (mirrored)
149 + {
150 + swapJoint(JointType_ShoulderLeft, JointType_ShoulderRight);
151 + swapJoint(JointType_ElbowLeft, JointType_ElbowRight);
152 + swapJoint(JointType_WristLeft, JointType_WristRight);
153 + swapJoint(JointType_HandLeft, JointType_HandRight);
154 + swapJoint(JointType_HipLeft, JointType_HipRight);
155 + swapJoint(JointType_KneeLeft, JointType_KneeRight);
156 + swapJoint(JointType_AnkleLeft, JointType_AnkleRight);
157 + swapJoint(JointType_FootLeft, JointType_FootRight);
158 + swapJoint(JointType_HandTipLeft, JointType_HandTipRight);
159 + swapJoint(JointType_ThumbLeft, JointType_ThumbRight);
160 + }
161 + for (int i = 0; i < targetBone.Length; i++)
162 + {
163 + int s = jointSegment[2 * i], e = jointSegment[2 * i + 1];
164 + trackingSegment[targetBone[i]] = joint[e] - joint[s];
165 + trackingState[targetBone[i]] = System.Math.Min(jointState[e], jointState[s]);
166 + }
167 +
168 + Vector3 waist = joint[JointType_HipRight] - joint[JointType_HipLeft];
169 + waist = new Vector3(waist.x, 0, waist.z);
170 + Quaternion rot = Quaternion.FromToRotation(Vector3.right, waist);
171 + Quaternion rotInv = Quaternion.Inverse(rot);
172 +
173 + Vector3 shoulder = joint[JointType_ShoulderRight] - joint[JointType_ShoulderLeft];
174 + shoulder = new Vector3(shoulder.x, 0, shoulder.z);
175 + Quaternion srot = Quaternion.FromToRotation(Vector3.right, shoulder);
176 + Quaternion srotInv = Quaternion.Inverse(srot);
177 +
178 + humanoid.transform.rotation = Quaternion.identity;
179 + foreach (HumanBodyBones bone in targetBone)
180 + {
181 + rigBone[bone].transform.rotation = rotInv * Quaternion.FromToRotation(Vector3.up, trackingSegment[bone]);
182 + }
183 + rigBone[HumanBodyBones.UpperChest].offset(srot);
184 + Quaternion bodyRot = rot;
185 + if (mirrored)
186 + {
187 + bodyRot = Quaternion.AngleAxis(180, Vector3.up) * bodyRot;
188 + }
189 + humanoid.transform.rotation = bodyRot;
190 + if (move == true)
191 + {
192 + Vector3 m = joint[JointType_SpineBase];
193 + if (mirrored) m = new Vector3(-m.x, m.y, -m.z);
194 + humanoid.transform.position = m;
195 + }
196 + }
197 +
198 + public void dasomset(float[] jt, int[] st, int offset, bool mirrored, bool move, Kinect.Joint sourceJoint, Transform jointObj)
199 + {
200 + if (isSavedPosition == false && jointState[JointType_SpineBase] != TrackingState_NotTracked)
201 + {
202 + isSavedPosition = true;
203 + int j = offset * jointCount + JointType_SpineBase;
204 + savedPosition = new Vector3(jt[j * 3], jt[j * 3 + 1], jt[j * 3 + 2]);
205 + }
206 + for (int i = 0; i < jointCount; i++)
207 + {
208 + int j = offset * jointCount + i;
209 + if (mirrored)
210 + {
211 + joint[i] = new Vector3(-jt[j * 3], jt[j * 3 + 1], -jt[j * 3 + 2]);
212 + }
213 + else
214 + {
215 + joint[i] = new Vector3(jt[j * 3], jt[j * 3 + 1], savedPosition.z * 2 - jt[j * 3 + 2]);
216 + }
217 + jointState[i] = st[j];
218 + }
219 + if (mirrored)
220 + {
221 + swapJoint(JointType_ShoulderLeft, JointType_ShoulderRight);
222 + swapJoint(JointType_ElbowLeft, JointType_ElbowRight);
223 + swapJoint(JointType_WristLeft, JointType_WristRight);
224 + swapJoint(JointType_HandLeft, JointType_HandRight);
225 + swapJoint(JointType_HipLeft, JointType_HipRight);
226 + swapJoint(JointType_KneeLeft, JointType_KneeRight);
227 + swapJoint(JointType_AnkleLeft, JointType_AnkleRight);
228 + swapJoint(JointType_FootLeft, JointType_FootRight);
229 + swapJoint(JointType_HandTipLeft, JointType_HandTipRight);
230 + swapJoint(JointType_ThumbLeft, JointType_ThumbRight);
231 + }
232 + for (int i = 0; i < targetBone.Length; i++)
233 + {
234 + int s = jointSegment[2 * i], e = jointSegment[2 * i + 1];
235 + trackingSegment[targetBone[i]] = joint[e] - joint[s];
236 + trackingState[targetBone[i]] = System.Math.Min(jointState[e], jointState[s]);
237 + }
238 +
239 + Vector3 waist = joint[JointType_HipRight] - joint[JointType_HipLeft];
240 + waist = new Vector3(waist.x, 0, waist.z);
241 + Quaternion rot = Quaternion.FromToRotation(Vector3.right, waist);
242 + Quaternion rotInv = Quaternion.Inverse(rot);
243 +
244 + Vector3 shoulder = joint[JointType_ShoulderRight] - joint[JointType_ShoulderLeft];
245 + shoulder = new Vector3(shoulder.x, 0, shoulder.z);
246 + Quaternion srot = Quaternion.FromToRotation(Vector3.right, shoulder);
247 + Quaternion srotInv = Quaternion.Inverse(srot);
248 +
249 + humanoid.transform.rotation = Quaternion.identity;
250 + foreach (HumanBodyBones bone in targetBone)
251 + {
252 + rigBone[bone].transform.rotation = rotInv * Quaternion.FromToRotation(Vector3.up, trackingSegment[bone]);
253 + }
254 + rigBone[HumanBodyBones.UpperChest].offset(srot);
255 + Quaternion bodyRot = rot;
256 + if (mirrored)
257 + {
258 + bodyRot = Quaternion.AngleAxis(180, Vector3.up) * bodyRot;
259 + }
260 + humanoid.transform.rotation = bodyRot;
261 + if (move == true)
262 + {
263 + Vector3 m = joint[JointType_SpineBase];
264 + if (mirrored) m = new Vector3(-m.x, m.y, -m.z);
265 + humanoid.transform.position = m;
266 + }
267 + }
268 +
269 +}
1 +using System.Collections;
2 +using System.Collections.Generic;
3 +using UnityEngine;
4 +using Windows.Kinect;
5 +
6 +public class DetectJoints : MonoBehaviour
7 +{
8 + public GameObject BodySrcManager;
9 + public JointType TrackedJoint;
10 + private BodySourceManager bodyManager;
11 + private Body[] bodies;
12 + public float multiplier = 10f;
13 + // Start is called before the first frame update
14 + void Start()
15 + {
16 + if (BodySrcManager == null)
17 + {
18 + Debug.Log("Assign Game Object with Body Source Manger");
19 + }
20 + else
21 + {
22 + bodyManager = BodySrcManager.GetComponent<BodySourceManager>();
23 + }
24 + }
25 +
26 + // Update is called once per frame
27 + void Update()
28 + {
29 + if (bodyManager == null)
30 + {
31 + return;
32 + }
33 + bodies = bodyManager.GetData();
34 +
35 + if (bodies == null)
36 + {
37 + return;
38 + }
39 +
40 + foreach (var body in bodies)
41 + {
42 + if (body == null)
43 + {
44 + continue;
45 +
46 + }
47 + if (body.IsTracked)
48 + {
49 + var pos = body.Joints[TrackedJoint].Position;
50 + gameObject.transform.position = new Vector3(pos.X*multiplier, pos.Y*multiplier);
51 + }
52 + }
53 +
54 + }
55 +}
1 +using UnityEngine;
2 +using UnityEngine.UI;
3 +using System.Collections;
4 +using System.Collections.Generic;
5 +using Kinect = Windows.Kinect;
6 +using System.Runtime.InteropServices;
7 +using System.IO;
8 +using System;
9 +
10 +public class Move : MonoBehaviour
11 +{
12 + // [DllImport("NtKinectDll")]
13 + // private static extern System.IntPtr getKinect();
14 + // [DllImport("NtKinectDll")]
15 + // private static extern int setSkeleton(System.IntPtr kinect, System.IntPtr data, System.IntPtr state, System.IntPtr id);
16 +
17 + int bodyCount = 6;
18 + int jointCount = 25;
19 +
20 + //public Material BoneMaterial;
21 + public GameObject BodySourceManager;
22 + private Dictionary<ulong, GameObject> _Bodies = new Dictionary<ulong, GameObject>();
23 + private BodySourceManager _BodyManager;
24 +
25 + public GameObject Trainnner;
26 + public GameObject Trainnne;
27 + CharacterSkeleton skeleton_Trainnner;
28 + CharacterSkeleton skeleton_Trainnne;
29 + public bool mirror = true;
30 + public bool move = true;
31 + private System.IntPtr kinect;
32 +
33 + public Text IfSpineIsStraight;
34 + public Text HipBalance;
35 + public Text AngleLeftKnee;
36 + public Text AngleRightKnee;
37 + public Text KneeToeLeft;
38 + public Text KneeToeRight;
39 + public Text LeftLegUp;
40 + public Text RightLegUp;
41 +
42 + string hipbal, leftkneewarning, rightkneewarning, leftsidehighkick, rightsidehighkick;
43 +
44 +
45 + void Start()
46 + {
47 + skeleton_Trainnner = new CharacterSkeleton(Trainnner);
48 + skeleton_Trainnne = new CharacterSkeleton(Trainnne);
49 + }
50 +
51 + private Dictionary<Kinect.JointType, Kinect.JointType> _BoneMap = new Dictionary<Kinect.JointType, Kinect.JointType>()
52 + {
53 + { Kinect.JointType.FootLeft, Kinect.JointType.AnkleLeft },
54 + { Kinect.JointType.AnkleLeft, Kinect.JointType.KneeLeft },
55 + { Kinect.JointType.KneeLeft, Kinect.JointType.HipLeft },
56 + { Kinect.JointType.HipLeft, Kinect.JointType.SpineBase },
57 +
58 + { Kinect.JointType.FootRight, Kinect.JointType.AnkleRight },
59 + { Kinect.JointType.AnkleRight, Kinect.JointType.KneeRight },
60 + { Kinect.JointType.KneeRight, Kinect.JointType.HipRight },
61 + { Kinect.JointType.HipRight, Kinect.JointType.SpineBase },
62 +
63 + { Kinect.JointType.HandTipLeft, Kinect.JointType.HandLeft },
64 + { Kinect.JointType.ThumbLeft, Kinect.JointType.HandLeft },
65 + { Kinect.JointType.HandLeft, Kinect.JointType.WristLeft },
66 + { Kinect.JointType.WristLeft, Kinect.JointType.ElbowLeft },
67 + { Kinect.JointType.ElbowLeft, Kinect.JointType.ShoulderLeft },
68 + { Kinect.JointType.ShoulderLeft, Kinect.JointType.SpineShoulder },
69 +
70 + { Kinect.JointType.HandTipRight, Kinect.JointType.HandRight },
71 + { Kinect.JointType.ThumbRight, Kinect.JointType.HandRight },
72 + { Kinect.JointType.HandRight, Kinect.JointType.WristRight },
73 + { Kinect.JointType.WristRight, Kinect.JointType.ElbowRight },
74 + { Kinect.JointType.ElbowRight, Kinect.JointType.ShoulderRight },
75 + { Kinect.JointType.ShoulderRight, Kinect.JointType.SpineShoulder },
76 +
77 + { Kinect.JointType.SpineBase, Kinect.JointType.SpineMid },
78 + { Kinect.JointType.SpineMid, Kinect.JointType.SpineShoulder },
79 + { Kinect.JointType.SpineShoulder, Kinect.JointType.Neck },
80 + { Kinect.JointType.Neck, Kinect.JointType.Head },
81 + };
82 +
83 + void Update()
84 + {
85 + IfSpineIsStraight.text = "허리를 곧게: Tracking";
86 + HipBalance.text = "양쪽 힙 균형: Calculating";
87 + AngleLeftKnee.text = "왼쪽 무릎 각도: Tracking";
88 + AngleRightKnee.text = "오른쪽 무릎 각도: Tracking";
89 + KneeToeLeft.text = "왼쪽 무릎과 발끝: Tracking";
90 + KneeToeRight.text = "오른쪽 무릎과 발끝: Tracking";
91 + LeftLegUp.text = "왼쪽 다리 들어올린 각도: Tracking";
92 + RightLegUp.text = "오른쪽 다리 들어올린 각도: Tracking";
93 +
94 + float[] data1 = new float[bodyCount * jointCount * 3];
95 + int[] state = new int[bodyCount * jointCount];
96 + int[] id = new int[bodyCount];
97 + GCHandle gch = GCHandle.Alloc(data1, GCHandleType.Pinned);
98 + GCHandle gch2 = GCHandle.Alloc(state, GCHandleType.Pinned);
99 + GCHandle gch3 = GCHandle.Alloc(id, GCHandleType.Pinned);
100 +
101 + if (BodySourceManager == null)
102 + {
103 + return;
104 + }
105 +
106 + _BodyManager = BodySourceManager.GetComponent<BodySourceManager>();
107 + if (_BodyManager == null)
108 + {
109 + return;
110 + }
111 +
112 + Kinect.Body[] data = _BodyManager.GetData();
113 + if (data == null)
114 + {
115 + return;
116 + }
117 +
118 + List<ulong> trackedIds = new List<ulong>();
119 + foreach (var body in data)
120 + {
121 + if (body == null)
122 + {
123 + continue;
124 + }
125 +
126 + if (body.IsTracked)
127 + {
128 +
129 + trackedIds.Add(body.TrackingId);
130 + }
131 + }
132 +
133 + List<ulong> knownIds = new List<ulong>(_Bodies.Keys);
134 +
135 + // First delete untracked bodies
136 + foreach (ulong trackingId in knownIds)
137 + {
138 + if (!trackedIds.Contains(trackingId))
139 + {
140 + Destroy(_Bodies[trackingId]);
141 + _Bodies.Remove(trackingId);
142 + }
143 + }
144 +
145 + foreach (var body in data)
146 + {
147 + if (body == null)
148 + {
149 + continue;
150 + }
151 +
152 + if (body.IsTracked)
153 + {
154 + if (!_Bodies.ContainsKey(body.TrackingId))
155 + {
156 +
157 + _Bodies[body.TrackingId] = CreateBodyObject(body.TrackingId);
158 +
159 + }
160 + RefreshBodyObject(body, _Bodies[body.TrackingId]);
161 + }
162 + }
163 + }
164 +
165 + private GameObject CreateBodyObject(ulong id)
166 + {
167 +
168 + GameObject body = new GameObject("Body:" + id);
169 +
170 + for (Kinect.JointType jt = Kinect.JointType.SpineBase; jt <= Kinect.JointType.ThumbRight; jt++)
171 + {
172 + GameObject jointObj = GameObject.CreatePrimitive(PrimitiveType.Cube);
173 + //LineRenderer lr = jointObj.AddComponent<LineRenderer>();
174 + //lr.SetVertexCount(2);
175 + //lr.material = BoneMaterial;
176 + //lr.SetWidth(0.05f, 0.05f);
177 +
178 + jointObj.transform.localScale = new Vector3(0.3f, 0.3f, 0.3f);
179 + jointObj.name = jt.ToString();
180 + jointObj.transform.parent = body.transform;
181 + }
182 +
183 + return body;
184 + }
185 +
186 + private void RefreshBodyObject(Kinect.Body body, GameObject bodyObject)
187 + {
188 + float[] data1 = new float[bodyCount * jointCount * 3];
189 + int[] state = new int[bodyCount * jointCount];
190 + int[] id1 = new int[bodyCount];
191 + GCHandle gch = GCHandle.Alloc(data1, GCHandleType.Pinned);
192 + GCHandle gch2 = GCHandle.Alloc(state, GCHandleType.Pinned);
193 + GCHandle gch3 = GCHandle.Alloc(id1, GCHandleType.Pinned);
194 +
195 + int i = -1;
196 +
197 + for (Kinect.JointType jt = Kinect.JointType.SpineBase; jt <= Kinect.JointType.ThumbRight; jt++)
198 + {
199 + Kinect.Joint sourceJoint = body.Joints[jt];
200 + Kinect.Joint? targetJoint = null;
201 +
202 + ///////////////////////////
203 + Angles MyAngles = new Angles();
204 + byte[] ReadAngles = MyAngles.GetVector(body);
205 + // ReadAngles[0].ToString();
206 + //Debug.Log("HipLeft " + ReadAngles[1].ToString());
207 + //Debug.Log("HipRight " + ReadAngles[2].ToString());
208 + //Debug.Log("KneeLeft " + ReadAngles[3].ToString());
209 + //Debug.Log("KneeRight " + ReadAngles[4].ToString());
210 +
211 +
212 + if (ReadAngles[1] - ReadAngles[2] <= 5)
213 + {
214 + hipbal = "양쪽 균형이 잡혀있습니다.";
215 + }
216 + else
217 + {
218 + hipbal = "양쪽 힘이 동일하지 않습니다. 균형을 잡으세요";
219 + }
220 +
221 + if (ReadAngles[5] > 90)
222 + {
223 + leftkneewarning = "왼쪽 무릎이 발끝을 넘어갔습니다.";
224 + }
225 + else
226 + {
227 + leftkneewarning = "";
228 + }
229 + if (ReadAngles[6] > 90)
230 + {
231 + rightkneewarning = "오른쪽 무릎이 발끝을 넘어갔습니다.";
232 + }
233 + else
234 + {
235 + rightkneewarning = "";
236 + }
237 +
238 + if (ReadAngles[7] < 45)
239 + {
240 + leftsidehighkick = "왼쪽 다리를 좀 더 높이 들어올리세요";
241 + }
242 + else
243 + {
244 + leftsidehighkick = "";
245 + }
246 +
247 + if (ReadAngles[8] < 45)
248 + {
249 + rightsidehighkick = "오른쪽 다리를 좀 더 높이 들어올리세요";
250 + }
251 + else
252 + {
253 + rightsidehighkick = "";
254 + }
255 +
256 +
257 + IfSpineIsStraight.text = "허리를 곧게: " + ReadAngles[0].ToString();
258 + HipBalance.text = "양쪽 힙 균형: " + hipbal;
259 + AngleLeftKnee.text = "왼쪽 무릎 각도: " + ReadAngles[3].ToString();
260 + AngleRightKnee.text = "오른쪽 무릎 각도: " + ReadAngles[4].ToString();
261 + KneeToeLeft.text = "올바르지 않은 자세: " + leftkneewarning;
262 + KneeToeRight.text = "올바르지 않은 자세: " + rightkneewarning;
263 + LeftLegUp.text = "왼쪽 다리 운동중: " + leftsidehighkick;
264 + RightLegUp.text = "오른쪽 다리 운동중: " + rightsidehighkick;
265 +
266 + ///////////////////////////
267 +
268 + if (_BoneMap.ContainsKey(jt))
269 + {
270 + targetJoint = body.Joints[_BoneMap[jt]];
271 + }
272 + Transform jointObj = bodyObject.transform.Find(jt.ToString());
273 + jointObj.localPosition = GetVector3FromJoint(sourceJoint);
274 +
275 + //Debug.Log(i);
276 +
277 + i++;
278 + data1[i] = sourceJoint.Position.X;
279 + i++;
280 + data1[i] = sourceJoint.Position.Y;
281 + i++;
282 + data1[i] = sourceJoint.Position.Z;
283 + if ((sourceJoint.Position.X + sourceJoint.Position.Y + sourceJoint.Position.Z) != 0)
284 + {
285 + state[i - 2] = 1;
286 + }
287 + skeleton_Trainnne.dasomset(data1, state, 0, true, true, body.Joints[jt], jointObj);
288 +
289 + /*
290 + LineRenderer lr = jointObj.GetComponent<LineRenderer>();
291 + if (targetJoint.HasValue)
292 + {
293 + //Debug.Log(jointObj.localPosition);
294 + //Debug.Log(GetVector3FromJoint(targetJoint.Value));
295 + lr.SetPosition(0, jointObj.localPosition);
296 + lr.SetPosition(1, GetVector3FromJoint(targetJoint.Value));
297 + lr.SetColors(GetColorForState(sourceJoint.TrackingState), GetColorForState(targetJoint.Value.TrackingState));
298 + }
299 + else
300 + {
301 + lr.enabled = false;
302 + }
303 + */
304 + }
305 + }
306 +
307 + private static Color GetColorForState(Kinect.TrackingState state)
308 + {
309 + switch (state)
310 + {
311 + case Kinect.TrackingState.Tracked:
312 + return Color.green;
313 +
314 + case Kinect.TrackingState.Inferred:
315 + return Color.red;
316 +
317 + default:
318 + return Color.black;
319 + }
320 + }
321 +
322 + private static Vector3 GetVector3FromJoint(Kinect.Joint joint)
323 + {
324 + return new Vector3(joint.Position.X * 10, joint.Position.Y * 10, joint.Position.Z * 10);
325 + }
326 +
327 + public class Angles
328 + {
329 + public double AngleBetweenTwoVectors(Vector3 Va, Vector3 Vb)
330 + {
331 + double dotProduct;
332 +
333 + Va.Normalize();
334 + Vb.Normalize();
335 + dotProduct = Vector3.Dot(Va, Vb);
336 +
337 + return (double)Math.Acos(dotProduct) * (180 / Math.PI);
338 +
339 + }
340 +
341 + public byte[] GetVector(Kinect.Body body)
342 + {
343 + Vector3 SpineShoulder = new Vector3(body.Joints[Kinect.JointType.SpineShoulder].Position.X, body.Joints[Kinect.JointType.SpineShoulder].Position.Y, body.Joints[Kinect.JointType.SpineShoulder].Position.Z);
344 + Vector3 RightShoulder = new Vector3(body.Joints[Kinect.JointType.ShoulderRight].Position.X, body.Joints[Kinect.JointType.ShoulderRight].Position.Y, body.Joints[Kinect.JointType.ShoulderRight].Position.Z);
345 + Vector3 LeftShoulder = new Vector3(body.Joints[Kinect.JointType.ShoulderLeft].Position.X, body.Joints[Kinect.JointType.ShoulderLeft].Position.Y, body.Joints[Kinect.JointType.ShoulderLeft].Position.Z);
346 + Vector3 RightElbow = new Vector3(body.Joints[Kinect.JointType.ElbowRight].Position.X, body.Joints[Kinect.JointType.ElbowRight].Position.Y, body.Joints[Kinect.JointType.ElbowRight].Position.Z);
347 + Vector3 LeftElbow = new Vector3(body.Joints[Kinect.JointType.ElbowLeft].Position.X, body.Joints[Kinect.JointType.ElbowLeft].Position.Y, body.Joints[Kinect.JointType.ElbowLeft].Position.Z);
348 + Vector3 RightWrist = new Vector3(body.Joints[Kinect.JointType.WristRight].Position.X, body.Joints[Kinect.JointType.WristRight].Position.Y, body.Joints[Kinect.JointType.WristRight].Position.Z);
349 + Vector3 LeftWrist = new Vector3(body.Joints[Kinect.JointType.WristLeft].Position.X, body.Joints[Kinect.JointType.WristLeft].Position.Y, body.Joints[Kinect.JointType.WristLeft].Position.Z);
350 + Vector3 UpVector = new Vector3((float)0.0, (float)1.0, (float)0.0);
351 + //////////////////////////////////////
352 + Vector3 SpineMid = new Vector3(body.Joints[Kinect.JointType.SpineMid].Position.X, body.Joints[Kinect.JointType.SpineMid].Position.Y, body.Joints[Kinect.JointType.SpineMid].Position.Z);
353 + Vector3 SpineBase = new Vector3(body.Joints[Kinect.JointType.SpineBase].Position.X, body.Joints[Kinect.JointType.SpineBase].Position.Y, body.Joints[Kinect.JointType.SpineBase].Position.Z);
354 + Vector3 HipLeft = new Vector3(body.Joints[Kinect.JointType.HipLeft].Position.X, body.Joints[Kinect.JointType.HipLeft].Position.Y, body.Joints[Kinect.JointType.HipLeft].Position.Z);
355 + Vector3 KneeLeft = new Vector3(body.Joints[Kinect.JointType.KneeLeft].Position.X, body.Joints[Kinect.JointType.KneeLeft].Position.Y, body.Joints[Kinect.JointType.KneeLeft].Position.Z);
356 + Vector3 AnkleLeft = new Vector3(body.Joints[Kinect.JointType.AnkleLeft].Position.X, body.Joints[Kinect.JointType.AnkleLeft].Position.Y, body.Joints[Kinect.JointType.AnkleLeft].Position.Z);
357 + Vector3 HipRight = new Vector3(body.Joints[Kinect.JointType.HipRight].Position.X, body.Joints[Kinect.JointType.HipRight].Position.Y, body.Joints[Kinect.JointType.HipRight].Position.Z);
358 + Vector3 KneeRight = new Vector3(body.Joints[Kinect.JointType.KneeRight].Position.X, body.Joints[Kinect.JointType.KneeRight].Position.Y, body.Joints[Kinect.JointType.KneeRight].Position.Z);
359 + Vector3 AnkleRight = new Vector3(body.Joints[Kinect.JointType.AnkleRight].Position.X, body.Joints[Kinect.JointType.AnkleRight].Position.Y, body.Joints[Kinect.JointType.AnkleRight].Position.Z);
360 + Vector3 FootRight = new Vector3(body.Joints[Kinect.JointType.FootRight].Position.X, body.Joints[Kinect.JointType.FootRight].Position.Y, body.Joints[Kinect.JointType.FootRight].Position.Z);
361 + Vector3 FootLeft = new Vector3(body.Joints[Kinect.JointType.FootLeft].Position.X, body.Joints[Kinect.JointType.FootLeft].Position.Y, body.Joints[Kinect.JointType.FootLeft].Position.Z);
362 +
363 + /*
364 + double AngleRightElbow = AngleBetweenTwoVectors(RightElbow - RightShoulder, RightElbow - RightWrist);
365 + double AngleRightShoulder = AngleBetweenTwoVectors(UpVector, RightShoulder - RightElbow);
366 + double AngleLeftElbow = AngleBetweenTwoVectors(LeftElbow - LeftShoulder, LeftElbow - LeftWrist);
367 + double AngleLeftShoulder = AngleBetweenTwoVectors(UpVector, LeftShoulder - LeftElbow);
368 + */
369 +
370 + double StraightSpine = AngleBetweenTwoVectors(SpineShoulder - SpineMid, SpineBase - SpineMid); //스쿼트, 런지 - Joint 3개로도 가능
371 +
372 + double AngleLeftHip = AngleBetweenTwoVectors(SpineBase - SpineShoulder, HipLeft - KneeLeft); //스쿼트, 런지
373 + double AngleRightHip = AngleBetweenTwoVectors(SpineBase - SpineShoulder, HipRight - KneeRight); //스쿼트, 런지
374 + double AngleLeftKnee = AngleBetweenTwoVectors(KneeLeft - HipLeft, KneeLeft - AnkleLeft); //스쿼트, 런지, 사이드하이킥 - Joint 3개로도 가능
375 + double AngleRightKnee = AngleBetweenTwoVectors(KneeRight - HipRight, KneeRight - AnkleRight); //스쿼트, 런지, 사이드하이킥 - Joint 3개로도 가능
376 +
377 + double KneeToeLeft = AngleBetweenTwoVectors(AnkleLeft - FootLeft, KneeLeft - FootLeft); //스쿼트 - Joint 3개로도 가능
378 + double KneeToeRight = AngleBetweenTwoVectors(AnkleRight - FootRight, KneeRight - FootRight); //스쿼트 - Joint 3개로도 가능
379 + double LeftLegUp = AngleBetweenTwoVectors(SpineMid - SpineShoulder, KneeLeft - HipLeft); //사이드 하이킥
380 + double RightLegUp = AngleBetweenTwoVectors(SpineMid - SpineShoulder, KneeRight - HipRight); //사이드 하이킥
381 +
382 +
383 + byte[] Angles = { Convert.ToByte(StraightSpine),
384 + Convert.ToByte(AngleLeftHip), Convert.ToByte(AngleRightHip),
385 + Convert.ToByte(AngleLeftKnee), Convert.ToByte(AngleRightKnee),
386 + Convert.ToByte(KneeToeLeft), Convert.ToByte(KneeToeRight),
387 + Convert.ToByte(LeftLegUp), Convert.ToByte(RightLegUp)};
388 +
389 + return Angles;
390 + }
391 + }
392 +}
1 +using UnityEngine;
2 +using System.Collections;
3 +using System.Collections.Generic;
4 +using Kinect = Windows.Kinect;
5 +using System.Runtime.InteropServices;
6 +
7 +public class MoveTrainee : MonoBehaviour
8 +{
9 + // [DllImport("NtKinectDll")]
10 + // private static extern System.IntPtr getKinect();
11 + // [DllImport("NtKinectDll")]
12 + // private static extern int setSkeleton(System.IntPtr kinect, System.IntPtr data, System.IntPtr state, System.IntPtr id);
13 +
14 + int bodyCount = 6;
15 + int jointCount = 25;
16 +
17 + //public Material BoneMaterial;
18 + public GameObject BodySourceManager;
19 + private Dictionary<ulong, GameObject> _Bodies = new Dictionary<ulong, GameObject>();
20 + private BodySourceManager _BodyManager;
21 +
22 + public GameObject humanoid;
23 + CharacterSkeleton skeleton;
24 + public bool mirror = true;
25 + public bool move = true;
26 + private System.IntPtr kinect;
27 +
28 + void Start()
29 + {
30 + skeleton = new CharacterSkeleton(humanoid);
31 + }
32 +
33 + private Dictionary<Kinect.JointType, Kinect.JointType> _BoneMap = new Dictionary<Kinect.JointType, Kinect.JointType>()
34 + {
35 + { Kinect.JointType.FootLeft, Kinect.JointType.AnkleLeft },
36 + { Kinect.JointType.AnkleLeft, Kinect.JointType.KneeLeft },
37 + { Kinect.JointType.KneeLeft, Kinect.JointType.HipLeft },
38 + { Kinect.JointType.HipLeft, Kinect.JointType.SpineBase },
39 +
40 + { Kinect.JointType.FootRight, Kinect.JointType.AnkleRight },
41 + { Kinect.JointType.AnkleRight, Kinect.JointType.KneeRight },
42 + { Kinect.JointType.KneeRight, Kinect.JointType.HipRight },
43 + { Kinect.JointType.HipRight, Kinect.JointType.SpineBase },
44 +
45 + { Kinect.JointType.HandTipLeft, Kinect.JointType.HandLeft },
46 + { Kinect.JointType.ThumbLeft, Kinect.JointType.HandLeft },
47 + { Kinect.JointType.HandLeft, Kinect.JointType.WristLeft },
48 + { Kinect.JointType.WristLeft, Kinect.JointType.ElbowLeft },
49 + { Kinect.JointType.ElbowLeft, Kinect.JointType.ShoulderLeft },
50 + { Kinect.JointType.ShoulderLeft, Kinect.JointType.SpineShoulder },
51 +
52 + { Kinect.JointType.HandTipRight, Kinect.JointType.HandRight },
53 + { Kinect.JointType.ThumbRight, Kinect.JointType.HandRight },
54 + { Kinect.JointType.HandRight, Kinect.JointType.WristRight },
55 + { Kinect.JointType.WristRight, Kinect.JointType.ElbowRight },
56 + { Kinect.JointType.ElbowRight, Kinect.JointType.ShoulderRight },
57 + { Kinect.JointType.ShoulderRight, Kinect.JointType.SpineShoulder },
58 +
59 + { Kinect.JointType.SpineBase, Kinect.JointType.SpineMid },
60 + { Kinect.JointType.SpineMid, Kinect.JointType.SpineShoulder },
61 + { Kinect.JointType.SpineShoulder, Kinect.JointType.Neck },
62 + { Kinect.JointType.Neck, Kinect.JointType.Head },
63 + };
64 +
65 + void Update()
66 + {
67 + float[] data1 = new float[bodyCount * jointCount * 3];
68 + int[] state = new int[bodyCount * jointCount];
69 + int[] id = new int[bodyCount];
70 + GCHandle gch = GCHandle.Alloc(data1, GCHandleType.Pinned);
71 + GCHandle gch2 = GCHandle.Alloc(state, GCHandleType.Pinned);
72 + GCHandle gch3 = GCHandle.Alloc(id, GCHandleType.Pinned);
73 +
74 + if (BodySourceManager == null)
75 + {
76 + return;
77 + }
78 +
79 + _BodyManager = BodySourceManager.GetComponent<BodySourceManager>();
80 + if (_BodyManager == null)
81 + {
82 + return;
83 + }
84 +
85 + Kinect.Body[] data = _BodyManager.GetData();
86 + if (data == null)
87 + {
88 + return;
89 + }
90 +
91 + List<ulong> trackedIds = new List<ulong>();
92 + foreach (var body in data)
93 + {
94 + if (body == null)
95 + {
96 + continue;
97 + }
98 +
99 + if (body.IsTracked)
100 + {
101 +
102 + trackedIds.Add(body.TrackingId);
103 + }
104 + }
105 +
106 + List<ulong> knownIds = new List<ulong>(_Bodies.Keys);
107 +
108 + // First delete untracked bodies
109 + foreach (ulong trackingId in knownIds)
110 + {
111 + if (!trackedIds.Contains(trackingId))
112 + {
113 + Destroy(_Bodies[trackingId]);
114 + _Bodies.Remove(trackingId);
115 + }
116 + }
117 +
118 + foreach (var body in data)
119 + {
120 + if (body == null)
121 + {
122 + continue;
123 + }
124 +
125 + if (body.IsTracked)
126 + {
127 + if (!_Bodies.ContainsKey(body.TrackingId))
128 + {
129 +
130 + _Bodies[body.TrackingId] = CreateBodyObject(body.TrackingId);
131 +
132 + }
133 + RefreshBodyObject(body, _Bodies[body.TrackingId]);
134 + }
135 + }
136 + }
137 +
138 + private GameObject CreateBodyObject(ulong id)
139 + {
140 +
141 + GameObject body = new GameObject("Body:" + id);
142 +
143 + for (Kinect.JointType jt = Kinect.JointType.SpineBase; jt <= Kinect.JointType.ThumbRight; jt++)
144 + {
145 + GameObject jointObj = GameObject.CreatePrimitive(PrimitiveType.Cube);
146 + //LineRenderer lr = jointObj.AddComponent<LineRenderer>();
147 + //lr.SetVertexCount(2);
148 + //lr.material = BoneMaterial;
149 + //lr.SetWidth(0.05f, 0.05f);
150 +
151 + jointObj.transform.localScale = new Vector3(0.3f, 0.3f, 0.3f);
152 + jointObj.name = jt.ToString();
153 + jointObj.transform.parent = body.transform;
154 + }
155 +
156 + return body;
157 + }
158 +
159 + private void RefreshBodyObject(Kinect.Body body, GameObject bodyObject)
160 + {
161 + float[] data1 = new float[bodyCount * jointCount * 3];
162 + int[] state = new int[bodyCount * jointCount];
163 + int[] id1 = new int[bodyCount];
164 + GCHandle gch = GCHandle.Alloc(data1, GCHandleType.Pinned);
165 + GCHandle gch2 = GCHandle.Alloc(state, GCHandleType.Pinned);
166 + GCHandle gch3 = GCHandle.Alloc(id1, GCHandleType.Pinned);
167 +
168 + int i = -1;
169 +
170 + for (Kinect.JointType jt = Kinect.JointType.SpineBase; jt <= Kinect.JointType.ThumbRight; jt++)
171 + {
172 + Kinect.Joint sourceJoint = body.Joints[jt];
173 +
174 + //Debug.Log("body.Joints[jt]");
175 + //Debug.Log(body.Joints[jt]);
176 + //Debug.Log("jt");
177 + //Debug.Log(jt);
178 + //Debug.Log(body.Joints[jt].JointType);
179 + //Debug.Log(sourceJoint.Position.X * 10);
180 + //Debug.Log(sourceJoint.Position.Y * 10);
181 + //Debug.Log(sourceJoint.Position.Z * 10);
182 + Kinect.Joint? targetJoint = null;
183 +
184 + if (_BoneMap.ContainsKey(jt))
185 + {
186 + targetJoint = body.Joints[_BoneMap[jt]];
187 + }
188 + Transform jointObj = bodyObject.transform.Find(jt.ToString());
189 + jointObj.localPosition = GetVector3FromJoint(sourceJoint);
190 +
191 + //Debug.Log(i);
192 +
193 + i++;
194 + data1[i] = sourceJoint.Position.X;
195 + i++;
196 + data1[i] = sourceJoint.Position.Y;
197 + i++;
198 + data1[i] = sourceJoint.Position.Z;
199 + if ((sourceJoint.Position.X + sourceJoint.Position.Y + sourceJoint.Position.Z) != 0)
200 + {
201 + state[i - 2] = 1;
202 + }
203 + skeleton.dasomset(data1, state, 0, true, true, body.Joints[jt], jointObj);
204 +
205 + /*
206 + LineRenderer lr = jointObj.GetComponent<LineRenderer>();
207 + if (targetJoint.HasValue)
208 + {
209 + //Debug.Log(jointObj.localPosition);
210 + //Debug.Log(GetVector3FromJoint(targetJoint.Value));
211 + lr.SetPosition(0, jointObj.localPosition);
212 + lr.SetPosition(1, GetVector3FromJoint(targetJoint.Value));
213 + lr.SetColors(GetColorForState(sourceJoint.TrackingState), GetColorForState(targetJoint.Value.TrackingState));
214 + }
215 + else
216 + {
217 + lr.enabled = false;
218 + }
219 + */
220 + }
221 + }
222 +
223 + private static Color GetColorForState(Kinect.TrackingState state)
224 + {
225 + switch (state)
226 + {
227 + case Kinect.TrackingState.Tracked:
228 + return Color.green;
229 +
230 + case Kinect.TrackingState.Inferred:
231 + return Color.red;
232 +
233 + default:
234 + return Color.black;
235 + }
236 + }
237 +
238 + private static Vector3 GetVector3FromJoint(Kinect.Joint joint)
239 + {
240 + return new Vector3(joint.Position.X * 10, joint.Position.Y * 10, joint.Position.Z * 10);
241 + }
242 +}
1 +using UnityEngine;
2 +using System.Collections;
3 +using System.Collections.Generic;
4 +using Kinect = Windows.Kinect;
5 +using System.Runtime.InteropServices;
6 +
7 +
8 +public class MoveTrainner : MonoBehaviour
9 +{
10 + // [DllImport("NtKinectDll")]
11 + // private static extern System.IntPtr getKinect();
12 + // [DllImport("NtKinectDll")]
13 + // private static extern int setSkeleton(System.IntPtr kinect, System.IntPtr data, System.IntPtr state, System.IntPtr id);
14 +
15 + int bodyCount = 6;
16 + int jointCount = 25;
17 +
18 + public Material BoneMaterial;
19 + public GameObject BodySourceManager;
20 + private Dictionary<ulong, GameObject> _Bodies = new Dictionary<ulong, GameObject>();
21 + private BodySourceManager _BodyManager;
22 +
23 + public GameObject humanoid;
24 + CharacterSkeleton skeleton;
25 + public bool mirror = true;
26 + public bool move = true;
27 + private System.IntPtr kinect;
28 +
29 + void Start()
30 + {
31 + skeleton = new CharacterSkeleton(humanoid);
32 + }
33 +
34 + private Dictionary<Kinect.JointType, Kinect.JointType> _BoneMap = new Dictionary<Kinect.JointType, Kinect.JointType>()
35 + {
36 + { Kinect.JointType.FootLeft, Kinect.JointType.AnkleLeft },
37 + { Kinect.JointType.AnkleLeft, Kinect.JointType.KneeLeft },
38 + { Kinect.JointType.KneeLeft, Kinect.JointType.HipLeft },
39 + { Kinect.JointType.HipLeft, Kinect.JointType.SpineBase },
40 +
41 + { Kinect.JointType.FootRight, Kinect.JointType.AnkleRight },
42 + { Kinect.JointType.AnkleRight, Kinect.JointType.KneeRight },
43 + { Kinect.JointType.KneeRight, Kinect.JointType.HipRight },
44 + { Kinect.JointType.HipRight, Kinect.JointType.SpineBase },
45 +
46 + { Kinect.JointType.HandTipLeft, Kinect.JointType.HandLeft },
47 + { Kinect.JointType.ThumbLeft, Kinect.JointType.HandLeft },
48 + { Kinect.JointType.HandLeft, Kinect.JointType.WristLeft },
49 + { Kinect.JointType.WristLeft, Kinect.JointType.ElbowLeft },
50 + { Kinect.JointType.ElbowLeft, Kinect.JointType.ShoulderLeft },
51 + { Kinect.JointType.ShoulderLeft, Kinect.JointType.SpineShoulder },
52 +
53 + { Kinect.JointType.HandTipRight, Kinect.JointType.HandRight },
54 + { Kinect.JointType.ThumbRight, Kinect.JointType.HandRight },
55 + { Kinect.JointType.HandRight, Kinect.JointType.WristRight },
56 + { Kinect.JointType.WristRight, Kinect.JointType.ElbowRight },
57 + { Kinect.JointType.ElbowRight, Kinect.JointType.ShoulderRight },
58 + { Kinect.JointType.ShoulderRight, Kinect.JointType.SpineShoulder },
59 +
60 + { Kinect.JointType.SpineBase, Kinect.JointType.SpineMid },
61 + { Kinect.JointType.SpineMid, Kinect.JointType.SpineShoulder },
62 + { Kinect.JointType.SpineShoulder, Kinect.JointType.Neck },
63 + { Kinect.JointType.Neck, Kinect.JointType.Head },
64 + };
65 +
66 + void Update()
67 + {
68 + float[] data1 = new float[bodyCount * jointCount * 3];
69 + int[] state = new int[bodyCount * jointCount];
70 + int[] id = new int[bodyCount];
71 + GCHandle gch = GCHandle.Alloc(data1, GCHandleType.Pinned);
72 + GCHandle gch2 = GCHandle.Alloc(state, GCHandleType.Pinned);
73 + GCHandle gch3 = GCHandle.Alloc(id, GCHandleType.Pinned);
74 +
75 + if (BodySourceManager == null)
76 + {
77 + return;
78 + }
79 +
80 + _BodyManager = BodySourceManager.GetComponent<BodySourceManager>();
81 + if (_BodyManager == null)
82 + {
83 + return;
84 + }
85 +
86 + Kinect.Body[] data = _BodyManager.GetData();
87 + if (data == null)
88 + {
89 + return;
90 + }
91 +
92 + List<ulong> trackedIds = new List<ulong>();
93 + foreach (var body in data)
94 + {
95 + if (body == null)
96 + {
97 + continue;
98 + }
99 +
100 + if (body.IsTracked)
101 + {
102 +
103 + trackedIds.Add(body.TrackingId);
104 + }
105 + }
106 +
107 + List<ulong> knownIds = new List<ulong>(_Bodies.Keys);
108 +
109 + // First delete untracked bodies
110 + foreach (ulong trackingId in knownIds)
111 + {
112 + if (!trackedIds.Contains(trackingId))
113 + {
114 + Destroy(_Bodies[trackingId]);
115 + _Bodies.Remove(trackingId);
116 + }
117 + }
118 +
119 + foreach (var body in data)
120 + {
121 + if (body == null)
122 + {
123 + continue;
124 + }
125 +
126 + if (body.IsTracked)
127 + {
128 + if (!_Bodies.ContainsKey(body.TrackingId))
129 + {
130 +
131 + _Bodies[body.TrackingId] = CreateBodyObject(body.TrackingId);
132 +
133 + }
134 + RefreshBodyObject(body, _Bodies[body.TrackingId]);
135 + }
136 + }
137 + }
138 +
139 + private GameObject CreateBodyObject(ulong id)
140 + {
141 +
142 + GameObject body = new GameObject("Body:" + id);
143 +
144 + for (Kinect.JointType jt = Kinect.JointType.SpineBase; jt <= Kinect.JointType.ThumbRight; jt++)
145 + {
146 + GameObject jointObj = GameObject.CreatePrimitive(PrimitiveType.Cube);
147 + LineRenderer lr = jointObj.AddComponent<LineRenderer>();
148 + lr.SetVertexCount(2);
149 + lr.material = BoneMaterial;
150 + lr.SetWidth(0.05f, 0.05f);
151 +
152 + jointObj.transform.localScale = new Vector3(0.3f, 0.3f, 0.3f);
153 + jointObj.name = jt.ToString();
154 + jointObj.transform.parent = body.transform;
155 + }
156 +
157 + return body;
158 + }
159 +
160 + private void RefreshBodyObject(Kinect.Body body, GameObject bodyObject)
161 + {
162 + float[] data1 = new float[bodyCount * jointCount * 3];
163 + int[] state = new int[bodyCount * jointCount];
164 + int[] id1 = new int[bodyCount];
165 + GCHandle gch = GCHandle.Alloc(data1, GCHandleType.Pinned);
166 + GCHandle gch2 = GCHandle.Alloc(state, GCHandleType.Pinned);
167 + GCHandle gch3 = GCHandle.Alloc(id1, GCHandleType.Pinned);
168 +
169 + int i = -1;
170 +
171 + for (Kinect.JointType jt = Kinect.JointType.SpineBase; jt <= Kinect.JointType.ThumbRight; jt++)
172 + {
173 + Kinect.Joint sourceJoint = body.Joints[jt];
174 +
175 + //Debug.Log("body.Joints[jt]");
176 + //Debug.Log(body.Joints[jt]);
177 + //Debug.Log("jt");
178 + //Debug.Log(jt);
179 + //Debug.Log(body.Joints[jt].JointType);
180 + //Debug.Log(sourceJoint.Position.X * 10);
181 + //Debug.Log(sourceJoint.Position.Y * 10);
182 + //Debug.Log(sourceJoint.Position.Z * 10);
183 + Kinect.Joint? targetJoint = null;
184 +
185 + if (_BoneMap.ContainsKey(jt))
186 + {
187 + targetJoint = body.Joints[_BoneMap[jt]];
188 + }
189 + Transform jointObj = bodyObject.transform.Find(jt.ToString());
190 + jointObj.localPosition = GetVector3FromJoint(sourceJoint);
191 +
192 + //Debug.Log(i);
193 +
194 + i++;
195 + data1[i] = sourceJoint.Position.X;
196 + i++;
197 + data1[i] = sourceJoint.Position.Y;
198 + i++;
199 + data1[i] = sourceJoint.Position.Z;
200 + if ((sourceJoint.Position.X + sourceJoint.Position.Y + sourceJoint.Position.Z) != 0)
201 + {
202 + state[i - 2] = 1;
203 + }
204 + skeleton.dasomset(data1, state, 0, true, true, body.Joints[jt], jointObj);
205 +
206 + LineRenderer lr = jointObj.GetComponent<LineRenderer>();
207 + if (targetJoint.HasValue)
208 + {
209 + //Debug.Log(jointObj.localPosition);
210 + //Debug.Log(GetVector3FromJoint(targetJoint.Value));
211 + lr.SetPosition(0, jointObj.localPosition);
212 + lr.SetPosition(1, GetVector3FromJoint(targetJoint.Value));
213 + lr.SetColors(GetColorForState(sourceJoint.TrackingState), GetColorForState(targetJoint.Value.TrackingState));
214 + }
215 + else
216 + {
217 + lr.enabled = false;
218 + }
219 + }
220 + }
221 +
222 + private static Color GetColorForState(Kinect.TrackingState state)
223 + {
224 + switch (state)
225 + {
226 + case Kinect.TrackingState.Tracked:
227 + return Color.green;
228 +
229 + case Kinect.TrackingState.Inferred:
230 + return Color.red;
231 +
232 + default:
233 + return Color.black;
234 + }
235 + }
236 +
237 + private static Vector3 GetVector3FromJoint(Kinect.Joint joint)
238 + {
239 + return new Vector3(joint.Position.X * 10, joint.Position.Y * 10, joint.Position.Z * 10);
240 + }
241 +}
1 +using System.Collections;
2 +using System.Collections.Generic;
3 +using UnityEngine;
4 +
5 +public class RigBone
6 +{
7 + public GameObject gameObject;
8 + public HumanBodyBones bone;
9 + public bool isValid;
10 + public Transform transform
11 + {
12 + get { return animator.GetBoneTransform(bone); }
13 + }
14 + Animator animator;
15 + Quaternion savedValue;
16 + public RigBone(GameObject g, HumanBodyBones b)
17 + {
18 + gameObject = g;
19 + bone = b;
20 + isValid = false;
21 + animator = gameObject.GetComponent<Animator>();
22 + if (animator == null)
23 + {
24 + Debug.Log("no Animator Component");
25 + return;
26 + }
27 + Avatar avatar = animator.avatar;
28 + if (avatar == null || !avatar.isHuman || !avatar.isValid)
29 + {
30 + Debug.Log("Avatar is not Humanoid or it is not valid");
31 + return;
32 + }
33 + isValid = true;
34 + savedValue = animator.GetBoneTransform(bone).localRotation;
35 + }
36 + public void set(float a, float x, float y, float z)
37 + {
38 + set(Quaternion.AngleAxis(a, new Vector3(x, y, z)));
39 + }
40 + public void set(Quaternion q)
41 + {
42 + animator.GetBoneTransform(bone).localRotation = q;
43 + savedValue = q;
44 + }
45 + public void mul(float a, float x, float y, float z)
46 + {
47 + mul(Quaternion.AngleAxis(a, new Vector3(x, y, z)));
48 + }
49 + public void mul(Quaternion q)
50 + {
51 + Transform tr = animator.GetBoneTransform(bone);
52 + tr.localRotation = q * tr.localRotation;
53 + }
54 + public void offset(float a, float x, float y, float z)
55 + {
56 + offset(Quaternion.AngleAxis(a, new Vector3(x, y, z)));
57 + }
58 + public void offset(Quaternion q)
59 + {
60 + animator.GetBoneTransform(bone).localRotation = q * savedValue;
61 + }
62 + public void changeBone(HumanBodyBones b)
63 + {
64 + bone = b;
65 + savedValue = animator.GetBoneTransform(bone).localRotation;
66 + }
67 +}
1 +using System.Runtime.InteropServices;
2 +using System.Collections;
3 +using System.Collections.Generic;
4 +using UnityEngine;
5 +using RootSystem = System;
6 +using System;
7 +
8 +public class RigControl : MonoBehaviour
9 +{
10 +
11 + //[RootSystem.Runtime.InteropServices.DllImport("NtKinectDll")]
12 + [DllImport("NtKinectDll", CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
13 + public static extern System.IntPtr getKinect();
14 +
15 + [DllImport("NtKinectDll", CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
16 + public static extern int setSkeleton(System.IntPtr kinect, System.IntPtr data, System.IntPtr state, System.IntPtr id);
17 +
18 + int bodyCount = 6;
19 + int jointCount = 25;
20 + private System.IntPtr kinect;
21 +
22 + public GameObject humanoid;
23 + public bool mirror = true;
24 + public bool move = true;
25 + CharacterSkeleton skeleton;
26 +
27 + void Start()
28 + {
29 + kinect = getKinect();
30 + skeleton = new CharacterSkeleton(humanoid);
31 + }
32 + void Update()
33 + {
34 + float[] data = new float[bodyCount * jointCount * 3];
35 + int[] state = new int[bodyCount * jointCount];
36 + int[] id = new int[bodyCount];
37 + GCHandle gch = GCHandle.Alloc(data, GCHandleType.Pinned);
38 + GCHandle gch2 = GCHandle.Alloc(state, GCHandleType.Pinned);
39 + GCHandle gch3 = GCHandle.Alloc(id, GCHandleType.Pinned);
40 + int n = setSkeleton(kinect, gch.AddrOfPinnedObject(), gch2.AddrOfPinnedObject(), gch3.AddrOfPinnedObject());
41 + gch.Free();
42 + gch2.Free();
43 + gch3.Free();
44 + if (n > 0)
45 + {
46 + skeleton.set(data, state, 0, mirror, move);
47 + }
48 +
49 + }
50 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.CameraIntrinsics
8 + //
9 + [RootSystem.Runtime.InteropServices.StructLayout(RootSystem.Runtime.InteropServices.LayoutKind.Sequential)]
10 + public struct CameraIntrinsics
11 + {
12 + public float FocalLengthX { get; set; }
13 + public float FocalLengthY { get; set; }
14 + public float PrincipalPointX { get; set; }
15 + public float PrincipalPointY { get; set; }
16 + public float RadialDistortionSecondOrder { get; set; }
17 + public float RadialDistortionFourthOrder { get; set; }
18 + public float RadialDistortionSixthOrder { get; set; }
19 +
20 + public override int GetHashCode()
21 + {
22 + return FocalLengthX.GetHashCode() ^ FocalLengthY.GetHashCode() ^
23 + PrincipalPointX.GetHashCode() ^ PrincipalPointY.GetHashCode() ^
24 + RadialDistortionSecondOrder.GetHashCode() ^ RadialDistortionFourthOrder.GetHashCode() ^
25 + RadialDistortionSixthOrder.GetHashCode();
26 + }
27 +
28 + public override bool Equals(object obj)
29 + {
30 + if (!(obj is CameraIntrinsics))
31 + {
32 + return false;
33 + }
34 +
35 + return this.Equals((CameraIntrinsics)obj);
36 + }
37 +
38 + public bool Equals(CameraIntrinsics obj)
39 + {
40 + return FocalLengthX.Equals(obj.FocalLengthX) && FocalLengthY.Equals(obj.FocalLengthY) &&
41 + PrincipalPointX.Equals(obj.PrincipalPointX) && PrincipalPointY.Equals(obj.PrincipalPointY) &&
42 + RadialDistortionSecondOrder.Equals(obj.RadialDistortionSecondOrder) &&
43 + RadialDistortionFourthOrder.Equals(obj.RadialDistortionFourthOrder) &&
44 + RadialDistortionSixthOrder.Equals(obj.RadialDistortionSixthOrder);
45 + }
46 +
47 + public static bool operator ==(CameraIntrinsics a, CameraIntrinsics b)
48 + {
49 + return a.Equals(b);
50 + }
51 +
52 + public static bool operator !=(CameraIntrinsics a, CameraIntrinsics b)
53 + {
54 + return !(a.Equals(b));
55 + }
56 + }
57 +
58 +}
1 +using System;
2 +using System.Collections.Generic;
3 +using System.Linq;
4 +using System.Text;
5 +
6 +namespace Helper
7 +{
8 + class CollectionMap<TKey, TValue> : Helper.ThreadSafeDictionary<TKey, TValue> where TValue : new()
9 + {
10 + public bool TryAddDefault(TKey key)
11 + {
12 + lock (_impl)
13 + {
14 + if (!_impl.ContainsKey(key))
15 + {
16 + _impl.Add(key, new TValue());
17 + return true;
18 + }
19 + else
20 + {
21 + return false;
22 + }
23 + }
24 + }
25 + }
26 +}
1 +using UnityEngine;
2 +using UnityEditor;
3 +using System;
4 +using System.Collections.Generic;
5 +using System.IO;
6 +
7 +public static class KinectCopyPluginDataHelper
8 +{
9 + private const string DataDirSuffix = "_Data";
10 + private const string PluginsDirName = "Plugins";
11 +
12 + private static Dictionary<BuildTarget, string> TargetToDirName = new Dictionary<BuildTarget, string>()
13 + {
14 + {BuildTarget.StandaloneWindows, "x86"},
15 + {BuildTarget.StandaloneWindows64, "x86_64"}
16 + };
17 +
18 + public static void CopyPluginData(BuildTarget target, string buildTargetPath, string subDirToCopy)
19 + {
20 + string subDirName;
21 + if (!TargetToDirName.TryGetValue (target, out subDirName))
22 + {
23 + // No work to do
24 + return;
25 + }
26 +
27 + // Get Required Paths
28 + var buildName = Path.GetFileNameWithoutExtension(buildTargetPath);
29 + var targetDir = Directory.GetParent(buildTargetPath);
30 + var separator = Path.DirectorySeparatorChar;
31 +
32 + var buildDataDir = targetDir.FullName + separator + buildName + DataDirSuffix + separator;
33 + var tgtPluginsDir = buildDataDir + separator + PluginsDirName + separator + subDirToCopy + separator;
34 + var srcPluginsDir = Application.dataPath + separator + PluginsDirName + separator + subDirName + separator + subDirToCopy + separator;
35 +
36 + CopyAll (new DirectoryInfo (srcPluginsDir), new DirectoryInfo(tgtPluginsDir));
37 + }
38 +
39 + /// <summary>
40 + /// Recursive Copy Directory Method
41 + /// </summary>
42 + private static void CopyAll(DirectoryInfo source, DirectoryInfo target)
43 + {
44 + // Check if the source directory exists, if not, don't do any work.
45 + if (!Directory.Exists(source.FullName))
46 + {
47 + return;
48 + }
49 +
50 + // Check if the target directory exists, if not, create it.
51 + if (!Directory.Exists(target.FullName))
52 + {
53 + Directory.CreateDirectory(target.FullName);
54 + }
55 +
56 + // Copy each file into it’s new directory.
57 + foreach (var fileInfo in source.GetFiles())
58 + {
59 + fileInfo.CopyTo (Path.Combine (target.ToString (), fileInfo.Name), true);
60 + }
61 +
62 + // Copy each subdirectory using recursion.
63 + foreach (var subDirInfo in source.GetDirectories())
64 + {
65 + DirectoryInfo nextTargetSubDir = target.CreateSubdirectory(subDirInfo.Name);
66 + CopyAll(subDirInfo, nextTargetSubDir);
67 + }
68 + }
69 +
70 +}
1 +using System;
2 +using System.Collections.Generic;
3 +using System.Runtime.InteropServices;
4 +using System.Linq;
5 +
6 +namespace Helper
7 +{
8 + internal class EventPump : UnityEngine.MonoBehaviour
9 + {
10 + private static object s_Lock = new object();
11 + private Queue<Action> m_Queue = new Queue<Action>();
12 +
13 + public static EventPump Instance
14 + {
15 + get;
16 + private set;
17 + }
18 +
19 + public static void EnsureInitialized()
20 + {
21 + try
22 + {
23 + if (EventPump.Instance == null)
24 + {
25 + lock (s_Lock)
26 + {
27 + if (EventPump.Instance == null)
28 + {
29 + UnityEngine.GameObject parent = new UnityEngine.GameObject("Kinect Desktop Event Pump");
30 + EventPump.Instance = parent.AddComponent<Helper.EventPump>();
31 + DontDestroyOnLoad(parent);
32 + }
33 + }
34 + }
35 + }
36 + catch
37 + {
38 + UnityEngine.Debug.LogError("Events must be registered on the main thread.");
39 + return;
40 + }
41 + }
42 +
43 + private void Update()
44 + {
45 + lock (m_Queue)
46 + {
47 + while (m_Queue.Count > 0)
48 + {
49 + var action = m_Queue.Dequeue();
50 + try
51 + {
52 + action.Invoke();
53 + }
54 + catch { }
55 + }
56 + }
57 + }
58 +
59 + private void OnApplicationQuit()
60 + {
61 + var sensor = Windows.Kinect.KinectSensor.GetDefault();
62 + if (sensor != null && sensor.IsOpen)
63 + {
64 + sensor.Close();
65 + }
66 +
67 + NativeObjectCache.Flush();
68 + }
69 +
70 + public void Enqueue(Action action)
71 + {
72 + lock (m_Queue)
73 + {
74 + m_Queue.Enqueue(action);
75 + }
76 + }
77 + }
78 +}
...\ No newline at end of file ...\ No newline at end of file
1 +using System;
2 +using System.Runtime.InteropServices;
3 +
4 +namespace Helper
5 +{
6 + public static class ExceptionHelper
7 + {
8 + private const int E_NOTIMPL = unchecked((int)0x80004001);
9 + private const int E_OUTOFMEMORY = unchecked((int)0x8007000E);
10 + private const int E_INVALIDARG = unchecked((int)0x80070057);
11 + private const int E_POINTER = unchecked((int) 0x80004003);
12 + private const int E_PENDING = unchecked((int)0x8000000A);
13 + private const int E_FAIL = unchecked((int)0x80004005);
14 +
15 + public static void CheckLastError()
16 + {
17 + int hr = Marshal.GetLastWin32Error();
18 +
19 + if ((hr == E_PENDING) || (hr == E_FAIL))
20 + {
21 + // Ignore E_PENDING/E_FAIL - We use this to indicate no pending or missed frames
22 + return;
23 + }
24 +
25 + if (hr < 0)
26 + {
27 + Exception exception = Marshal.GetExceptionForHR(hr);
28 + string message = string.Format("This API has returned an exception from an HRESULT: 0x{0:X}", hr);
29 +
30 + switch (hr)
31 + {
32 + case E_NOTIMPL:
33 + throw new NotImplementedException(message, exception);
34 +
35 + case E_OUTOFMEMORY:
36 + throw new OutOfMemoryException(message, exception);
37 +
38 + case E_INVALIDARG:
39 + throw new ArgumentException(message, exception);
40 +
41 + case E_POINTER:
42 + throw new ArgumentNullException(message, exception);
43 +
44 + default:
45 + throw new InvalidOperationException(message, exception);
46 + }
47 + }
48 + }
49 + }
50 +}
...\ No newline at end of file ...\ No newline at end of file
1 +using System;
2 +using System.Collections.Generic;
3 +using System.Runtime.InteropServices;
4 +using System.Linq;
5 +
6 +namespace Helper
7 +{
8 + internal interface INativeWrapper
9 + {
10 + System.IntPtr nativePtr { get; }
11 + }
12 +}
...\ No newline at end of file ...\ No newline at end of file
1 +using RootSystem = System;
2 +using System;
3 +using System.Collections.Generic;
4 +using System.Runtime.InteropServices;
5 +
6 +namespace Windows.Kinect
7 +{
8 + // NOTE: This uses an IBuffer under the covers, it is renamed here to give parity to our managed APIs.
9 + public class KinectBuffer : Helper.INativeWrapper, IDisposable
10 + {
11 + internal RootSystem.IntPtr _pNative;
12 +
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal KinectBuffer(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Storage_Streams_IBuffer_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~KinectBuffer()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
28 + private static extern void Windows_Storage_Streams_IBuffer_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
30 + private static extern void Windows_Storage_Streams_IBuffer_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + Helper.NativeObjectCache.RemoveObject<KinectBuffer>(_pNative);
39 +
40 + if (disposing)
41 + {
42 + Windows_Storage_Streams_IBuffer_Dispose(_pNative);
43 + }
44 +
45 + Windows_Storage_Streams_IBuffer_ReleaseObject(ref _pNative);
46 +
47 + _pNative = RootSystem.IntPtr.Zero;
48 + }
49 +
50 +
51 + // Public Properties
52 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError = true)]
53 + private static extern uint Windows_Storage_Streams_IBuffer_get_Capacity(RootSystem.IntPtr pNative);
54 + public uint Capacity
55 + {
56 + get
57 + {
58 + if (_pNative == RootSystem.IntPtr.Zero)
59 + {
60 + throw new RootSystem.ObjectDisposedException("KinectBuffer");
61 + }
62 +
63 + uint capacity = Windows_Storage_Streams_IBuffer_get_Capacity(_pNative);
64 + Helper.ExceptionHelper.CheckLastError();
65 + return capacity;
66 + }
67 + }
68 +
69 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError = true)]
70 + private static extern uint Windows_Storage_Streams_IBuffer_get_Length(RootSystem.IntPtr pNative);
71 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError = true)]
72 + private static extern void Windows_Storage_Streams_IBuffer_put_Length(RootSystem.IntPtr pNative, uint value);
73 + public uint Length
74 + {
75 + get
76 + {
77 + if (_pNative == RootSystem.IntPtr.Zero)
78 + {
79 + throw new RootSystem.ObjectDisposedException("KinectBuffer");
80 + }
81 +
82 + uint length = Windows_Storage_Streams_IBuffer_get_Length(_pNative);
83 + Helper.ExceptionHelper.CheckLastError();
84 + return length;
85 + }
86 + set
87 + {
88 + if (_pNative == RootSystem.IntPtr.Zero)
89 + {
90 + throw new RootSystem.ObjectDisposedException("KinectBuffer");
91 + }
92 +
93 + Windows_Storage_Streams_IBuffer_put_Length(_pNative, value);
94 + Helper.ExceptionHelper.CheckLastError();
95 + }
96 + }
97 +
98 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
99 + private static extern void Windows_Storage_Streams_IBuffer_Dispose(RootSystem.IntPtr pNative);
100 + // Constructors and Finalizers
101 + public void Dispose()
102 + {
103 + if (_pNative == RootSystem.IntPtr.Zero)
104 + {
105 + throw new RootSystem.ObjectDisposedException("KinectBuffer");
106 + }
107 +
108 + Dispose(true);
109 + RootSystem.GC.SuppressFinalize(this);
110 + }
111 +
112 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError = true)]
113 + private static extern RootSystem.IntPtr Windows_Storage_Streams_IBuffer_get_UnderlyingBuffer(RootSystem.IntPtr pNative);
114 + public IntPtr UnderlyingBuffer
115 + {
116 + get
117 + {
118 + if (_pNative == RootSystem.IntPtr.Zero)
119 + {
120 + throw new RootSystem.ObjectDisposedException("KinectBuffer");
121 + }
122 +
123 + RootSystem.IntPtr value = Windows_Storage_Streams_IBuffer_get_UnderlyingBuffer(_pNative);
124 + Helper.ExceptionHelper.CheckLastError();
125 + return value;
126 + }
127 + }
128 + }
129 +}
...\ No newline at end of file ...\ No newline at end of file
1 +using RootSystem = System;
2 +using System;
3 +using System.Collections.Generic;
4 +using System.Runtime.InteropServices;
5 +
6 +namespace Windows.Kinect
7 +{
8 + [RootSystem.Runtime.InteropServices.StructLayout(RootSystem.Runtime.InteropServices.LayoutKind.Sequential)]
9 + public struct PointF
10 + {
11 + public float X { get; set; }
12 + public float Y { get; set; }
13 +
14 + public override int GetHashCode()
15 + {
16 + return X.GetHashCode() ^ Y.GetHashCode();
17 + }
18 +
19 + public override bool Equals(object obj)
20 + {
21 + if (!(obj is PointF))
22 + {
23 + return false;
24 + }
25 +
26 + return this.Equals((ColorSpacePoint)obj);
27 + }
28 +
29 + public bool Equals(ColorSpacePoint obj)
30 + {
31 + return (X == obj.X) && (Y == obj.Y);
32 + }
33 +
34 + public static bool operator ==(PointF a, PointF b)
35 + {
36 + return a.Equals(b);
37 + }
38 +
39 + public static bool operator !=(PointF a, PointF b)
40 + {
41 + return !(a.Equals(b));
42 + }
43 + }
44 +
45 + public sealed partial class AudioBeamSubFrame
46 + {
47 + [RootSystem.Runtime.InteropServices.DllImport(
48 + "KinectUnityAddin",
49 + EntryPoint = "Windows_Kinect_AudioBeamSubFrame_CopyFrameDataToArray",
50 + CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl,
51 + SetLastError = true)]
52 + private static extern void Windows_Kinect_AudioBeamSubFrame_CopyFrameDataToIntPtr(RootSystem.IntPtr pNative, RootSystem.IntPtr frameData, uint frameDataSize);
53 + public void CopyFrameDataToIntPtr(RootSystem.IntPtr frameData, uint size)
54 + {
55 + if (_pNative == RootSystem.IntPtr.Zero)
56 + {
57 + throw new RootSystem.ObjectDisposedException("AudioBeamSubFrame");
58 + }
59 +
60 + Windows_Kinect_AudioBeamSubFrame_CopyFrameDataToIntPtr(_pNative, frameData, size);
61 + Helper.ExceptionHelper.CheckLastError();
62 + }
63 +
64 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError = true)]
65 + private static extern RootSystem.IntPtr Windows_Kinect_AudioBeamSubFrame_LockAudioBuffer(RootSystem.IntPtr pNative);
66 + public Windows.Kinect.KinectBuffer LockAudioBuffer()
67 + {
68 + if (_pNative == RootSystem.IntPtr.Zero)
69 + {
70 + throw new RootSystem.ObjectDisposedException("AudioBeamSubFrame");
71 + }
72 +
73 + RootSystem.IntPtr objectPointer = Windows_Kinect_AudioBeamSubFrame_LockAudioBuffer(_pNative);
74 + Helper.ExceptionHelper.CheckLastError();
75 +
76 + if (objectPointer == RootSystem.IntPtr.Zero)
77 + {
78 + return null;
79 + }
80 +
81 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.KinectBuffer>(objectPointer, n => new Windows.Kinect.KinectBuffer(n));
82 + }
83 + }
84 +
85 + public sealed partial class AudioBeamFrame
86 + {
87 + private Windows.Kinect.AudioBeamSubFrame[] _subFrames = null;
88 +
89 + private void Dispose(bool disposing)
90 + {
91 + if (_pNative == RootSystem.IntPtr.Zero)
92 + {
93 + return;
94 + }
95 +
96 + if (_subFrames != null)
97 + {
98 + foreach (var subFrame in _subFrames)
99 + {
100 + subFrame.Dispose();
101 + }
102 +
103 + _subFrames = null;
104 + }
105 +
106 + __EventCleanup();
107 +
108 + Helper.NativeObjectCache.RemoveObject<AudioBeamFrame>(_pNative);
109 + Windows_Kinect_AudioBeamFrame_ReleaseObject(ref _pNative);
110 +
111 + if (disposing)
112 + {
113 + Windows_Kinect_AudioBeamFrame_Dispose(_pNative);
114 + }
115 +
116 + _pNative = RootSystem.IntPtr.Zero;
117 + }
118 +
119 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
120 + private static extern void Windows_Kinect_AudioBeamFrame_Dispose(RootSystem.IntPtr pNative);
121 + public void Dispose()
122 + {
123 + if (_pNative == RootSystem.IntPtr.Zero)
124 + {
125 + return;
126 + }
127 +
128 + Dispose(true);
129 + RootSystem.GC.SuppressFinalize(this);
130 + }
131 +
132 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError = true)]
133 + private static extern int Windows_Kinect_AudioBeamFrame_get_SubFrames(RootSystem.IntPtr pNative, [RootSystem.Runtime.InteropServices.Out] RootSystem.IntPtr[] outCollection, int outCollectionSize);
134 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
135 + private static extern int Windows_Kinect_AudioBeamFrame_get_SubFrames_Length(RootSystem.IntPtr pNative);
136 + public RootSystem.Collections.Generic.IList<Windows.Kinect.AudioBeamSubFrame> SubFrames
137 + {
138 + get
139 + {
140 + if (_pNative == RootSystem.IntPtr.Zero)
141 + {
142 + throw new RootSystem.ObjectDisposedException("AudioBeamFrame");
143 + }
144 +
145 + if (_subFrames == null)
146 + {
147 + int collectionSize = Windows_Kinect_AudioBeamFrame_get_SubFrames_Length(_pNative);
148 + var outCollection = new RootSystem.IntPtr[collectionSize];
149 + _subFrames = new Windows.Kinect.AudioBeamSubFrame[collectionSize];
150 +
151 + collectionSize = Windows_Kinect_AudioBeamFrame_get_SubFrames(_pNative, outCollection, collectionSize);
152 + Helper.ExceptionHelper.CheckLastError();
153 +
154 + for (int i = 0; i < collectionSize; i++)
155 + {
156 + if (outCollection[i] == RootSystem.IntPtr.Zero)
157 + {
158 + continue;
159 + }
160 +
161 + var obj = Helper.NativeObjectCache.GetObject<Windows.Kinect.AudioBeamSubFrame>(outCollection[i]);
162 + if (obj == null)
163 + {
164 + obj = new Windows.Kinect.AudioBeamSubFrame(outCollection[i]);
165 + Helper.NativeObjectCache.AddObject<Windows.Kinect.AudioBeamSubFrame>(outCollection[i], obj);
166 + }
167 +
168 + _subFrames[i] = obj;
169 + }
170 + }
171 +
172 + return _subFrames;
173 + }
174 + }
175 + }
176 +
177 + public sealed partial class BodyFrame
178 + {
179 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError = true)]
180 + private static extern void Windows_Kinect_BodyFrame_GetAndRefreshBodyData(RootSystem.IntPtr pNative, [RootSystem.Runtime.InteropServices.Out] RootSystem.IntPtr[] bodies, int bodiesSize);
181 + public void GetAndRefreshBodyData(RootSystem.Collections.Generic.IList<Windows.Kinect.Body> bodies)
182 + {
183 + if (_pNative == RootSystem.IntPtr.Zero)
184 + {
185 + throw new RootSystem.ObjectDisposedException("BodyFrame");
186 + }
187 +
188 + int _bodies_idx = 0;
189 + var _bodies = new RootSystem.IntPtr[bodies.Count];
190 + for (int i = 0; i < bodies.Count; i++)
191 + {
192 + if (bodies[i] == null)
193 + {
194 + bodies[i] = new Body();
195 + }
196 +
197 + _bodies[_bodies_idx] = bodies[i].GetIntPtr();
198 + _bodies_idx++;
199 + }
200 +
201 + Windows_Kinect_BodyFrame_GetAndRefreshBodyData(_pNative, _bodies, bodies.Count);
202 + Helper.ExceptionHelper.CheckLastError();
203 +
204 + for (int i = 0; i < bodies.Count; i++)
205 + {
206 + bodies[i].SetIntPtr(_bodies[i]);
207 + }
208 + }
209 + }
210 +
211 + public sealed partial class Body
212 + {
213 + internal void SetIntPtr(RootSystem.IntPtr value) { _pNative = value; }
214 + internal RootSystem.IntPtr GetIntPtr() { return _pNative; }
215 +
216 + internal Body() { }
217 +
218 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError = true)]
219 + private static extern RootSystem.IntPtr Windows_Kinect_Body_get_Lean(RootSystem.IntPtr pNative);
220 + public Windows.Kinect.PointF Lean
221 + {
222 + get
223 + {
224 + if (_pNative == RootSystem.IntPtr.Zero)
225 + {
226 + throw new RootSystem.ObjectDisposedException("Body");
227 + }
228 +
229 + var objectPointer = Windows_Kinect_Body_get_Lean(_pNative);
230 + Helper.ExceptionHelper.CheckLastError();
231 +
232 + var obj = (Windows.Kinect.PointF)RootSystem.Runtime.InteropServices.Marshal.PtrToStructure(objectPointer, typeof(Windows.Kinect.PointF));
233 + RootSystem.Runtime.InteropServices.Marshal.FreeHGlobal(objectPointer);
234 + return obj;
235 + }
236 + }
237 + }
238 +
239 + public sealed partial class ColorFrame
240 + {
241 + [RootSystem.Runtime.InteropServices.DllImport(
242 + "KinectUnityAddin",
243 + EntryPoint = "Windows_Kinect_ColorFrame_CopyRawFrameDataToArray",
244 + CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl,
245 + SetLastError = true)]
246 + private static extern void Windows_Kinect_ColorFrame_CopyRawFrameDataToIntPtr(RootSystem.IntPtr pNative, IntPtr frameData, uint frameDataSize);
247 + public void CopyRawFrameDataToIntPtr(RootSystem.IntPtr frameData, uint size)
248 + {
249 + if (_pNative == RootSystem.IntPtr.Zero)
250 + {
251 + throw new RootSystem.ObjectDisposedException("ColorFrame");
252 + }
253 +
254 + Windows_Kinect_ColorFrame_CopyRawFrameDataToIntPtr(_pNative, frameData, size);
255 + Helper.ExceptionHelper.CheckLastError();
256 + }
257 +
258 + [RootSystem.Runtime.InteropServices.DllImport(
259 + "KinectUnityAddin",
260 + EntryPoint = "Windows_Kinect_ColorFrame_CopyConvertedFrameDataToArray",
261 + CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl,
262 + SetLastError = true)]
263 + private static extern void Windows_Kinect_ColorFrame_CopyConvertedFrameDataToIntPtr(RootSystem.IntPtr pNative, IntPtr frameData, uint frameDataSize, Windows.Kinect.ColorImageFormat colorFormat);
264 + public void CopyConvertedFrameDataToIntPtr(RootSystem.IntPtr frameData, uint size, Windows.Kinect.ColorImageFormat colorFormat)
265 + {
266 + if (_pNative == RootSystem.IntPtr.Zero)
267 + {
268 + throw new RootSystem.ObjectDisposedException("ColorFrame");
269 + }
270 +
271 + Windows_Kinect_ColorFrame_CopyConvertedFrameDataToIntPtr(_pNative, frameData, size, colorFormat);
272 + Helper.ExceptionHelper.CheckLastError();
273 + }
274 +
275 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError = true)]
276 + private static extern RootSystem.IntPtr Windows_Kinect_ColorFrame_LockRawImageBuffer(RootSystem.IntPtr pNative);
277 + public Windows.Kinect.KinectBuffer LockRawImageBuffer()
278 + {
279 + if (_pNative == RootSystem.IntPtr.Zero)
280 + {
281 + throw new RootSystem.ObjectDisposedException("ColorFrame");
282 + }
283 +
284 + RootSystem.IntPtr objectPointer = Windows_Kinect_ColorFrame_LockRawImageBuffer(_pNative);
285 + Helper.ExceptionHelper.CheckLastError();
286 +
287 + if (objectPointer == RootSystem.IntPtr.Zero)
288 + {
289 + return null;
290 + }
291 +
292 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.KinectBuffer>(objectPointer, n => new Windows.Kinect.KinectBuffer(n));
293 + }
294 +
295 + }
296 +
297 + public sealed partial class DepthFrame
298 + {
299 + [RootSystem.Runtime.InteropServices.DllImport(
300 + "KinectUnityAddin",
301 + EntryPoint = "Windows_Kinect_DepthFrame_CopyFrameDataToArray",
302 + CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl,
303 + SetLastError = true)]
304 + private static extern void Windows_Kinect_DepthFrame_CopyFrameDataToIntPtr(RootSystem.IntPtr pNative, IntPtr frameData, uint frameDataSize);
305 + public void CopyFrameDataToIntPtr(RootSystem.IntPtr frameData, uint size)
306 + {
307 + if (_pNative == RootSystem.IntPtr.Zero)
308 + {
309 + throw new RootSystem.ObjectDisposedException("DepthFrame");
310 + }
311 +
312 + Windows_Kinect_DepthFrame_CopyFrameDataToIntPtr(_pNative, frameData, size / sizeof(ushort));
313 + Helper.ExceptionHelper.CheckLastError();
314 + }
315 +
316 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError = true)]
317 + private static extern RootSystem.IntPtr Windows_Kinect_DepthFrame_LockImageBuffer(RootSystem.IntPtr pNative);
318 + public Windows.Kinect.KinectBuffer LockImageBuffer()
319 + {
320 + if (_pNative == RootSystem.IntPtr.Zero)
321 + {
322 + throw new RootSystem.ObjectDisposedException("DepthFrame");
323 + }
324 +
325 + RootSystem.IntPtr objectPointer = Windows_Kinect_DepthFrame_LockImageBuffer(_pNative);
326 + Helper.ExceptionHelper.CheckLastError();
327 +
328 + if (objectPointer == RootSystem.IntPtr.Zero)
329 + {
330 + return null;
331 + }
332 +
333 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.KinectBuffer>(objectPointer, n => new Windows.Kinect.KinectBuffer(n));
334 + }
335 + }
336 +
337 + public sealed partial class BodyIndexFrame
338 + {
339 + [RootSystem.Runtime.InteropServices.DllImport(
340 + "KinectUnityAddin",
341 + EntryPoint = "Windows_Kinect_BodyIndexFrame_CopyFrameDataToArray",
342 + CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl,
343 + SetLastError = true)]
344 + private static extern void Windows_Kinect_BodyIndexFrame_CopyFrameDataToIntPtr(RootSystem.IntPtr pNative, IntPtr frameData, uint frameDataSize);
345 + public void CopyFrameDataToIntPtr(RootSystem.IntPtr frameData, uint size)
346 + {
347 + if (_pNative == RootSystem.IntPtr.Zero)
348 + {
349 + throw new RootSystem.ObjectDisposedException("BodyIndexFrame");
350 + }
351 +
352 + Windows_Kinect_BodyIndexFrame_CopyFrameDataToIntPtr(_pNative, frameData, size);
353 + Helper.ExceptionHelper.CheckLastError();
354 + }
355 +
356 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError = true)]
357 + private static extern RootSystem.IntPtr Windows_Kinect_BodyIndexFrame_LockImageBuffer(RootSystem.IntPtr pNative);
358 + public Windows.Kinect.KinectBuffer LockImageBuffer()
359 + {
360 + if (_pNative == RootSystem.IntPtr.Zero)
361 + {
362 + throw new RootSystem.ObjectDisposedException("BodyIndexFrame");
363 + }
364 +
365 + RootSystem.IntPtr objectPointer = Windows_Kinect_BodyIndexFrame_LockImageBuffer(_pNative);
366 + Helper.ExceptionHelper.CheckLastError();
367 +
368 + if (objectPointer == RootSystem.IntPtr.Zero)
369 + {
370 + return null;
371 + }
372 +
373 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.KinectBuffer>(objectPointer, n => new Windows.Kinect.KinectBuffer(n));
374 + }
375 +
376 + }
377 +
378 + public sealed partial class InfraredFrame
379 + {
380 + [RootSystem.Runtime.InteropServices.DllImport(
381 + "KinectUnityAddin",
382 + EntryPoint = "Windows_Kinect_InfraredFrame_CopyFrameDataToArray",
383 + CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl,
384 + SetLastError = true)]
385 + private static extern void Windows_Kinect_InfraredFrame_CopyFrameDataToIntPtr(RootSystem.IntPtr pNative, IntPtr frameData, uint frameDataSize);
386 + public void CopyFrameDataToIntPtr(RootSystem.IntPtr frameData, uint size)
387 + {
388 + if (_pNative == RootSystem.IntPtr.Zero)
389 + {
390 + throw new RootSystem.ObjectDisposedException("InfraredFrame");
391 + }
392 +
393 + Windows_Kinect_InfraredFrame_CopyFrameDataToIntPtr(_pNative, frameData, size / sizeof(ushort));
394 + Helper.ExceptionHelper.CheckLastError();
395 + }
396 +
397 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError = true)]
398 + private static extern RootSystem.IntPtr Windows_Kinect_InfraredFrame_LockImageBuffer(RootSystem.IntPtr pNative);
399 + public Windows.Kinect.KinectBuffer LockImageBuffer()
400 + {
401 + if (_pNative == RootSystem.IntPtr.Zero)
402 + {
403 + throw new RootSystem.ObjectDisposedException("InfraredFrame");
404 + }
405 +
406 + RootSystem.IntPtr objectPointer = Windows_Kinect_InfraredFrame_LockImageBuffer(_pNative);
407 + Helper.ExceptionHelper.CheckLastError();
408 +
409 + if (objectPointer == RootSystem.IntPtr.Zero)
410 + {
411 + return null;
412 + }
413 +
414 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.KinectBuffer>(objectPointer, n => new Windows.Kinect.KinectBuffer(n));
415 + }
416 +
417 + }
418 +
419 + public sealed partial class KinectSensor
420 + {
421 + private void Dispose(bool disposing)
422 + {
423 + if (_pNative == RootSystem.IntPtr.Zero)
424 + {
425 + return;
426 + }
427 +
428 + if (IsOpen)
429 + {
430 + Close();
431 + }
432 +
433 + __EventCleanup();
434 +
435 + Helper.NativeObjectCache.RemoveObject<KinectSensor>(_pNative);
436 + Windows_Kinect_KinectSensor_ReleaseObject(ref _pNative);
437 +
438 + _pNative = RootSystem.IntPtr.Zero;
439 + }
440 + }
441 +
442 + public sealed partial class LongExposureInfraredFrame
443 + {
444 + [RootSystem.Runtime.InteropServices.DllImport(
445 + "KinectUnityAddin",
446 + EntryPoint = "Windows_Kinect_LongExposureInfraredFrame_CopyFrameDataToArray",
447 + CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl,
448 + SetLastError = true)]
449 + private static extern void Windows_Kinect_LongExposureInfraredFrame_CopyFrameDataToIntPtr(RootSystem.IntPtr pNative, IntPtr frameData, uint frameDataSize);
450 + public void CopyFrameDataToIntPtr(RootSystem.IntPtr frameData, uint size)
451 + {
452 + if (_pNative == RootSystem.IntPtr.Zero)
453 + {
454 + throw new RootSystem.ObjectDisposedException("LongExposureInfraredFrame");
455 + }
456 +
457 + Windows_Kinect_LongExposureInfraredFrame_CopyFrameDataToIntPtr(_pNative, frameData, size / sizeof(ushort));
458 + Helper.ExceptionHelper.CheckLastError();
459 + }
460 +
461 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError = true)]
462 + private static extern RootSystem.IntPtr Windows_Kinect_LongExposureInfraredFrame_LockImageBuffer(RootSystem.IntPtr pNative);
463 + public Windows.Kinect.KinectBuffer LockImageBuffer()
464 + {
465 + if (_pNative == RootSystem.IntPtr.Zero)
466 + {
467 + throw new RootSystem.ObjectDisposedException("LongExposureInfraredFrame");
468 + }
469 +
470 + RootSystem.IntPtr objectPointer = Windows_Kinect_LongExposureInfraredFrame_LockImageBuffer(_pNative);
471 + Helper.ExceptionHelper.CheckLastError();
472 +
473 + if (objectPointer == RootSystem.IntPtr.Zero)
474 + {
475 + return null;
476 + }
477 +
478 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.KinectBuffer>(objectPointer, n => new Windows.Kinect.KinectBuffer(n));
479 + }
480 +
481 + }
482 +
483 + public sealed partial class CoordinateMapper
484 + {
485 + private PointF[] _DepthFrameToCameraSpaceTable = null;
486 +
487 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError = true)]
488 + private static extern RootSystem.IntPtr Windows_Kinect_CoordinateMapper_GetDepthCameraIntrinsics(RootSystem.IntPtr pNative);
489 + public Windows.Kinect.CameraIntrinsics GetDepthCameraIntrinsics()
490 + {
491 + if (_pNative == RootSystem.IntPtr.Zero)
492 + {
493 + throw new RootSystem.ObjectDisposedException("CoordinateMapper");
494 + }
495 +
496 + var objectPointer = Windows_Kinect_CoordinateMapper_GetDepthCameraIntrinsics(_pNative);
497 + Helper.ExceptionHelper.CheckLastError();
498 +
499 + var obj = (Windows.Kinect.CameraIntrinsics)RootSystem.Runtime.InteropServices.Marshal.PtrToStructure(objectPointer, typeof(Windows.Kinect.CameraIntrinsics));
500 + RootSystem.Runtime.InteropServices.Marshal.FreeHGlobal(objectPointer);
501 + return obj;
502 + }
503 +
504 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError = true)]
505 + private static extern int Windows_Kinect_CoordinateMapper_GetDepthFrameToCameraSpaceTable(RootSystem.IntPtr pNative, RootSystem.IntPtr outCollection, uint outCollectionSize);
506 + public Windows.Kinect.PointF[] GetDepthFrameToCameraSpaceTable()
507 + {
508 + if (_pNative == RootSystem.IntPtr.Zero)
509 + {
510 + throw new RootSystem.ObjectDisposedException("CoordinateMapper");
511 + }
512 +
513 + if (_DepthFrameToCameraSpaceTable == null)
514 + {
515 + var desc = KinectSensor.GetDefault().DepthFrameSource.FrameDescription;
516 + _DepthFrameToCameraSpaceTable = new PointF[desc.Width * desc.Height];
517 +
518 + var pointsSmartGCHandle = new Helper.SmartGCHandle(RootSystem.Runtime.InteropServices.GCHandle.Alloc(_DepthFrameToCameraSpaceTable, RootSystem.Runtime.InteropServices.GCHandleType.Pinned));
519 + var _points = pointsSmartGCHandle.AddrOfPinnedObject();
520 + Windows_Kinect_CoordinateMapper_GetDepthFrameToCameraSpaceTable(_pNative, _points, (uint)_DepthFrameToCameraSpaceTable.Length);
521 + Helper.ExceptionHelper.CheckLastError();
522 + }
523 +
524 + return _DepthFrameToCameraSpaceTable;
525 + }
526 +
527 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError = true)]
528 + private static extern void Windows_Kinect_CoordinateMapper_MapColorFrameToDepthSpace(
529 + RootSystem.IntPtr pNative,
530 + RootSystem.IntPtr depthFrameData,
531 + uint depthFrameDataSize,
532 + RootSystem.IntPtr depthSpacePoints,
533 + uint depthSpacePointsSize);
534 + public void MapColorFrameToDepthSpaceUsingIntPtr(RootSystem.IntPtr depthFrameData, uint depthFrameSize, RootSystem.IntPtr depthSpacePoints, uint depthSpacePointsSize)
535 + {
536 + if (_pNative == RootSystem.IntPtr.Zero)
537 + {
538 + throw new RootSystem.ObjectDisposedException("CoordinateMapper");
539 + }
540 +
541 + uint length = depthFrameSize / sizeof(UInt16);
542 + Windows_Kinect_CoordinateMapper_MapColorFrameToDepthSpace(_pNative, depthFrameData, length, depthSpacePoints, depthSpacePointsSize);
543 + Helper.ExceptionHelper.CheckLastError();
544 + }
545 +
546 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError = true)]
547 + private static extern void Windows_Kinect_CoordinateMapper_MapColorFrameToCameraSpace(
548 + RootSystem.IntPtr pNative,
549 + RootSystem.IntPtr depthFrameData,
550 + uint depthFrameDataSize,
551 + RootSystem.IntPtr cameraSpacePoints,
552 + uint cameraSpacePointsSize);
553 + public void MapColorFrameToCameraSpaceUsingIntPtr(RootSystem.IntPtr depthFrameData, int depthFrameSize, RootSystem.IntPtr cameraSpacePoints, uint cameraSpacePointsSize)
554 + {
555 + if (_pNative == RootSystem.IntPtr.Zero)
556 + {
557 + throw new RootSystem.ObjectDisposedException("CoordinateMapper");
558 + }
559 +
560 + uint length = (uint)depthFrameSize / sizeof(UInt16);
561 + Windows_Kinect_CoordinateMapper_MapColorFrameToCameraSpace(_pNative, depthFrameData, length, cameraSpacePoints, cameraSpacePointsSize);
562 + Helper.ExceptionHelper.CheckLastError();
563 + }
564 +
565 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError = true)]
566 + private static extern void Windows_Kinect_CoordinateMapper_MapDepthFrameToColorSpace(
567 + RootSystem.IntPtr pNative,
568 + RootSystem.IntPtr depthFrameData,
569 + uint depthFrameDataSize,
570 + RootSystem.IntPtr colorSpacePoints,
571 + uint colorSpacePointsSize);
572 + public void MapDepthFrameToColorSpaceUsingIntPtr(RootSystem.IntPtr depthFrameData, int depthFrameSize, RootSystem.IntPtr colorSpacePoints, uint colorSpacePointsSize)
573 + {
574 + if (_pNative == RootSystem.IntPtr.Zero)
575 + {
576 + throw new RootSystem.ObjectDisposedException("CoordinateMapper");
577 + }
578 +
579 + uint length = (uint)depthFrameSize / sizeof(UInt16);
580 + Windows_Kinect_CoordinateMapper_MapDepthFrameToColorSpace(_pNative, depthFrameData, length, colorSpacePoints, colorSpacePointsSize);
581 + Helper.ExceptionHelper.CheckLastError();
582 + }
583 +
584 +
585 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention = RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError = true)]
586 + private static extern void Windows_Kinect_CoordinateMapper_MapDepthFrameToCameraSpace(
587 + RootSystem.IntPtr pNative,
588 + IntPtr depthFrameData,
589 + uint depthFrameDataSize,
590 + RootSystem.IntPtr cameraSpacePoints,
591 + uint cameraSpacePointsSize);
592 + public void MapDepthFrameToCameraSpaceUsingIntPtr(RootSystem.IntPtr depthFrameData, int depthFrameSize, RootSystem.IntPtr cameraSpacePoints, uint cameraSpacePointsSize)
593 + {
594 + if (_pNative == RootSystem.IntPtr.Zero)
595 + {
596 + throw new RootSystem.ObjectDisposedException("CoordinateMapper");
597 + }
598 +
599 + uint length = (uint)depthFrameSize / sizeof(UInt16);
600 + Windows_Kinect_CoordinateMapper_MapDepthFrameToCameraSpace(_pNative, depthFrameData, length, cameraSpacePoints, cameraSpacePointsSize);
601 + Helper.ExceptionHelper.CheckLastError();
602 + }
603 + }
604 +}
1 +using System;
2 +using System.Collections.Generic;
3 +using System.Runtime.InteropServices;
4 +using System.Linq;
5 +
6 +namespace Helper
7 +{
8 + public static class NativeObjectCache
9 + {
10 + private static object _lock = new object();
11 + private static Dictionary<Type, Dictionary<IntPtr, WeakReference>> _objectCache = new Dictionary<Type, Dictionary<IntPtr, WeakReference>>();
12 + public static void AddObject<T>(IntPtr nativePtr, T obj) where T : class
13 + {
14 + lock (_lock)
15 + {
16 + Dictionary<IntPtr, WeakReference> objCache = null;
17 +
18 + if (!_objectCache.TryGetValue(typeof(T), out objCache) || objCache == null)
19 + {
20 + objCache = new Dictionary<IntPtr, WeakReference>();
21 + _objectCache[typeof(T)] = objCache;
22 + }
23 +
24 + objCache[nativePtr] = new WeakReference(obj);
25 + }
26 + }
27 +
28 + public static void Flush()
29 + {
30 + lock(_lock)
31 + {
32 + foreach (var byType in _objectCache.ToArray())
33 + {
34 + foreach(var kvp in byType.Value.ToArray())
35 + {
36 + IDisposable disp = kvp.Value.Target as IDisposable;
37 + if(disp != null)
38 + {
39 + disp.Dispose();
40 + }
41 +
42 + }
43 + }
44 + }
45 + }
46 +
47 + public static void RemoveObject<T>(IntPtr nativePtr)
48 + {
49 + lock (_lock)
50 + {
51 + Dictionary<IntPtr, WeakReference> objCache = null;
52 +
53 + if (!_objectCache.TryGetValue(typeof(T), out objCache) || objCache == null)
54 + {
55 + objCache = new Dictionary<IntPtr, WeakReference>();
56 + _objectCache[typeof(T)] = objCache;
57 + }
58 +
59 + if (objCache.ContainsKey(nativePtr))
60 + {
61 + objCache.Remove(nativePtr);
62 + }
63 + }
64 + }
65 +
66 + public static T GetObject<T>(IntPtr nativePtr) where T : class
67 + {
68 + lock (_lock)
69 + {
70 + Dictionary<IntPtr, WeakReference> objCache = null;
71 +
72 + if (!_objectCache.TryGetValue(typeof(T), out objCache) || objCache == null)
73 + {
74 + objCache = new Dictionary<IntPtr, WeakReference>();
75 + _objectCache[typeof(T)] = objCache;
76 + }
77 +
78 + WeakReference reference = null;
79 + if (objCache.TryGetValue(nativePtr, out reference))
80 + {
81 + if (reference != null)
82 + {
83 + T obj = reference.Target as T;
84 + if (obj != null)
85 + {
86 + return (T)obj;
87 + }
88 + }
89 + }
90 +
91 + return null;
92 + }
93 + }
94 +
95 + public static T CreateOrGetObject<T>(IntPtr nativePtr, Func<System.IntPtr,T> create) where T : class
96 + {
97 + T outputValue = null;
98 +
99 + lock (_lock)
100 + {
101 + Dictionary<IntPtr, WeakReference> objCache = null;
102 +
103 + if (!_objectCache.TryGetValue(typeof(T), out objCache) || objCache == null)
104 + {
105 + objCache = new Dictionary<IntPtr, WeakReference>();
106 + _objectCache[typeof(T)] = objCache;
107 + }
108 +
109 + WeakReference reference = null;
110 + if (objCache.TryGetValue(nativePtr, out reference))
111 + {
112 + if ((reference != null) && reference.IsAlive)
113 + {
114 + outputValue = reference.Target as T;
115 + }
116 + }
117 +
118 + if (outputValue == null)
119 + {
120 + if (create != null)
121 + {
122 + outputValue = create(nativePtr);
123 + objCache[nativePtr] = new WeakReference(outputValue);
124 + }
125 + else if(typeof(T) == typeof(System.Object))
126 + {
127 + //T is an object, so lets just pass back our IntPtr, which is an object.
128 + outputValue = (T)(System.Object)nativePtr;
129 + }
130 + }
131 + }
132 +
133 + return outputValue;
134 + }
135 + }
136 +}
...\ No newline at end of file ...\ No newline at end of file
1 +using System;
2 +using System.Collections.Generic;
3 +using System.Runtime.InteropServices;
4 +using System.Linq;
5 +
6 +namespace Helper
7 +{
8 + public static class NativeWrapper
9 + {
10 + public static System.IntPtr GetNativePtr(Object obj)
11 + {
12 + if(obj == null)
13 + {
14 + return System.IntPtr.Zero;
15 + }
16 +
17 + var nativeWrapperIface = obj as INativeWrapper;
18 + if(nativeWrapperIface != null)
19 + {
20 + return nativeWrapperIface.nativePtr;
21 + }
22 + else
23 + {
24 + throw new ArgumentException("Object must wrap native type");
25 + }
26 + }
27 + }
28 +}
...\ No newline at end of file ...\ No newline at end of file
1 +using System;
2 +using System.Collections.Generic;
3 +using System.Runtime.InteropServices;
4 +using System.Linq;
5 +
6 +namespace Helper
7 +{
8 + public class SmartGCHandle : IDisposable
9 + {
10 + private GCHandle handle;
11 + public SmartGCHandle(GCHandle handle)
12 + {
13 + this.handle = handle;
14 + }
15 +
16 + ~SmartGCHandle()
17 + {
18 + Dispose(false);
19 + }
20 +
21 + public System.IntPtr AddrOfPinnedObject()
22 + {
23 + return handle.AddrOfPinnedObject();
24 + }
25 +
26 + public virtual void Dispose()
27 + {
28 + Dispose(true);
29 + }
30 +
31 + protected virtual void Dispose(bool disposing)
32 + {
33 + this.handle.Free();
34 + }
35 +
36 + public static implicit operator GCHandle(SmartGCHandle other)
37 + {
38 +
39 + return other.handle;
40 + }
41 + }
42 +}
...\ No newline at end of file ...\ No newline at end of file
1 +using System;
2 +using System.Collections.Generic;
3 +using System.Runtime.InteropServices;
4 +using System.Linq;
5 +
6 +namespace Helper
7 +{
8 + public class ThreadSafeDictionary<TKey, TValue>
9 + {
10 + protected readonly Dictionary<TKey, TValue> _impl = new Dictionary<TKey, TValue>();
11 + public TValue this[TKey key]
12 + {
13 + get
14 + {
15 + lock (_impl)
16 + {
17 + return _impl[key];
18 + }
19 + }
20 + set
21 + {
22 + lock (_impl)
23 + {
24 + _impl[key] = value;
25 + }
26 + }
27 + }
28 +
29 + public void Add(TKey key, TValue value)
30 + {
31 + lock (_impl)
32 + {
33 + _impl.Add(key, value);
34 + }
35 + }
36 +
37 + public bool TryGetValue(TKey key, out TValue value)
38 + {
39 + lock (_impl)
40 + {
41 + return _impl.TryGetValue(key, out value);
42 + }
43 + }
44 +
45 + public bool Remove(TKey key)
46 + {
47 + lock (_impl)
48 + {
49 + return _impl.Remove(key);
50 + }
51 + }
52 +
53 + public void Clear()
54 + {
55 + lock (_impl)
56 + {
57 + _impl.Clear();
58 + }
59 + }
60 + }
61 +}
...\ No newline at end of file ...\ No newline at end of file
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Data
5 +{
6 + //
7 + // Windows.Data.PropertyChangedEventArgs
8 + //
9 + public sealed partial class PropertyChangedEventArgs : RootSystem.EventArgs, Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal PropertyChangedEventArgs(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Data_PropertyChangedEventArgs_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~PropertyChangedEventArgs()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Data_PropertyChangedEventArgs_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Data_PropertyChangedEventArgs_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<PropertyChangedEventArgs>(_pNative);
41 + Windows_Data_PropertyChangedEventArgs_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern RootSystem.IntPtr Windows_Data_PropertyChangedEventArgs_get_PropertyName(RootSystem.IntPtr pNative);
50 + public string PropertyName
51 + {
52 + get
53 + {
54 + if (_pNative == RootSystem.IntPtr.Zero)
55 + {
56 + throw new RootSystem.ObjectDisposedException("PropertyChangedEventArgs");
57 + }
58 +
59 + RootSystem.IntPtr objectPointer = Windows_Data_PropertyChangedEventArgs_get_PropertyName(_pNative);
60 + Helper.ExceptionHelper.CheckLastError();
61 +
62 + var managedString = RootSystem.Runtime.InteropServices.Marshal.PtrToStringUni(objectPointer);
63 + RootSystem.Runtime.InteropServices.Marshal.FreeCoTaskMem(objectPointer);
64 + return managedString;
65 + }
66 + }
67 +
68 + private void __EventCleanup()
69 + {
70 + }
71 + }
72 +
73 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.Activity
8 + //
9 + public enum Activity : int
10 + {
11 + EyeLeftClosed =0,
12 + EyeRightClosed =1,
13 + MouthOpen =2,
14 + MouthMoved =3,
15 + LookingAway =4,
16 + }
17 +
18 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.Appearance
8 + //
9 + public enum Appearance : int
10 + {
11 + WearingGlasses =0,
12 + }
13 +
14 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.AudioBeam
8 + //
9 + public sealed partial class AudioBeam : Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal AudioBeam(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_AudioBeam_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~AudioBeam()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_AudioBeam_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_AudioBeam_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<AudioBeam>(_pNative);
41 + Windows_Kinect_AudioBeam_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern Windows.Kinect.AudioBeamMode Windows_Kinect_AudioBeam_get_AudioBeamMode(RootSystem.IntPtr pNative);
50 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
51 + private static extern void Windows_Kinect_AudioBeam_put_AudioBeamMode(RootSystem.IntPtr pNative, Windows.Kinect.AudioBeamMode audioBeamMode);
52 + public Windows.Kinect.AudioBeamMode AudioBeamMode
53 + {
54 + get
55 + {
56 + if (_pNative == RootSystem.IntPtr.Zero)
57 + {
58 + throw new RootSystem.ObjectDisposedException("AudioBeam");
59 + }
60 +
61 + return Windows_Kinect_AudioBeam_get_AudioBeamMode(_pNative);
62 + }
63 + set
64 + {
65 + if (_pNative == RootSystem.IntPtr.Zero)
66 + {
67 + throw new RootSystem.ObjectDisposedException("AudioBeam");
68 + }
69 +
70 + Windows_Kinect_AudioBeam_put_AudioBeamMode(_pNative, value);
71 + Helper.ExceptionHelper.CheckLastError();
72 + }
73 + }
74 +
75 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
76 + private static extern RootSystem.IntPtr Windows_Kinect_AudioBeam_get_AudioSource(RootSystem.IntPtr pNative);
77 + public Windows.Kinect.AudioSource AudioSource
78 + {
79 + get
80 + {
81 + if (_pNative == RootSystem.IntPtr.Zero)
82 + {
83 + throw new RootSystem.ObjectDisposedException("AudioBeam");
84 + }
85 +
86 + RootSystem.IntPtr objectPointer = Windows_Kinect_AudioBeam_get_AudioSource(_pNative);
87 + Helper.ExceptionHelper.CheckLastError();
88 + if (objectPointer == RootSystem.IntPtr.Zero)
89 + {
90 + return null;
91 + }
92 +
93 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.AudioSource>(objectPointer, n => new Windows.Kinect.AudioSource(n));
94 + }
95 + }
96 +
97 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
98 + private static extern float Windows_Kinect_AudioBeam_get_BeamAngle(RootSystem.IntPtr pNative);
99 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
100 + private static extern void Windows_Kinect_AudioBeam_put_BeamAngle(RootSystem.IntPtr pNative, float beamAngle);
101 + public float BeamAngle
102 + {
103 + get
104 + {
105 + if (_pNative == RootSystem.IntPtr.Zero)
106 + {
107 + throw new RootSystem.ObjectDisposedException("AudioBeam");
108 + }
109 +
110 + return Windows_Kinect_AudioBeam_get_BeamAngle(_pNative);
111 + }
112 + set
113 + {
114 + if (_pNative == RootSystem.IntPtr.Zero)
115 + {
116 + throw new RootSystem.ObjectDisposedException("AudioBeam");
117 + }
118 +
119 + Windows_Kinect_AudioBeam_put_BeamAngle(_pNative, value);
120 + Helper.ExceptionHelper.CheckLastError();
121 + }
122 + }
123 +
124 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
125 + private static extern float Windows_Kinect_AudioBeam_get_BeamAngleConfidence(RootSystem.IntPtr pNative);
126 + public float BeamAngleConfidence
127 + {
128 + get
129 + {
130 + if (_pNative == RootSystem.IntPtr.Zero)
131 + {
132 + throw new RootSystem.ObjectDisposedException("AudioBeam");
133 + }
134 +
135 + return Windows_Kinect_AudioBeam_get_BeamAngleConfidence(_pNative);
136 + }
137 + }
138 +
139 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
140 + private static extern long Windows_Kinect_AudioBeam_get_RelativeTime(RootSystem.IntPtr pNative);
141 + public RootSystem.TimeSpan RelativeTime
142 + {
143 + get
144 + {
145 + if (_pNative == RootSystem.IntPtr.Zero)
146 + {
147 + throw new RootSystem.ObjectDisposedException("AudioBeam");
148 + }
149 +
150 + return RootSystem.TimeSpan.FromMilliseconds(Windows_Kinect_AudioBeam_get_RelativeTime(_pNative));
151 + }
152 + }
153 +
154 +
155 + // Events
156 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Data_PropertyChangedEventArgs_Delegate_Handle;
157 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
158 + private delegate void _Windows_Data_PropertyChangedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
159 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>> Windows_Data_PropertyChangedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>>();
160 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Data_PropertyChangedEventArgs_Delegate))]
161 + private static void Windows_Data_PropertyChangedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
162 + {
163 + List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>> callbackList = null;
164 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
165 + lock(callbackList)
166 + {
167 + var objThis = Helper.NativeObjectCache.GetObject<AudioBeam>(pNative);
168 + var args = new Windows.Data.PropertyChangedEventArgs(result);
169 + foreach(var func in callbackList)
170 + {
171 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
172 + }
173 + }
174 + }
175 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
176 + private static extern void Windows_Kinect_AudioBeam_add_PropertyChanged(RootSystem.IntPtr pNative, _Windows_Data_PropertyChangedEventArgs_Delegate eventCallback, bool unsubscribe);
177 + public event RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs> PropertyChanged
178 + {
179 + add
180 + {
181 + Helper.EventPump.EnsureInitialized();
182 +
183 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
184 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
185 + lock (callbackList)
186 + {
187 + callbackList.Add(value);
188 + if(callbackList.Count == 1)
189 + {
190 + var del = new _Windows_Data_PropertyChangedEventArgs_Delegate(Windows_Data_PropertyChangedEventArgs_Delegate_Handler);
191 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
192 + Windows_Kinect_AudioBeam_add_PropertyChanged(_pNative, del, false);
193 + }
194 + }
195 + }
196 + remove
197 + {
198 + if (_pNative == RootSystem.IntPtr.Zero)
199 + {
200 + return;
201 + }
202 +
203 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
204 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
205 + lock (callbackList)
206 + {
207 + callbackList.Remove(value);
208 + if(callbackList.Count == 0)
209 + {
210 + Windows_Kinect_AudioBeam_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
211 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
212 + }
213 + }
214 + }
215 + }
216 +
217 +
218 + // Public Methods
219 + private void __EventCleanup()
220 + {
221 + {
222 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
223 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
224 + lock (callbackList)
225 + {
226 + if (callbackList.Count > 0)
227 + {
228 + callbackList.Clear();
229 + if (_pNative != RootSystem.IntPtr.Zero)
230 + {
231 + Windows_Kinect_AudioBeam_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
232 + }
233 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
234 + }
235 + }
236 + }
237 + }
238 + }
239 +
240 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.AudioBeamFrame
8 + //
9 + public sealed partial class AudioBeamFrame : RootSystem.IDisposable, Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal AudioBeamFrame(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_AudioBeamFrame_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~AudioBeamFrame()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_AudioBeamFrame_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_AudioBeamFrame_AddRefObject(ref RootSystem.IntPtr pNative);
31 +
32 + // Public Properties
33 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
34 + private static extern RootSystem.IntPtr Windows_Kinect_AudioBeamFrame_get_AudioBeam(RootSystem.IntPtr pNative);
35 + public Windows.Kinect.AudioBeam AudioBeam
36 + {
37 + get
38 + {
39 + if (_pNative == RootSystem.IntPtr.Zero)
40 + {
41 + throw new RootSystem.ObjectDisposedException("AudioBeamFrame");
42 + }
43 +
44 + RootSystem.IntPtr objectPointer = Windows_Kinect_AudioBeamFrame_get_AudioBeam(_pNative);
45 + Helper.ExceptionHelper.CheckLastError();
46 + if (objectPointer == RootSystem.IntPtr.Zero)
47 + {
48 + return null;
49 + }
50 +
51 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.AudioBeam>(objectPointer, n => new Windows.Kinect.AudioBeam(n));
52 + }
53 + }
54 +
55 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
56 + private static extern RootSystem.IntPtr Windows_Kinect_AudioBeamFrame_get_AudioSource(RootSystem.IntPtr pNative);
57 + public Windows.Kinect.AudioSource AudioSource
58 + {
59 + get
60 + {
61 + if (_pNative == RootSystem.IntPtr.Zero)
62 + {
63 + throw new RootSystem.ObjectDisposedException("AudioBeamFrame");
64 + }
65 +
66 + RootSystem.IntPtr objectPointer = Windows_Kinect_AudioBeamFrame_get_AudioSource(_pNative);
67 + Helper.ExceptionHelper.CheckLastError();
68 + if (objectPointer == RootSystem.IntPtr.Zero)
69 + {
70 + return null;
71 + }
72 +
73 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.AudioSource>(objectPointer, n => new Windows.Kinect.AudioSource(n));
74 + }
75 + }
76 +
77 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
78 + private static extern long Windows_Kinect_AudioBeamFrame_get_Duration(RootSystem.IntPtr pNative);
79 + public RootSystem.TimeSpan Duration
80 + {
81 + get
82 + {
83 + if (_pNative == RootSystem.IntPtr.Zero)
84 + {
85 + throw new RootSystem.ObjectDisposedException("AudioBeamFrame");
86 + }
87 +
88 + return RootSystem.TimeSpan.FromMilliseconds(Windows_Kinect_AudioBeamFrame_get_Duration(_pNative));
89 + }
90 + }
91 +
92 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
93 + private static extern long Windows_Kinect_AudioBeamFrame_get_RelativeTimeStart(RootSystem.IntPtr pNative);
94 + public RootSystem.TimeSpan RelativeTimeStart
95 + {
96 + get
97 + {
98 + if (_pNative == RootSystem.IntPtr.Zero)
99 + {
100 + throw new RootSystem.ObjectDisposedException("AudioBeamFrame");
101 + }
102 +
103 + return RootSystem.TimeSpan.FromMilliseconds(Windows_Kinect_AudioBeamFrame_get_RelativeTimeStart(_pNative));
104 + }
105 + }
106 +
107 +
108 + // Public Methods
109 + private void __EventCleanup()
110 + {
111 + }
112 + }
113 +
114 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.AudioBeamFrameArrivedEventArgs
8 + //
9 + public sealed partial class AudioBeamFrameArrivedEventArgs : RootSystem.EventArgs, Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal AudioBeamFrameArrivedEventArgs(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_AudioBeamFrameArrivedEventArgs_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~AudioBeamFrameArrivedEventArgs()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_AudioBeamFrameArrivedEventArgs_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_AudioBeamFrameArrivedEventArgs_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<AudioBeamFrameArrivedEventArgs>(_pNative);
41 + Windows_Kinect_AudioBeamFrameArrivedEventArgs_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern RootSystem.IntPtr Windows_Kinect_AudioBeamFrameArrivedEventArgs_get_FrameReference(RootSystem.IntPtr pNative);
50 + public Windows.Kinect.AudioBeamFrameReference FrameReference
51 + {
52 + get
53 + {
54 + if (_pNative == RootSystem.IntPtr.Zero)
55 + {
56 + throw new RootSystem.ObjectDisposedException("AudioBeamFrameArrivedEventArgs");
57 + }
58 +
59 + RootSystem.IntPtr objectPointer = Windows_Kinect_AudioBeamFrameArrivedEventArgs_get_FrameReference(_pNative);
60 + Helper.ExceptionHelper.CheckLastError();
61 + if (objectPointer == RootSystem.IntPtr.Zero)
62 + {
63 + return null;
64 + }
65 +
66 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.AudioBeamFrameReference>(objectPointer, n => new Windows.Kinect.AudioBeamFrameReference(n));
67 + }
68 + }
69 +
70 + private void __EventCleanup()
71 + {
72 + }
73 + }
74 +
75 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.AudioBeamFrameList
8 + //
9 + public sealed partial class AudioBeamFrameList : RootSystem.IDisposable, Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal AudioBeamFrameList(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_AudioBeamFrameList_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~AudioBeamFrameList()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_AudioBeamFrameList_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_AudioBeamFrameList_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<AudioBeamFrameList>(_pNative);
41 +
42 + if (disposing)
43 + {
44 + Windows_Kinect_AudioBeamFrameList_Dispose(_pNative);
45 + }
46 + Windows_Kinect_AudioBeamFrameList_ReleaseObject(ref _pNative);
47 +
48 + _pNative = RootSystem.IntPtr.Zero;
49 + }
50 +
51 +
52 + // Public Methods
53 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
54 + private static extern void Windows_Kinect_AudioBeamFrameList_Dispose(RootSystem.IntPtr pNative);
55 + public void Dispose()
56 + {
57 + if (_pNative == RootSystem.IntPtr.Zero)
58 + {
59 + return;
60 + }
61 +
62 + Dispose(true);
63 + RootSystem.GC.SuppressFinalize(this);
64 + }
65 +
66 + private void __EventCleanup()
67 + {
68 + }
69 + }
70 +
71 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.AudioBeamFrameReader
8 + //
9 + public sealed partial class AudioBeamFrameReader : RootSystem.IDisposable, Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal AudioBeamFrameReader(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_AudioBeamFrameReader_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~AudioBeamFrameReader()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_AudioBeamFrameReader_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_AudioBeamFrameReader_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<AudioBeamFrameReader>(_pNative);
41 +
42 + if (disposing)
43 + {
44 + Windows_Kinect_AudioBeamFrameReader_Dispose(_pNative);
45 + }
46 + Windows_Kinect_AudioBeamFrameReader_ReleaseObject(ref _pNative);
47 +
48 + _pNative = RootSystem.IntPtr.Zero;
49 + }
50 +
51 +
52 + // Public Properties
53 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
54 + private static extern RootSystem.IntPtr Windows_Kinect_AudioBeamFrameReader_get_AudioSource(RootSystem.IntPtr pNative);
55 + public Windows.Kinect.AudioSource AudioSource
56 + {
57 + get
58 + {
59 + if (_pNative == RootSystem.IntPtr.Zero)
60 + {
61 + throw new RootSystem.ObjectDisposedException("AudioBeamFrameReader");
62 + }
63 +
64 + RootSystem.IntPtr objectPointer = Windows_Kinect_AudioBeamFrameReader_get_AudioSource(_pNative);
65 + Helper.ExceptionHelper.CheckLastError();
66 + if (objectPointer == RootSystem.IntPtr.Zero)
67 + {
68 + return null;
69 + }
70 +
71 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.AudioSource>(objectPointer, n => new Windows.Kinect.AudioSource(n));
72 + }
73 + }
74 +
75 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
76 + private static extern bool Windows_Kinect_AudioBeamFrameReader_get_IsPaused(RootSystem.IntPtr pNative);
77 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
78 + private static extern void Windows_Kinect_AudioBeamFrameReader_put_IsPaused(RootSystem.IntPtr pNative, bool isPaused);
79 + public bool IsPaused
80 + {
81 + get
82 + {
83 + if (_pNative == RootSystem.IntPtr.Zero)
84 + {
85 + throw new RootSystem.ObjectDisposedException("AudioBeamFrameReader");
86 + }
87 +
88 + return Windows_Kinect_AudioBeamFrameReader_get_IsPaused(_pNative);
89 + }
90 + set
91 + {
92 + if (_pNative == RootSystem.IntPtr.Zero)
93 + {
94 + throw new RootSystem.ObjectDisposedException("AudioBeamFrameReader");
95 + }
96 +
97 + Windows_Kinect_AudioBeamFrameReader_put_IsPaused(_pNative, value);
98 + Helper.ExceptionHelper.CheckLastError();
99 + }
100 + }
101 +
102 +
103 + // Events
104 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Kinect_AudioBeamFrameArrivedEventArgs_Delegate_Handle;
105 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
106 + private delegate void _Windows_Kinect_AudioBeamFrameArrivedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
107 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.AudioBeamFrameArrivedEventArgs>>> Windows_Kinect_AudioBeamFrameArrivedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.AudioBeamFrameArrivedEventArgs>>>();
108 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Kinect_AudioBeamFrameArrivedEventArgs_Delegate))]
109 + private static void Windows_Kinect_AudioBeamFrameArrivedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
110 + {
111 + List<RootSystem.EventHandler<Windows.Kinect.AudioBeamFrameArrivedEventArgs>> callbackList = null;
112 + Windows_Kinect_AudioBeamFrameArrivedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
113 + lock(callbackList)
114 + {
115 + var objThis = Helper.NativeObjectCache.GetObject<AudioBeamFrameReader>(pNative);
116 + var args = new Windows.Kinect.AudioBeamFrameArrivedEventArgs(result);
117 + foreach(var func in callbackList)
118 + {
119 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
120 + }
121 + }
122 + }
123 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
124 + private static extern void Windows_Kinect_AudioBeamFrameReader_add_FrameArrived(RootSystem.IntPtr pNative, _Windows_Kinect_AudioBeamFrameArrivedEventArgs_Delegate eventCallback, bool unsubscribe);
125 + public event RootSystem.EventHandler<Windows.Kinect.AudioBeamFrameArrivedEventArgs> FrameArrived
126 + {
127 + add
128 + {
129 + Helper.EventPump.EnsureInitialized();
130 +
131 + Windows_Kinect_AudioBeamFrameArrivedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
132 + var callbackList = Windows_Kinect_AudioBeamFrameArrivedEventArgs_Delegate_callbacks[_pNative];
133 + lock (callbackList)
134 + {
135 + callbackList.Add(value);
136 + if(callbackList.Count == 1)
137 + {
138 + var del = new _Windows_Kinect_AudioBeamFrameArrivedEventArgs_Delegate(Windows_Kinect_AudioBeamFrameArrivedEventArgs_Delegate_Handler);
139 + _Windows_Kinect_AudioBeamFrameArrivedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
140 + Windows_Kinect_AudioBeamFrameReader_add_FrameArrived(_pNative, del, false);
141 + }
142 + }
143 + }
144 + remove
145 + {
146 + if (_pNative == RootSystem.IntPtr.Zero)
147 + {
148 + return;
149 + }
150 +
151 + Windows_Kinect_AudioBeamFrameArrivedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
152 + var callbackList = Windows_Kinect_AudioBeamFrameArrivedEventArgs_Delegate_callbacks[_pNative];
153 + lock (callbackList)
154 + {
155 + callbackList.Remove(value);
156 + if(callbackList.Count == 0)
157 + {
158 + Windows_Kinect_AudioBeamFrameReader_add_FrameArrived(_pNative, Windows_Kinect_AudioBeamFrameArrivedEventArgs_Delegate_Handler, true);
159 + _Windows_Kinect_AudioBeamFrameArrivedEventArgs_Delegate_Handle.Free();
160 + }
161 + }
162 + }
163 + }
164 +
165 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Data_PropertyChangedEventArgs_Delegate_Handle;
166 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
167 + private delegate void _Windows_Data_PropertyChangedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
168 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>> Windows_Data_PropertyChangedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>>();
169 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Data_PropertyChangedEventArgs_Delegate))]
170 + private static void Windows_Data_PropertyChangedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
171 + {
172 + List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>> callbackList = null;
173 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
174 + lock(callbackList)
175 + {
176 + var objThis = Helper.NativeObjectCache.GetObject<AudioBeamFrameReader>(pNative);
177 + var args = new Windows.Data.PropertyChangedEventArgs(result);
178 + foreach(var func in callbackList)
179 + {
180 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
181 + }
182 + }
183 + }
184 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
185 + private static extern void Windows_Kinect_AudioBeamFrameReader_add_PropertyChanged(RootSystem.IntPtr pNative, _Windows_Data_PropertyChangedEventArgs_Delegate eventCallback, bool unsubscribe);
186 + public event RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs> PropertyChanged
187 + {
188 + add
189 + {
190 + Helper.EventPump.EnsureInitialized();
191 +
192 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
193 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
194 + lock (callbackList)
195 + {
196 + callbackList.Add(value);
197 + if(callbackList.Count == 1)
198 + {
199 + var del = new _Windows_Data_PropertyChangedEventArgs_Delegate(Windows_Data_PropertyChangedEventArgs_Delegate_Handler);
200 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
201 + Windows_Kinect_AudioBeamFrameReader_add_PropertyChanged(_pNative, del, false);
202 + }
203 + }
204 + }
205 + remove
206 + {
207 + if (_pNative == RootSystem.IntPtr.Zero)
208 + {
209 + return;
210 + }
211 +
212 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
213 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
214 + lock (callbackList)
215 + {
216 + callbackList.Remove(value);
217 + if(callbackList.Count == 0)
218 + {
219 + Windows_Kinect_AudioBeamFrameReader_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
220 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
221 + }
222 + }
223 + }
224 + }
225 +
226 +
227 + // Public Methods
228 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
229 + private static extern int Windows_Kinect_AudioBeamFrameReader_AcquireLatestBeamFrames_Length(RootSystem.IntPtr pNative);
230 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
231 + private static extern int Windows_Kinect_AudioBeamFrameReader_AcquireLatestBeamFrames(RootSystem.IntPtr pNative, [RootSystem.Runtime.InteropServices.Out] RootSystem.IntPtr[] outCollection, int outCollectionSize);
232 + public RootSystem.Collections.Generic.IList<Windows.Kinect.AudioBeamFrame> AcquireLatestBeamFrames()
233 + {
234 + if (_pNative == RootSystem.IntPtr.Zero)
235 + {
236 + throw new RootSystem.ObjectDisposedException("AudioBeamFrameReader");
237 + }
238 +
239 + int outCollectionSize = Windows_Kinect_AudioBeamFrameReader_AcquireLatestBeamFrames_Length(_pNative);
240 + var outCollection = new RootSystem.IntPtr[outCollectionSize];
241 + var managedCollection = new Windows.Kinect.AudioBeamFrame[outCollectionSize];
242 +
243 + outCollectionSize = Windows_Kinect_AudioBeamFrameReader_AcquireLatestBeamFrames(_pNative, outCollection, outCollectionSize);
244 + Helper.ExceptionHelper.CheckLastError();
245 + for(int i=0;i<outCollectionSize;i++)
246 + {
247 + if(outCollection[i] == RootSystem.IntPtr.Zero)
248 + {
249 + continue;
250 + }
251 +
252 + var obj = Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.AudioBeamFrame>(outCollection[i], n => new Windows.Kinect.AudioBeamFrame(n));
253 +
254 + managedCollection[i] = obj;
255 + }
256 + return managedCollection;
257 + }
258 +
259 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
260 + private static extern void Windows_Kinect_AudioBeamFrameReader_Dispose(RootSystem.IntPtr pNative);
261 + public void Dispose()
262 + {
263 + if (_pNative == RootSystem.IntPtr.Zero)
264 + {
265 + return;
266 + }
267 +
268 + Dispose(true);
269 + RootSystem.GC.SuppressFinalize(this);
270 + }
271 +
272 + private void __EventCleanup()
273 + {
274 + {
275 + Windows_Kinect_AudioBeamFrameArrivedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
276 + var callbackList = Windows_Kinect_AudioBeamFrameArrivedEventArgs_Delegate_callbacks[_pNative];
277 + lock (callbackList)
278 + {
279 + if (callbackList.Count > 0)
280 + {
281 + callbackList.Clear();
282 + if (_pNative != RootSystem.IntPtr.Zero)
283 + {
284 + Windows_Kinect_AudioBeamFrameReader_add_FrameArrived(_pNative, Windows_Kinect_AudioBeamFrameArrivedEventArgs_Delegate_Handler, true);
285 + }
286 + _Windows_Kinect_AudioBeamFrameArrivedEventArgs_Delegate_Handle.Free();
287 + }
288 + }
289 + }
290 + {
291 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
292 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
293 + lock (callbackList)
294 + {
295 + if (callbackList.Count > 0)
296 + {
297 + callbackList.Clear();
298 + if (_pNative != RootSystem.IntPtr.Zero)
299 + {
300 + Windows_Kinect_AudioBeamFrameReader_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
301 + }
302 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
303 + }
304 + }
305 + }
306 + }
307 + }
308 +
309 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.AudioBeamFrameReference
8 + //
9 + public sealed partial class AudioBeamFrameReference : Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal AudioBeamFrameReference(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_AudioBeamFrameReference_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~AudioBeamFrameReference()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_AudioBeamFrameReference_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_AudioBeamFrameReference_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<AudioBeamFrameReference>(_pNative);
41 + Windows_Kinect_AudioBeamFrameReference_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern long Windows_Kinect_AudioBeamFrameReference_get_RelativeTime(RootSystem.IntPtr pNative);
50 + public RootSystem.TimeSpan RelativeTime
51 + {
52 + get
53 + {
54 + if (_pNative == RootSystem.IntPtr.Zero)
55 + {
56 + throw new RootSystem.ObjectDisposedException("AudioBeamFrameReference");
57 + }
58 +
59 + return RootSystem.TimeSpan.FromMilliseconds(Windows_Kinect_AudioBeamFrameReference_get_RelativeTime(_pNative));
60 + }
61 + }
62 +
63 +
64 + // Public Methods
65 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
66 + private static extern int Windows_Kinect_AudioBeamFrameReference_AcquireBeamFrames_Length(RootSystem.IntPtr pNative);
67 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
68 + private static extern int Windows_Kinect_AudioBeamFrameReference_AcquireBeamFrames(RootSystem.IntPtr pNative, [RootSystem.Runtime.InteropServices.Out] RootSystem.IntPtr[] outCollection, int outCollectionSize);
69 + public RootSystem.Collections.Generic.IList<Windows.Kinect.AudioBeamFrame> AcquireBeamFrames()
70 + {
71 + if (_pNative == RootSystem.IntPtr.Zero)
72 + {
73 + throw new RootSystem.ObjectDisposedException("AudioBeamFrameReference");
74 + }
75 +
76 + int outCollectionSize = Windows_Kinect_AudioBeamFrameReference_AcquireBeamFrames_Length(_pNative);
77 + var outCollection = new RootSystem.IntPtr[outCollectionSize];
78 + var managedCollection = new Windows.Kinect.AudioBeamFrame[outCollectionSize];
79 +
80 + outCollectionSize = Windows_Kinect_AudioBeamFrameReference_AcquireBeamFrames(_pNative, outCollection, outCollectionSize);
81 + Helper.ExceptionHelper.CheckLastError();
82 + for(int i=0;i<outCollectionSize;i++)
83 + {
84 + if(outCollection[i] == RootSystem.IntPtr.Zero)
85 + {
86 + continue;
87 + }
88 +
89 + var obj = Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.AudioBeamFrame>(outCollection[i], n => new Windows.Kinect.AudioBeamFrame(n));
90 +
91 + managedCollection[i] = obj;
92 + }
93 + return managedCollection;
94 + }
95 +
96 + private void __EventCleanup()
97 + {
98 + }
99 + }
100 +
101 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.AudioBeamMode
8 + //
9 + public enum AudioBeamMode : int
10 + {
11 + Automatic =0,
12 + Manual =1,
13 + }
14 +
15 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.AudioBeamSubFrame
8 + //
9 + public sealed partial class AudioBeamSubFrame : RootSystem.IDisposable, Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal AudioBeamSubFrame(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_AudioBeamSubFrame_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~AudioBeamSubFrame()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_AudioBeamSubFrame_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_AudioBeamSubFrame_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<AudioBeamSubFrame>(_pNative);
41 +
42 + if (disposing)
43 + {
44 + Windows_Kinect_AudioBeamSubFrame_Dispose(_pNative);
45 + }
46 + Windows_Kinect_AudioBeamSubFrame_ReleaseObject(ref _pNative);
47 +
48 + _pNative = RootSystem.IntPtr.Zero;
49 + }
50 +
51 +
52 + // Public Properties
53 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
54 + private static extern Windows.Kinect.AudioBeamMode Windows_Kinect_AudioBeamSubFrame_get_AudioBeamMode(RootSystem.IntPtr pNative);
55 + public Windows.Kinect.AudioBeamMode AudioBeamMode
56 + {
57 + get
58 + {
59 + if (_pNative == RootSystem.IntPtr.Zero)
60 + {
61 + throw new RootSystem.ObjectDisposedException("AudioBeamSubFrame");
62 + }
63 +
64 + return Windows_Kinect_AudioBeamSubFrame_get_AudioBeamMode(_pNative);
65 + }
66 + }
67 +
68 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
69 + private static extern int Windows_Kinect_AudioBeamSubFrame_get_AudioBodyCorrelations(RootSystem.IntPtr pNative, [RootSystem.Runtime.InteropServices.Out] RootSystem.IntPtr[] outCollection, int outCollectionSize);
70 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
71 + private static extern int Windows_Kinect_AudioBeamSubFrame_get_AudioBodyCorrelations_Length(RootSystem.IntPtr pNative);
72 + public RootSystem.Collections.Generic.IList<Windows.Kinect.AudioBodyCorrelation> AudioBodyCorrelations
73 + {
74 + get
75 + {
76 + if (_pNative == RootSystem.IntPtr.Zero)
77 + {
78 + throw new RootSystem.ObjectDisposedException("AudioBeamSubFrame");
79 + }
80 +
81 + int outCollectionSize = Windows_Kinect_AudioBeamSubFrame_get_AudioBodyCorrelations_Length(_pNative);
82 + var outCollection = new RootSystem.IntPtr[outCollectionSize];
83 + var managedCollection = new Windows.Kinect.AudioBodyCorrelation[outCollectionSize];
84 +
85 + outCollectionSize = Windows_Kinect_AudioBeamSubFrame_get_AudioBodyCorrelations(_pNative, outCollection, outCollectionSize);
86 + Helper.ExceptionHelper.CheckLastError();
87 + for(int i=0;i<outCollectionSize;i++)
88 + {
89 + if(outCollection[i] == RootSystem.IntPtr.Zero)
90 + {
91 + continue;
92 + }
93 +
94 + var obj = Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.AudioBodyCorrelation>(outCollection[i], n => new Windows.Kinect.AudioBodyCorrelation(n));
95 +
96 + managedCollection[i] = obj;
97 + }
98 + return managedCollection;
99 + }
100 + }
101 +
102 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
103 + private static extern float Windows_Kinect_AudioBeamSubFrame_get_BeamAngle(RootSystem.IntPtr pNative);
104 + public float BeamAngle
105 + {
106 + get
107 + {
108 + if (_pNative == RootSystem.IntPtr.Zero)
109 + {
110 + throw new RootSystem.ObjectDisposedException("AudioBeamSubFrame");
111 + }
112 +
113 + return Windows_Kinect_AudioBeamSubFrame_get_BeamAngle(_pNative);
114 + }
115 + }
116 +
117 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
118 + private static extern float Windows_Kinect_AudioBeamSubFrame_get_BeamAngleConfidence(RootSystem.IntPtr pNative);
119 + public float BeamAngleConfidence
120 + {
121 + get
122 + {
123 + if (_pNative == RootSystem.IntPtr.Zero)
124 + {
125 + throw new RootSystem.ObjectDisposedException("AudioBeamSubFrame");
126 + }
127 +
128 + return Windows_Kinect_AudioBeamSubFrame_get_BeamAngleConfidence(_pNative);
129 + }
130 + }
131 +
132 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
133 + private static extern long Windows_Kinect_AudioBeamSubFrame_get_Duration(RootSystem.IntPtr pNative);
134 + public RootSystem.TimeSpan Duration
135 + {
136 + get
137 + {
138 + if (_pNative == RootSystem.IntPtr.Zero)
139 + {
140 + throw new RootSystem.ObjectDisposedException("AudioBeamSubFrame");
141 + }
142 +
143 + return RootSystem.TimeSpan.FromMilliseconds(Windows_Kinect_AudioBeamSubFrame_get_Duration(_pNative));
144 + }
145 + }
146 +
147 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
148 + private static extern uint Windows_Kinect_AudioBeamSubFrame_get_FrameLengthInBytes(RootSystem.IntPtr pNative);
149 + public uint FrameLengthInBytes
150 + {
151 + get
152 + {
153 + if (_pNative == RootSystem.IntPtr.Zero)
154 + {
155 + throw new RootSystem.ObjectDisposedException("AudioBeamSubFrame");
156 + }
157 +
158 + return Windows_Kinect_AudioBeamSubFrame_get_FrameLengthInBytes(_pNative);
159 + }
160 + }
161 +
162 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
163 + private static extern long Windows_Kinect_AudioBeamSubFrame_get_RelativeTime(RootSystem.IntPtr pNative);
164 + public RootSystem.TimeSpan RelativeTime
165 + {
166 + get
167 + {
168 + if (_pNative == RootSystem.IntPtr.Zero)
169 + {
170 + throw new RootSystem.ObjectDisposedException("AudioBeamSubFrame");
171 + }
172 +
173 + return RootSystem.TimeSpan.FromMilliseconds(Windows_Kinect_AudioBeamSubFrame_get_RelativeTime(_pNative));
174 + }
175 + }
176 +
177 +
178 + // Public Methods
179 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
180 + private static extern void Windows_Kinect_AudioBeamSubFrame_CopyFrameDataToArray(RootSystem.IntPtr pNative, RootSystem.IntPtr frameData, int frameDataSize);
181 + public void CopyFrameDataToArray(byte[] frameData)
182 + {
183 + if (_pNative == RootSystem.IntPtr.Zero)
184 + {
185 + throw new RootSystem.ObjectDisposedException("AudioBeamSubFrame");
186 + }
187 +
188 + var frameDataSmartGCHandle = new Helper.SmartGCHandle(RootSystem.Runtime.InteropServices.GCHandle.Alloc(frameData, RootSystem.Runtime.InteropServices.GCHandleType.Pinned));
189 + var _frameData = frameDataSmartGCHandle.AddrOfPinnedObject();
190 + Windows_Kinect_AudioBeamSubFrame_CopyFrameDataToArray(_pNative, _frameData, frameData.Length);
191 + Helper.ExceptionHelper.CheckLastError();
192 + }
193 +
194 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
195 + private static extern void Windows_Kinect_AudioBeamSubFrame_Dispose(RootSystem.IntPtr pNative);
196 + public void Dispose()
197 + {
198 + if (_pNative == RootSystem.IntPtr.Zero)
199 + {
200 + return;
201 + }
202 +
203 + Dispose(true);
204 + RootSystem.GC.SuppressFinalize(this);
205 + }
206 +
207 + private void __EventCleanup()
208 + {
209 + }
210 + }
211 +
212 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.AudioBodyCorrelation
8 + //
9 + public sealed partial class AudioBodyCorrelation : Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal AudioBodyCorrelation(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_AudioBodyCorrelation_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~AudioBodyCorrelation()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_AudioBodyCorrelation_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_AudioBodyCorrelation_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<AudioBodyCorrelation>(_pNative);
41 + Windows_Kinect_AudioBodyCorrelation_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern ulong Windows_Kinect_AudioBodyCorrelation_get_BodyTrackingId(RootSystem.IntPtr pNative);
50 + public ulong BodyTrackingId
51 + {
52 + get
53 + {
54 + if (_pNative == RootSystem.IntPtr.Zero)
55 + {
56 + throw new RootSystem.ObjectDisposedException("AudioBodyCorrelation");
57 + }
58 +
59 + return Windows_Kinect_AudioBodyCorrelation_get_BodyTrackingId(_pNative);
60 + }
61 + }
62 +
63 + private void __EventCleanup()
64 + {
65 + }
66 + }
67 +
68 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.AudioSource
8 + //
9 + public sealed partial class AudioSource : Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal AudioSource(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_AudioSource_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~AudioSource()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_AudioSource_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_AudioSource_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<AudioSource>(_pNative);
41 + Windows_Kinect_AudioSource_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern int Windows_Kinect_AudioSource_get_AudioBeams(RootSystem.IntPtr pNative, [RootSystem.Runtime.InteropServices.Out] RootSystem.IntPtr[] outCollection, int outCollectionSize);
50 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
51 + private static extern int Windows_Kinect_AudioSource_get_AudioBeams_Length(RootSystem.IntPtr pNative);
52 + public RootSystem.Collections.Generic.IList<Windows.Kinect.AudioBeam> AudioBeams
53 + {
54 + get
55 + {
56 + if (_pNative == RootSystem.IntPtr.Zero)
57 + {
58 + throw new RootSystem.ObjectDisposedException("AudioSource");
59 + }
60 +
61 + int outCollectionSize = Windows_Kinect_AudioSource_get_AudioBeams_Length(_pNative);
62 + var outCollection = new RootSystem.IntPtr[outCollectionSize];
63 + var managedCollection = new Windows.Kinect.AudioBeam[outCollectionSize];
64 +
65 + outCollectionSize = Windows_Kinect_AudioSource_get_AudioBeams(_pNative, outCollection, outCollectionSize);
66 + Helper.ExceptionHelper.CheckLastError();
67 + for(int i=0;i<outCollectionSize;i++)
68 + {
69 + if(outCollection[i] == RootSystem.IntPtr.Zero)
70 + {
71 + continue;
72 + }
73 +
74 + var obj = Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.AudioBeam>(outCollection[i], n => new Windows.Kinect.AudioBeam(n));
75 +
76 + managedCollection[i] = obj;
77 + }
78 + return managedCollection;
79 + }
80 + }
81 +
82 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
83 + private static extern bool Windows_Kinect_AudioSource_get_IsActive(RootSystem.IntPtr pNative);
84 + public bool IsActive
85 + {
86 + get
87 + {
88 + if (_pNative == RootSystem.IntPtr.Zero)
89 + {
90 + throw new RootSystem.ObjectDisposedException("AudioSource");
91 + }
92 +
93 + return Windows_Kinect_AudioSource_get_IsActive(_pNative);
94 + }
95 + }
96 +
97 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
98 + private static extern RootSystem.IntPtr Windows_Kinect_AudioSource_get_KinectSensor(RootSystem.IntPtr pNative);
99 + public Windows.Kinect.KinectSensor KinectSensor
100 + {
101 + get
102 + {
103 + if (_pNative == RootSystem.IntPtr.Zero)
104 + {
105 + throw new RootSystem.ObjectDisposedException("AudioSource");
106 + }
107 +
108 + RootSystem.IntPtr objectPointer = Windows_Kinect_AudioSource_get_KinectSensor(_pNative);
109 + Helper.ExceptionHelper.CheckLastError();
110 + if (objectPointer == RootSystem.IntPtr.Zero)
111 + {
112 + return null;
113 + }
114 +
115 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.KinectSensor>(objectPointer, n => new Windows.Kinect.KinectSensor(n));
116 + }
117 + }
118 +
119 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
120 + private static extern uint Windows_Kinect_AudioSource_get_MaxSubFrameCount(RootSystem.IntPtr pNative);
121 + public uint MaxSubFrameCount
122 + {
123 + get
124 + {
125 + if (_pNative == RootSystem.IntPtr.Zero)
126 + {
127 + throw new RootSystem.ObjectDisposedException("AudioSource");
128 + }
129 +
130 + return Windows_Kinect_AudioSource_get_MaxSubFrameCount(_pNative);
131 + }
132 + }
133 +
134 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
135 + private static extern long Windows_Kinect_AudioSource_get_SubFrameDuration(RootSystem.IntPtr pNative);
136 + public RootSystem.TimeSpan SubFrameDuration
137 + {
138 + get
139 + {
140 + if (_pNative == RootSystem.IntPtr.Zero)
141 + {
142 + throw new RootSystem.ObjectDisposedException("AudioSource");
143 + }
144 +
145 + return RootSystem.TimeSpan.FromMilliseconds(Windows_Kinect_AudioSource_get_SubFrameDuration(_pNative));
146 + }
147 + }
148 +
149 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
150 + private static extern uint Windows_Kinect_AudioSource_get_SubFrameLengthInBytes(RootSystem.IntPtr pNative);
151 + public uint SubFrameLengthInBytes
152 + {
153 + get
154 + {
155 + if (_pNative == RootSystem.IntPtr.Zero)
156 + {
157 + throw new RootSystem.ObjectDisposedException("AudioSource");
158 + }
159 +
160 + return Windows_Kinect_AudioSource_get_SubFrameLengthInBytes(_pNative);
161 + }
162 + }
163 +
164 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
165 + private static extern Windows.Kinect.KinectAudioCalibrationState Windows_Kinect_AudioSource_get_AudioCalibrationState(RootSystem.IntPtr pNative);
166 + public Windows.Kinect.KinectAudioCalibrationState AudioCalibrationState
167 + {
168 + get
169 + {
170 + if (_pNative == RootSystem.IntPtr.Zero)
171 + {
172 + throw new RootSystem.ObjectDisposedException("AudioSource");
173 + }
174 +
175 + return Windows_Kinect_AudioSource_get_AudioCalibrationState(_pNative);
176 + }
177 + }
178 +
179 +
180 + // Events
181 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Kinect_FrameCapturedEventArgs_Delegate_Handle;
182 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
183 + private delegate void _Windows_Kinect_FrameCapturedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
184 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.FrameCapturedEventArgs>>> Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.FrameCapturedEventArgs>>>();
185 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Kinect_FrameCapturedEventArgs_Delegate))]
186 + private static void Windows_Kinect_FrameCapturedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
187 + {
188 + List<RootSystem.EventHandler<Windows.Kinect.FrameCapturedEventArgs>> callbackList = null;
189 + Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
190 + lock(callbackList)
191 + {
192 + var objThis = Helper.NativeObjectCache.GetObject<AudioSource>(pNative);
193 + var args = new Windows.Kinect.FrameCapturedEventArgs(result);
194 + foreach(var func in callbackList)
195 + {
196 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
197 + }
198 + }
199 + }
200 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
201 + private static extern void Windows_Kinect_AudioSource_add_FrameCaptured(RootSystem.IntPtr pNative, _Windows_Kinect_FrameCapturedEventArgs_Delegate eventCallback, bool unsubscribe);
202 + public event RootSystem.EventHandler<Windows.Kinect.FrameCapturedEventArgs> FrameCaptured
203 + {
204 + add
205 + {
206 + Helper.EventPump.EnsureInitialized();
207 +
208 + Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
209 + var callbackList = Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks[_pNative];
210 + lock (callbackList)
211 + {
212 + callbackList.Add(value);
213 + if(callbackList.Count == 1)
214 + {
215 + var del = new _Windows_Kinect_FrameCapturedEventArgs_Delegate(Windows_Kinect_FrameCapturedEventArgs_Delegate_Handler);
216 + _Windows_Kinect_FrameCapturedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
217 + Windows_Kinect_AudioSource_add_FrameCaptured(_pNative, del, false);
218 + }
219 + }
220 + }
221 + remove
222 + {
223 + if (_pNative == RootSystem.IntPtr.Zero)
224 + {
225 + return;
226 + }
227 +
228 + Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
229 + var callbackList = Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks[_pNative];
230 + lock (callbackList)
231 + {
232 + callbackList.Remove(value);
233 + if(callbackList.Count == 0)
234 + {
235 + Windows_Kinect_AudioSource_add_FrameCaptured(_pNative, Windows_Kinect_FrameCapturedEventArgs_Delegate_Handler, true);
236 + _Windows_Kinect_FrameCapturedEventArgs_Delegate_Handle.Free();
237 + }
238 + }
239 + }
240 + }
241 +
242 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Data_PropertyChangedEventArgs_Delegate_Handle;
243 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
244 + private delegate void _Windows_Data_PropertyChangedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
245 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>> Windows_Data_PropertyChangedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>>();
246 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Data_PropertyChangedEventArgs_Delegate))]
247 + private static void Windows_Data_PropertyChangedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
248 + {
249 + List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>> callbackList = null;
250 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
251 + lock(callbackList)
252 + {
253 + var objThis = Helper.NativeObjectCache.GetObject<AudioSource>(pNative);
254 + var args = new Windows.Data.PropertyChangedEventArgs(result);
255 + foreach(var func in callbackList)
256 + {
257 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
258 + }
259 + }
260 + }
261 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
262 + private static extern void Windows_Kinect_AudioSource_add_PropertyChanged(RootSystem.IntPtr pNative, _Windows_Data_PropertyChangedEventArgs_Delegate eventCallback, bool unsubscribe);
263 + public event RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs> PropertyChanged
264 + {
265 + add
266 + {
267 + Helper.EventPump.EnsureInitialized();
268 +
269 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
270 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
271 + lock (callbackList)
272 + {
273 + callbackList.Add(value);
274 + if(callbackList.Count == 1)
275 + {
276 + var del = new _Windows_Data_PropertyChangedEventArgs_Delegate(Windows_Data_PropertyChangedEventArgs_Delegate_Handler);
277 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
278 + Windows_Kinect_AudioSource_add_PropertyChanged(_pNative, del, false);
279 + }
280 + }
281 + }
282 + remove
283 + {
284 + if (_pNative == RootSystem.IntPtr.Zero)
285 + {
286 + return;
287 + }
288 +
289 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
290 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
291 + lock (callbackList)
292 + {
293 + callbackList.Remove(value);
294 + if(callbackList.Count == 0)
295 + {
296 + Windows_Kinect_AudioSource_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
297 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
298 + }
299 + }
300 + }
301 + }
302 +
303 +
304 + // Public Methods
305 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
306 + private static extern RootSystem.IntPtr Windows_Kinect_AudioSource_OpenReader(RootSystem.IntPtr pNative);
307 + public Windows.Kinect.AudioBeamFrameReader OpenReader()
308 + {
309 + if (_pNative == RootSystem.IntPtr.Zero)
310 + {
311 + throw new RootSystem.ObjectDisposedException("AudioSource");
312 + }
313 +
314 + RootSystem.IntPtr objectPointer = Windows_Kinect_AudioSource_OpenReader(_pNative);
315 + Helper.ExceptionHelper.CheckLastError();
316 + if (objectPointer == RootSystem.IntPtr.Zero)
317 + {
318 + return null;
319 + }
320 +
321 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.AudioBeamFrameReader>(objectPointer, n => new Windows.Kinect.AudioBeamFrameReader(n));
322 + }
323 +
324 + private void __EventCleanup()
325 + {
326 + {
327 + Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
328 + var callbackList = Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks[_pNative];
329 + lock (callbackList)
330 + {
331 + if (callbackList.Count > 0)
332 + {
333 + callbackList.Clear();
334 + if (_pNative != RootSystem.IntPtr.Zero)
335 + {
336 + Windows_Kinect_AudioSource_add_FrameCaptured(_pNative, Windows_Kinect_FrameCapturedEventArgs_Delegate_Handler, true);
337 + }
338 + _Windows_Kinect_FrameCapturedEventArgs_Delegate_Handle.Free();
339 + }
340 + }
341 + }
342 + {
343 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
344 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
345 + lock (callbackList)
346 + {
347 + if (callbackList.Count > 0)
348 + {
349 + callbackList.Clear();
350 + if (_pNative != RootSystem.IntPtr.Zero)
351 + {
352 + Windows_Kinect_AudioSource_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
353 + }
354 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
355 + }
356 + }
357 + }
358 + }
359 + }
360 +
361 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.Body
8 + //
9 + public sealed partial class Body : Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal Body(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_Body_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~Body()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_Body_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_Body_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<Body>(_pNative);
41 + Windows_Kinect_Body_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern int Windows_Kinect_Body_get_Activities(RootSystem.IntPtr pNative, [RootSystem.Runtime.InteropServices.Out] Windows.Kinect.Activity[] outKeys, [RootSystem.Runtime.InteropServices.Out] Windows.Kinect.DetectionResult[] outValues, int outCollectionSize);
50 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
51 + private static extern int Windows_Kinect_Body_get_Activities_Length(RootSystem.IntPtr pNative);
52 + public RootSystem.Collections.Generic.Dictionary<Windows.Kinect.Activity, Windows.Kinect.DetectionResult> Activities
53 + {
54 + get
55 + {
56 + if (_pNative == RootSystem.IntPtr.Zero)
57 + {
58 + throw new RootSystem.ObjectDisposedException("Body");
59 + }
60 +
61 + int outCollectionSize = Windows_Kinect_Body_get_Activities_Length(_pNative);
62 + var outKeys = new Windows.Kinect.Activity[outCollectionSize];
63 + var outValues = new Windows.Kinect.DetectionResult[outCollectionSize];
64 + var managedDictionary = new RootSystem.Collections.Generic.Dictionary<Windows.Kinect.Activity, Windows.Kinect.DetectionResult>();
65 +
66 + outCollectionSize = Windows_Kinect_Body_get_Activities(_pNative, outKeys, outValues, outCollectionSize);
67 + Helper.ExceptionHelper.CheckLastError();
68 + for(int i=0;i<outCollectionSize;i++)
69 + {
70 + managedDictionary.Add(outKeys[i], outValues[i]);
71 + }
72 + return managedDictionary;
73 + }
74 + }
75 +
76 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
77 + private static extern int Windows_Kinect_Body_get_Appearance(RootSystem.IntPtr pNative, [RootSystem.Runtime.InteropServices.Out] Windows.Kinect.Appearance[] outKeys, [RootSystem.Runtime.InteropServices.Out] Windows.Kinect.DetectionResult[] outValues, int outCollectionSize);
78 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
79 + private static extern int Windows_Kinect_Body_get_Appearance_Length(RootSystem.IntPtr pNative);
80 + public RootSystem.Collections.Generic.Dictionary<Windows.Kinect.Appearance, Windows.Kinect.DetectionResult> Appearance
81 + {
82 + get
83 + {
84 + if (_pNative == RootSystem.IntPtr.Zero)
85 + {
86 + throw new RootSystem.ObjectDisposedException("Body");
87 + }
88 +
89 + int outCollectionSize = Windows_Kinect_Body_get_Appearance_Length(_pNative);
90 + var outKeys = new Windows.Kinect.Appearance[outCollectionSize];
91 + var outValues = new Windows.Kinect.DetectionResult[outCollectionSize];
92 + var managedDictionary = new RootSystem.Collections.Generic.Dictionary<Windows.Kinect.Appearance, Windows.Kinect.DetectionResult>();
93 +
94 + outCollectionSize = Windows_Kinect_Body_get_Appearance(_pNative, outKeys, outValues, outCollectionSize);
95 + Helper.ExceptionHelper.CheckLastError();
96 + for(int i=0;i<outCollectionSize;i++)
97 + {
98 + managedDictionary.Add(outKeys[i], outValues[i]);
99 + }
100 + return managedDictionary;
101 + }
102 + }
103 +
104 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
105 + private static extern Windows.Kinect.FrameEdges Windows_Kinect_Body_get_ClippedEdges(RootSystem.IntPtr pNative);
106 + public Windows.Kinect.FrameEdges ClippedEdges
107 + {
108 + get
109 + {
110 + if (_pNative == RootSystem.IntPtr.Zero)
111 + {
112 + throw new RootSystem.ObjectDisposedException("Body");
113 + }
114 +
115 + return Windows_Kinect_Body_get_ClippedEdges(_pNative);
116 + }
117 + }
118 +
119 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
120 + private static extern Windows.Kinect.DetectionResult Windows_Kinect_Body_get_Engaged(RootSystem.IntPtr pNative);
121 + public Windows.Kinect.DetectionResult Engaged
122 + {
123 + get
124 + {
125 + if (_pNative == RootSystem.IntPtr.Zero)
126 + {
127 + throw new RootSystem.ObjectDisposedException("Body");
128 + }
129 +
130 + return Windows_Kinect_Body_get_Engaged(_pNative);
131 + }
132 + }
133 +
134 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
135 + private static extern int Windows_Kinect_Body_get_Expressions(RootSystem.IntPtr pNative, [RootSystem.Runtime.InteropServices.Out] Windows.Kinect.Expression[] outKeys, [RootSystem.Runtime.InteropServices.Out] Windows.Kinect.DetectionResult[] outValues, int outCollectionSize);
136 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
137 + private static extern int Windows_Kinect_Body_get_Expressions_Length(RootSystem.IntPtr pNative);
138 + public RootSystem.Collections.Generic.Dictionary<Windows.Kinect.Expression, Windows.Kinect.DetectionResult> Expressions
139 + {
140 + get
141 + {
142 + if (_pNative == RootSystem.IntPtr.Zero)
143 + {
144 + throw new RootSystem.ObjectDisposedException("Body");
145 + }
146 +
147 + int outCollectionSize = Windows_Kinect_Body_get_Expressions_Length(_pNative);
148 + var outKeys = new Windows.Kinect.Expression[outCollectionSize];
149 + var outValues = new Windows.Kinect.DetectionResult[outCollectionSize];
150 + var managedDictionary = new RootSystem.Collections.Generic.Dictionary<Windows.Kinect.Expression, Windows.Kinect.DetectionResult>();
151 +
152 + outCollectionSize = Windows_Kinect_Body_get_Expressions(_pNative, outKeys, outValues, outCollectionSize);
153 + Helper.ExceptionHelper.CheckLastError();
154 + for(int i=0;i<outCollectionSize;i++)
155 + {
156 + managedDictionary.Add(outKeys[i], outValues[i]);
157 + }
158 + return managedDictionary;
159 + }
160 + }
161 +
162 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
163 + private static extern Windows.Kinect.TrackingConfidence Windows_Kinect_Body_get_HandLeftConfidence(RootSystem.IntPtr pNative);
164 + public Windows.Kinect.TrackingConfidence HandLeftConfidence
165 + {
166 + get
167 + {
168 + if (_pNative == RootSystem.IntPtr.Zero)
169 + {
170 + throw new RootSystem.ObjectDisposedException("Body");
171 + }
172 +
173 + return Windows_Kinect_Body_get_HandLeftConfidence(_pNative);
174 + }
175 + }
176 +
177 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
178 + private static extern Windows.Kinect.HandState Windows_Kinect_Body_get_HandLeftState(RootSystem.IntPtr pNative);
179 + public Windows.Kinect.HandState HandLeftState
180 + {
181 + get
182 + {
183 + if (_pNative == RootSystem.IntPtr.Zero)
184 + {
185 + throw new RootSystem.ObjectDisposedException("Body");
186 + }
187 +
188 + return Windows_Kinect_Body_get_HandLeftState(_pNative);
189 + }
190 + }
191 +
192 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
193 + private static extern Windows.Kinect.TrackingConfidence Windows_Kinect_Body_get_HandRightConfidence(RootSystem.IntPtr pNative);
194 + public Windows.Kinect.TrackingConfidence HandRightConfidence
195 + {
196 + get
197 + {
198 + if (_pNative == RootSystem.IntPtr.Zero)
199 + {
200 + throw new RootSystem.ObjectDisposedException("Body");
201 + }
202 +
203 + return Windows_Kinect_Body_get_HandRightConfidence(_pNative);
204 + }
205 + }
206 +
207 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
208 + private static extern Windows.Kinect.HandState Windows_Kinect_Body_get_HandRightState(RootSystem.IntPtr pNative);
209 + public Windows.Kinect.HandState HandRightState
210 + {
211 + get
212 + {
213 + if (_pNative == RootSystem.IntPtr.Zero)
214 + {
215 + throw new RootSystem.ObjectDisposedException("Body");
216 + }
217 +
218 + return Windows_Kinect_Body_get_HandRightState(_pNative);
219 + }
220 + }
221 +
222 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
223 + private static extern bool Windows_Kinect_Body_get_IsRestricted(RootSystem.IntPtr pNative);
224 + public bool IsRestricted
225 + {
226 + get
227 + {
228 + if (_pNative == RootSystem.IntPtr.Zero)
229 + {
230 + throw new RootSystem.ObjectDisposedException("Body");
231 + }
232 +
233 + return Windows_Kinect_Body_get_IsRestricted(_pNative);
234 + }
235 + }
236 +
237 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
238 + private static extern bool Windows_Kinect_Body_get_IsTracked(RootSystem.IntPtr pNative);
239 + public bool IsTracked
240 + {
241 + get
242 + {
243 + if (_pNative == RootSystem.IntPtr.Zero)
244 + {
245 + throw new RootSystem.ObjectDisposedException("Body");
246 + }
247 +
248 + return Windows_Kinect_Body_get_IsTracked(_pNative);
249 + }
250 + }
251 +
252 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
253 + private static extern int Windows_Kinect_Body_get_JointOrientations(RootSystem.IntPtr pNative, [RootSystem.Runtime.InteropServices.Out] Windows.Kinect.JointType[] outKeys, [RootSystem.Runtime.InteropServices.Out] Windows.Kinect.JointOrientation[] outValues, int outCollectionSize);
254 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
255 + private static extern int Windows_Kinect_Body_get_JointOrientations_Length(RootSystem.IntPtr pNative);
256 + public RootSystem.Collections.Generic.Dictionary<Windows.Kinect.JointType, Windows.Kinect.JointOrientation> JointOrientations
257 + {
258 + get
259 + {
260 + if (_pNative == RootSystem.IntPtr.Zero)
261 + {
262 + throw new RootSystem.ObjectDisposedException("Body");
263 + }
264 +
265 + int outCollectionSize = Windows_Kinect_Body_get_JointOrientations_Length(_pNative);
266 + var outKeys = new Windows.Kinect.JointType[outCollectionSize];
267 + var outValues = new Windows.Kinect.JointOrientation[outCollectionSize];
268 + var managedDictionary = new RootSystem.Collections.Generic.Dictionary<Windows.Kinect.JointType, Windows.Kinect.JointOrientation>();
269 +
270 + outCollectionSize = Windows_Kinect_Body_get_JointOrientations(_pNative, outKeys, outValues, outCollectionSize);
271 + Helper.ExceptionHelper.CheckLastError();
272 + for(int i=0;i<outCollectionSize;i++)
273 + {
274 + managedDictionary.Add(outKeys[i], outValues[i]);
275 + }
276 + return managedDictionary;
277 + }
278 + }
279 +
280 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
281 + private static extern int Windows_Kinect_Body_get_Joints(RootSystem.IntPtr pNative, [RootSystem.Runtime.InteropServices.Out] Windows.Kinect.JointType[] outKeys, [RootSystem.Runtime.InteropServices.Out] Windows.Kinect.Joint[] outValues, int outCollectionSize);
282 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
283 + private static extern int Windows_Kinect_Body_get_Joints_Length(RootSystem.IntPtr pNative);
284 + public RootSystem.Collections.Generic.Dictionary<Windows.Kinect.JointType, Windows.Kinect.Joint> Joints
285 + {
286 + get
287 + {
288 + if (_pNative == RootSystem.IntPtr.Zero)
289 + {
290 + throw new RootSystem.ObjectDisposedException("Body");
291 + }
292 +
293 + int outCollectionSize = Windows_Kinect_Body_get_Joints_Length(_pNative);
294 + var outKeys = new Windows.Kinect.JointType[outCollectionSize];
295 + var outValues = new Windows.Kinect.Joint[outCollectionSize];
296 + var managedDictionary = new RootSystem.Collections.Generic.Dictionary<Windows.Kinect.JointType, Windows.Kinect.Joint>();
297 +
298 + outCollectionSize = Windows_Kinect_Body_get_Joints(_pNative, outKeys, outValues, outCollectionSize);
299 + Helper.ExceptionHelper.CheckLastError();
300 + for(int i=0;i<outCollectionSize;i++)
301 + {
302 + managedDictionary.Add(outKeys[i], outValues[i]);
303 + }
304 + return managedDictionary;
305 + }
306 + }
307 +
308 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
309 + private static extern Windows.Kinect.TrackingState Windows_Kinect_Body_get_LeanTrackingState(RootSystem.IntPtr pNative);
310 + public Windows.Kinect.TrackingState LeanTrackingState
311 + {
312 + get
313 + {
314 + if (_pNative == RootSystem.IntPtr.Zero)
315 + {
316 + throw new RootSystem.ObjectDisposedException("Body");
317 + }
318 +
319 + return Windows_Kinect_Body_get_LeanTrackingState(_pNative);
320 + }
321 + }
322 +
323 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
324 + private static extern ulong Windows_Kinect_Body_get_TrackingId(RootSystem.IntPtr pNative);
325 + public ulong TrackingId
326 + {
327 + get
328 + {
329 + if (_pNative == RootSystem.IntPtr.Zero)
330 + {
331 + throw new RootSystem.ObjectDisposedException("Body");
332 + }
333 +
334 + return Windows_Kinect_Body_get_TrackingId(_pNative);
335 + }
336 + }
337 +
338 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
339 + private static extern int Windows_Kinect_Body_get_JointCount();
340 + public static int JointCount
341 + {
342 + get
343 + {
344 + return Windows_Kinect_Body_get_JointCount();
345 + }
346 + }
347 +
348 +
349 + // Public Methods
350 + private void __EventCleanup()
351 + {
352 + }
353 + }
354 +
355 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.BodyFrame
8 + //
9 + public sealed partial class BodyFrame : RootSystem.IDisposable, Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal BodyFrame(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_BodyFrame_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~BodyFrame()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_BodyFrame_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_BodyFrame_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<BodyFrame>(_pNative);
41 +
42 + if (disposing)
43 + {
44 + Windows_Kinect_BodyFrame_Dispose(_pNative);
45 + }
46 + Windows_Kinect_BodyFrame_ReleaseObject(ref _pNative);
47 +
48 + _pNative = RootSystem.IntPtr.Zero;
49 + }
50 +
51 +
52 + // Public Properties
53 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
54 + private static extern int Windows_Kinect_BodyFrame_get_BodyCount(RootSystem.IntPtr pNative);
55 + public int BodyCount
56 + {
57 + get
58 + {
59 + if (_pNative == RootSystem.IntPtr.Zero)
60 + {
61 + throw new RootSystem.ObjectDisposedException("BodyFrame");
62 + }
63 +
64 + return Windows_Kinect_BodyFrame_get_BodyCount(_pNative);
65 + }
66 + }
67 +
68 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
69 + private static extern RootSystem.IntPtr Windows_Kinect_BodyFrame_get_BodyFrameSource(RootSystem.IntPtr pNative);
70 + public Windows.Kinect.BodyFrameSource BodyFrameSource
71 + {
72 + get
73 + {
74 + if (_pNative == RootSystem.IntPtr.Zero)
75 + {
76 + throw new RootSystem.ObjectDisposedException("BodyFrame");
77 + }
78 +
79 + RootSystem.IntPtr objectPointer = Windows_Kinect_BodyFrame_get_BodyFrameSource(_pNative);
80 + Helper.ExceptionHelper.CheckLastError();
81 + if (objectPointer == RootSystem.IntPtr.Zero)
82 + {
83 + return null;
84 + }
85 +
86 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.BodyFrameSource>(objectPointer, n => new Windows.Kinect.BodyFrameSource(n));
87 + }
88 + }
89 +
90 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
91 + private static extern RootSystem.IntPtr Windows_Kinect_BodyFrame_get_FloorClipPlane(RootSystem.IntPtr pNative);
92 + public Windows.Kinect.Vector4 FloorClipPlane
93 + {
94 + get
95 + {
96 + if (_pNative == RootSystem.IntPtr.Zero)
97 + {
98 + throw new RootSystem.ObjectDisposedException("BodyFrame");
99 + }
100 +
101 + var objectPointer = Windows_Kinect_BodyFrame_get_FloorClipPlane(_pNative);
102 + Helper.ExceptionHelper.CheckLastError();
103 + var obj = (Windows.Kinect.Vector4)RootSystem.Runtime.InteropServices.Marshal.PtrToStructure(objectPointer, typeof(Windows.Kinect.Vector4));
104 + Windows.Kinect.KinectUnityAddinUtils.FreeMemory(objectPointer);
105 + return obj;
106 + }
107 + }
108 +
109 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
110 + private static extern long Windows_Kinect_BodyFrame_get_RelativeTime(RootSystem.IntPtr pNative);
111 + public RootSystem.TimeSpan RelativeTime
112 + {
113 + get
114 + {
115 + if (_pNative == RootSystem.IntPtr.Zero)
116 + {
117 + throw new RootSystem.ObjectDisposedException("BodyFrame");
118 + }
119 +
120 + return RootSystem.TimeSpan.FromMilliseconds(Windows_Kinect_BodyFrame_get_RelativeTime(_pNative));
121 + }
122 + }
123 +
124 +
125 + // Public Methods
126 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
127 + private static extern void Windows_Kinect_BodyFrame_Dispose(RootSystem.IntPtr pNative);
128 + public void Dispose()
129 + {
130 + if (_pNative == RootSystem.IntPtr.Zero)
131 + {
132 + return;
133 + }
134 +
135 + Dispose(true);
136 + RootSystem.GC.SuppressFinalize(this);
137 + }
138 +
139 + private void __EventCleanup()
140 + {
141 + }
142 + }
143 +
144 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.BodyFrameArrivedEventArgs
8 + //
9 + public sealed partial class BodyFrameArrivedEventArgs : RootSystem.EventArgs, Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal BodyFrameArrivedEventArgs(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_BodyFrameArrivedEventArgs_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~BodyFrameArrivedEventArgs()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_BodyFrameArrivedEventArgs_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_BodyFrameArrivedEventArgs_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<BodyFrameArrivedEventArgs>(_pNative);
41 + Windows_Kinect_BodyFrameArrivedEventArgs_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern RootSystem.IntPtr Windows_Kinect_BodyFrameArrivedEventArgs_get_FrameReference(RootSystem.IntPtr pNative);
50 + public Windows.Kinect.BodyFrameReference FrameReference
51 + {
52 + get
53 + {
54 + if (_pNative == RootSystem.IntPtr.Zero)
55 + {
56 + throw new RootSystem.ObjectDisposedException("BodyFrameArrivedEventArgs");
57 + }
58 +
59 + RootSystem.IntPtr objectPointer = Windows_Kinect_BodyFrameArrivedEventArgs_get_FrameReference(_pNative);
60 + Helper.ExceptionHelper.CheckLastError();
61 + if (objectPointer == RootSystem.IntPtr.Zero)
62 + {
63 + return null;
64 + }
65 +
66 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.BodyFrameReference>(objectPointer, n => new Windows.Kinect.BodyFrameReference(n));
67 + }
68 + }
69 +
70 + private void __EventCleanup()
71 + {
72 + }
73 + }
74 +
75 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.BodyFrameReader
8 + //
9 + public sealed partial class BodyFrameReader : RootSystem.IDisposable, Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal BodyFrameReader(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_BodyFrameReader_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~BodyFrameReader()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_BodyFrameReader_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_BodyFrameReader_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<BodyFrameReader>(_pNative);
41 +
42 + if (disposing)
43 + {
44 + Windows_Kinect_BodyFrameReader_Dispose(_pNative);
45 + }
46 + Windows_Kinect_BodyFrameReader_ReleaseObject(ref _pNative);
47 +
48 + _pNative = RootSystem.IntPtr.Zero;
49 + }
50 +
51 +
52 + // Public Properties
53 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
54 + private static extern RootSystem.IntPtr Windows_Kinect_BodyFrameReader_get_BodyFrameSource(RootSystem.IntPtr pNative);
55 + public Windows.Kinect.BodyFrameSource BodyFrameSource
56 + {
57 + get
58 + {
59 + if (_pNative == RootSystem.IntPtr.Zero)
60 + {
61 + throw new RootSystem.ObjectDisposedException("BodyFrameReader");
62 + }
63 +
64 + RootSystem.IntPtr objectPointer = Windows_Kinect_BodyFrameReader_get_BodyFrameSource(_pNative);
65 + Helper.ExceptionHelper.CheckLastError();
66 + if (objectPointer == RootSystem.IntPtr.Zero)
67 + {
68 + return null;
69 + }
70 +
71 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.BodyFrameSource>(objectPointer, n => new Windows.Kinect.BodyFrameSource(n));
72 + }
73 + }
74 +
75 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
76 + private static extern bool Windows_Kinect_BodyFrameReader_get_IsPaused(RootSystem.IntPtr pNative);
77 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
78 + private static extern void Windows_Kinect_BodyFrameReader_put_IsPaused(RootSystem.IntPtr pNative, bool isPaused);
79 + public bool IsPaused
80 + {
81 + get
82 + {
83 + if (_pNative == RootSystem.IntPtr.Zero)
84 + {
85 + throw new RootSystem.ObjectDisposedException("BodyFrameReader");
86 + }
87 +
88 + return Windows_Kinect_BodyFrameReader_get_IsPaused(_pNative);
89 + }
90 + set
91 + {
92 + if (_pNative == RootSystem.IntPtr.Zero)
93 + {
94 + throw new RootSystem.ObjectDisposedException("BodyFrameReader");
95 + }
96 +
97 + Windows_Kinect_BodyFrameReader_put_IsPaused(_pNative, value);
98 + Helper.ExceptionHelper.CheckLastError();
99 + }
100 + }
101 +
102 +
103 + // Events
104 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Kinect_BodyFrameArrivedEventArgs_Delegate_Handle;
105 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
106 + private delegate void _Windows_Kinect_BodyFrameArrivedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
107 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.BodyFrameArrivedEventArgs>>> Windows_Kinect_BodyFrameArrivedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.BodyFrameArrivedEventArgs>>>();
108 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Kinect_BodyFrameArrivedEventArgs_Delegate))]
109 + private static void Windows_Kinect_BodyFrameArrivedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
110 + {
111 + List<RootSystem.EventHandler<Windows.Kinect.BodyFrameArrivedEventArgs>> callbackList = null;
112 + Windows_Kinect_BodyFrameArrivedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
113 + lock(callbackList)
114 + {
115 + var objThis = Helper.NativeObjectCache.GetObject<BodyFrameReader>(pNative);
116 + var args = new Windows.Kinect.BodyFrameArrivedEventArgs(result);
117 + foreach(var func in callbackList)
118 + {
119 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
120 + }
121 + }
122 + }
123 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
124 + private static extern void Windows_Kinect_BodyFrameReader_add_FrameArrived(RootSystem.IntPtr pNative, _Windows_Kinect_BodyFrameArrivedEventArgs_Delegate eventCallback, bool unsubscribe);
125 + public event RootSystem.EventHandler<Windows.Kinect.BodyFrameArrivedEventArgs> FrameArrived
126 + {
127 + add
128 + {
129 + Helper.EventPump.EnsureInitialized();
130 +
131 + Windows_Kinect_BodyFrameArrivedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
132 + var callbackList = Windows_Kinect_BodyFrameArrivedEventArgs_Delegate_callbacks[_pNative];
133 + lock (callbackList)
134 + {
135 + callbackList.Add(value);
136 + if(callbackList.Count == 1)
137 + {
138 + var del = new _Windows_Kinect_BodyFrameArrivedEventArgs_Delegate(Windows_Kinect_BodyFrameArrivedEventArgs_Delegate_Handler);
139 + _Windows_Kinect_BodyFrameArrivedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
140 + Windows_Kinect_BodyFrameReader_add_FrameArrived(_pNative, del, false);
141 + }
142 + }
143 + }
144 + remove
145 + {
146 + if (_pNative == RootSystem.IntPtr.Zero)
147 + {
148 + return;
149 + }
150 +
151 + Windows_Kinect_BodyFrameArrivedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
152 + var callbackList = Windows_Kinect_BodyFrameArrivedEventArgs_Delegate_callbacks[_pNative];
153 + lock (callbackList)
154 + {
155 + callbackList.Remove(value);
156 + if(callbackList.Count == 0)
157 + {
158 + Windows_Kinect_BodyFrameReader_add_FrameArrived(_pNative, Windows_Kinect_BodyFrameArrivedEventArgs_Delegate_Handler, true);
159 + _Windows_Kinect_BodyFrameArrivedEventArgs_Delegate_Handle.Free();
160 + }
161 + }
162 + }
163 + }
164 +
165 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Data_PropertyChangedEventArgs_Delegate_Handle;
166 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
167 + private delegate void _Windows_Data_PropertyChangedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
168 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>> Windows_Data_PropertyChangedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>>();
169 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Data_PropertyChangedEventArgs_Delegate))]
170 + private static void Windows_Data_PropertyChangedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
171 + {
172 + List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>> callbackList = null;
173 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
174 + lock(callbackList)
175 + {
176 + var objThis = Helper.NativeObjectCache.GetObject<BodyFrameReader>(pNative);
177 + var args = new Windows.Data.PropertyChangedEventArgs(result);
178 + foreach(var func in callbackList)
179 + {
180 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
181 + }
182 + }
183 + }
184 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
185 + private static extern void Windows_Kinect_BodyFrameReader_add_PropertyChanged(RootSystem.IntPtr pNative, _Windows_Data_PropertyChangedEventArgs_Delegate eventCallback, bool unsubscribe);
186 + public event RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs> PropertyChanged
187 + {
188 + add
189 + {
190 + Helper.EventPump.EnsureInitialized();
191 +
192 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
193 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
194 + lock (callbackList)
195 + {
196 + callbackList.Add(value);
197 + if(callbackList.Count == 1)
198 + {
199 + var del = new _Windows_Data_PropertyChangedEventArgs_Delegate(Windows_Data_PropertyChangedEventArgs_Delegate_Handler);
200 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
201 + Windows_Kinect_BodyFrameReader_add_PropertyChanged(_pNative, del, false);
202 + }
203 + }
204 + }
205 + remove
206 + {
207 + if (_pNative == RootSystem.IntPtr.Zero)
208 + {
209 + return;
210 + }
211 +
212 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
213 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
214 + lock (callbackList)
215 + {
216 + callbackList.Remove(value);
217 + if(callbackList.Count == 0)
218 + {
219 + Windows_Kinect_BodyFrameReader_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
220 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
221 + }
222 + }
223 + }
224 + }
225 +
226 +
227 + // Public Methods
228 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
229 + private static extern RootSystem.IntPtr Windows_Kinect_BodyFrameReader_AcquireLatestFrame(RootSystem.IntPtr pNative);
230 + public Windows.Kinect.BodyFrame AcquireLatestFrame()
231 + {
232 + if (_pNative == RootSystem.IntPtr.Zero)
233 + {
234 + throw new RootSystem.ObjectDisposedException("BodyFrameReader");
235 + }
236 +
237 + RootSystem.IntPtr objectPointer = Windows_Kinect_BodyFrameReader_AcquireLatestFrame(_pNative);
238 + Helper.ExceptionHelper.CheckLastError();
239 + if (objectPointer == RootSystem.IntPtr.Zero)
240 + {
241 + return null;
242 + }
243 +
244 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.BodyFrame>(objectPointer, n => new Windows.Kinect.BodyFrame(n));
245 + }
246 +
247 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
248 + private static extern void Windows_Kinect_BodyFrameReader_Dispose(RootSystem.IntPtr pNative);
249 + public void Dispose()
250 + {
251 + if (_pNative == RootSystem.IntPtr.Zero)
252 + {
253 + return;
254 + }
255 +
256 + Dispose(true);
257 + RootSystem.GC.SuppressFinalize(this);
258 + }
259 +
260 + private void __EventCleanup()
261 + {
262 + {
263 + Windows_Kinect_BodyFrameArrivedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
264 + var callbackList = Windows_Kinect_BodyFrameArrivedEventArgs_Delegate_callbacks[_pNative];
265 + lock (callbackList)
266 + {
267 + if (callbackList.Count > 0)
268 + {
269 + callbackList.Clear();
270 + if (_pNative != RootSystem.IntPtr.Zero)
271 + {
272 + Windows_Kinect_BodyFrameReader_add_FrameArrived(_pNative, Windows_Kinect_BodyFrameArrivedEventArgs_Delegate_Handler, true);
273 + }
274 + _Windows_Kinect_BodyFrameArrivedEventArgs_Delegate_Handle.Free();
275 + }
276 + }
277 + }
278 + {
279 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
280 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
281 + lock (callbackList)
282 + {
283 + if (callbackList.Count > 0)
284 + {
285 + callbackList.Clear();
286 + if (_pNative != RootSystem.IntPtr.Zero)
287 + {
288 + Windows_Kinect_BodyFrameReader_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
289 + }
290 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
291 + }
292 + }
293 + }
294 + }
295 + }
296 +
297 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.BodyFrameReference
8 + //
9 + public sealed partial class BodyFrameReference : Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal BodyFrameReference(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_BodyFrameReference_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~BodyFrameReference()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_BodyFrameReference_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_BodyFrameReference_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<BodyFrameReference>(_pNative);
41 + Windows_Kinect_BodyFrameReference_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern long Windows_Kinect_BodyFrameReference_get_RelativeTime(RootSystem.IntPtr pNative);
50 + public RootSystem.TimeSpan RelativeTime
51 + {
52 + get
53 + {
54 + if (_pNative == RootSystem.IntPtr.Zero)
55 + {
56 + throw new RootSystem.ObjectDisposedException("BodyFrameReference");
57 + }
58 +
59 + return RootSystem.TimeSpan.FromMilliseconds(Windows_Kinect_BodyFrameReference_get_RelativeTime(_pNative));
60 + }
61 + }
62 +
63 +
64 + // Public Methods
65 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
66 + private static extern RootSystem.IntPtr Windows_Kinect_BodyFrameReference_AcquireFrame(RootSystem.IntPtr pNative);
67 + public Windows.Kinect.BodyFrame AcquireFrame()
68 + {
69 + if (_pNative == RootSystem.IntPtr.Zero)
70 + {
71 + throw new RootSystem.ObjectDisposedException("BodyFrameReference");
72 + }
73 +
74 + RootSystem.IntPtr objectPointer = Windows_Kinect_BodyFrameReference_AcquireFrame(_pNative);
75 + Helper.ExceptionHelper.CheckLastError();
76 + if (objectPointer == RootSystem.IntPtr.Zero)
77 + {
78 + return null;
79 + }
80 +
81 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.BodyFrame>(objectPointer, n => new Windows.Kinect.BodyFrame(n));
82 + }
83 +
84 + private void __EventCleanup()
85 + {
86 + }
87 + }
88 +
89 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.BodyFrameSource
8 + //
9 + public sealed partial class BodyFrameSource : Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal BodyFrameSource(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_BodyFrameSource_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~BodyFrameSource()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_BodyFrameSource_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_BodyFrameSource_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<BodyFrameSource>(_pNative);
41 + Windows_Kinect_BodyFrameSource_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern int Windows_Kinect_BodyFrameSource_get_BodyCount(RootSystem.IntPtr pNative);
50 + public int BodyCount
51 + {
52 + get
53 + {
54 + if (_pNative == RootSystem.IntPtr.Zero)
55 + {
56 + throw new RootSystem.ObjectDisposedException("BodyFrameSource");
57 + }
58 +
59 + return Windows_Kinect_BodyFrameSource_get_BodyCount(_pNative);
60 + }
61 + }
62 +
63 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
64 + private static extern bool Windows_Kinect_BodyFrameSource_get_IsActive(RootSystem.IntPtr pNative);
65 + public bool IsActive
66 + {
67 + get
68 + {
69 + if (_pNative == RootSystem.IntPtr.Zero)
70 + {
71 + throw new RootSystem.ObjectDisposedException("BodyFrameSource");
72 + }
73 +
74 + return Windows_Kinect_BodyFrameSource_get_IsActive(_pNative);
75 + }
76 + }
77 +
78 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
79 + private static extern RootSystem.IntPtr Windows_Kinect_BodyFrameSource_get_KinectSensor(RootSystem.IntPtr pNative);
80 + public Windows.Kinect.KinectSensor KinectSensor
81 + {
82 + get
83 + {
84 + if (_pNative == RootSystem.IntPtr.Zero)
85 + {
86 + throw new RootSystem.ObjectDisposedException("BodyFrameSource");
87 + }
88 +
89 + RootSystem.IntPtr objectPointer = Windows_Kinect_BodyFrameSource_get_KinectSensor(_pNative);
90 + Helper.ExceptionHelper.CheckLastError();
91 + if (objectPointer == RootSystem.IntPtr.Zero)
92 + {
93 + return null;
94 + }
95 +
96 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.KinectSensor>(objectPointer, n => new Windows.Kinect.KinectSensor(n));
97 + }
98 + }
99 +
100 +
101 + // Events
102 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Kinect_FrameCapturedEventArgs_Delegate_Handle;
103 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
104 + private delegate void _Windows_Kinect_FrameCapturedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
105 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.FrameCapturedEventArgs>>> Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.FrameCapturedEventArgs>>>();
106 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Kinect_FrameCapturedEventArgs_Delegate))]
107 + private static void Windows_Kinect_FrameCapturedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
108 + {
109 + List<RootSystem.EventHandler<Windows.Kinect.FrameCapturedEventArgs>> callbackList = null;
110 + Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
111 + lock(callbackList)
112 + {
113 + var objThis = Helper.NativeObjectCache.GetObject<BodyFrameSource>(pNative);
114 + var args = new Windows.Kinect.FrameCapturedEventArgs(result);
115 + foreach(var func in callbackList)
116 + {
117 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
118 + }
119 + }
120 + }
121 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
122 + private static extern void Windows_Kinect_BodyFrameSource_add_FrameCaptured(RootSystem.IntPtr pNative, _Windows_Kinect_FrameCapturedEventArgs_Delegate eventCallback, bool unsubscribe);
123 + public event RootSystem.EventHandler<Windows.Kinect.FrameCapturedEventArgs> FrameCaptured
124 + {
125 + add
126 + {
127 + Helper.EventPump.EnsureInitialized();
128 +
129 + Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
130 + var callbackList = Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks[_pNative];
131 + lock (callbackList)
132 + {
133 + callbackList.Add(value);
134 + if(callbackList.Count == 1)
135 + {
136 + var del = new _Windows_Kinect_FrameCapturedEventArgs_Delegate(Windows_Kinect_FrameCapturedEventArgs_Delegate_Handler);
137 + _Windows_Kinect_FrameCapturedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
138 + Windows_Kinect_BodyFrameSource_add_FrameCaptured(_pNative, del, false);
139 + }
140 + }
141 + }
142 + remove
143 + {
144 + if (_pNative == RootSystem.IntPtr.Zero)
145 + {
146 + return;
147 + }
148 +
149 + Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
150 + var callbackList = Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks[_pNative];
151 + lock (callbackList)
152 + {
153 + callbackList.Remove(value);
154 + if(callbackList.Count == 0)
155 + {
156 + Windows_Kinect_BodyFrameSource_add_FrameCaptured(_pNative, Windows_Kinect_FrameCapturedEventArgs_Delegate_Handler, true);
157 + _Windows_Kinect_FrameCapturedEventArgs_Delegate_Handle.Free();
158 + }
159 + }
160 + }
161 + }
162 +
163 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Data_PropertyChangedEventArgs_Delegate_Handle;
164 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
165 + private delegate void _Windows_Data_PropertyChangedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
166 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>> Windows_Data_PropertyChangedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>>();
167 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Data_PropertyChangedEventArgs_Delegate))]
168 + private static void Windows_Data_PropertyChangedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
169 + {
170 + List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>> callbackList = null;
171 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
172 + lock(callbackList)
173 + {
174 + var objThis = Helper.NativeObjectCache.GetObject<BodyFrameSource>(pNative);
175 + var args = new Windows.Data.PropertyChangedEventArgs(result);
176 + foreach(var func in callbackList)
177 + {
178 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
179 + }
180 + }
181 + }
182 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
183 + private static extern void Windows_Kinect_BodyFrameSource_add_PropertyChanged(RootSystem.IntPtr pNative, _Windows_Data_PropertyChangedEventArgs_Delegate eventCallback, bool unsubscribe);
184 + public event RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs> PropertyChanged
185 + {
186 + add
187 + {
188 + Helper.EventPump.EnsureInitialized();
189 +
190 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
191 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
192 + lock (callbackList)
193 + {
194 + callbackList.Add(value);
195 + if(callbackList.Count == 1)
196 + {
197 + var del = new _Windows_Data_PropertyChangedEventArgs_Delegate(Windows_Data_PropertyChangedEventArgs_Delegate_Handler);
198 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
199 + Windows_Kinect_BodyFrameSource_add_PropertyChanged(_pNative, del, false);
200 + }
201 + }
202 + }
203 + remove
204 + {
205 + if (_pNative == RootSystem.IntPtr.Zero)
206 + {
207 + return;
208 + }
209 +
210 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
211 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
212 + lock (callbackList)
213 + {
214 + callbackList.Remove(value);
215 + if(callbackList.Count == 0)
216 + {
217 + Windows_Kinect_BodyFrameSource_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
218 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
219 + }
220 + }
221 + }
222 + }
223 +
224 +
225 + // Public Methods
226 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
227 + private static extern RootSystem.IntPtr Windows_Kinect_BodyFrameSource_OpenReader(RootSystem.IntPtr pNative);
228 + public Windows.Kinect.BodyFrameReader OpenReader()
229 + {
230 + if (_pNative == RootSystem.IntPtr.Zero)
231 + {
232 + throw new RootSystem.ObjectDisposedException("BodyFrameSource");
233 + }
234 +
235 + RootSystem.IntPtr objectPointer = Windows_Kinect_BodyFrameSource_OpenReader(_pNative);
236 + Helper.ExceptionHelper.CheckLastError();
237 + if (objectPointer == RootSystem.IntPtr.Zero)
238 + {
239 + return null;
240 + }
241 +
242 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.BodyFrameReader>(objectPointer, n => new Windows.Kinect.BodyFrameReader(n));
243 + }
244 +
245 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
246 + private static extern void Windows_Kinect_BodyFrameSource_OverrideHandTracking(RootSystem.IntPtr pNative, ulong trackingId);
247 + public void OverrideHandTracking(ulong trackingId)
248 + {
249 + if (_pNative == RootSystem.IntPtr.Zero)
250 + {
251 + throw new RootSystem.ObjectDisposedException("BodyFrameSource");
252 + }
253 +
254 + Windows_Kinect_BodyFrameSource_OverrideHandTracking(_pNative, trackingId);
255 + Helper.ExceptionHelper.CheckLastError();
256 + }
257 +
258 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
259 + private static extern void Windows_Kinect_BodyFrameSource_OverrideHandTracking_1(RootSystem.IntPtr pNative, ulong oldTrackingId, ulong newTrackingId);
260 + public void OverrideHandTracking(ulong oldTrackingId, ulong newTrackingId)
261 + {
262 + if (_pNative == RootSystem.IntPtr.Zero)
263 + {
264 + throw new RootSystem.ObjectDisposedException("BodyFrameSource");
265 + }
266 +
267 + Windows_Kinect_BodyFrameSource_OverrideHandTracking_1(_pNative, oldTrackingId, newTrackingId);
268 + Helper.ExceptionHelper.CheckLastError();
269 + }
270 +
271 + private void __EventCleanup()
272 + {
273 + {
274 + Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
275 + var callbackList = Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks[_pNative];
276 + lock (callbackList)
277 + {
278 + if (callbackList.Count > 0)
279 + {
280 + callbackList.Clear();
281 + if (_pNative != RootSystem.IntPtr.Zero)
282 + {
283 + Windows_Kinect_BodyFrameSource_add_FrameCaptured(_pNative, Windows_Kinect_FrameCapturedEventArgs_Delegate_Handler, true);
284 + }
285 + _Windows_Kinect_FrameCapturedEventArgs_Delegate_Handle.Free();
286 + }
287 + }
288 + }
289 + {
290 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
291 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
292 + lock (callbackList)
293 + {
294 + if (callbackList.Count > 0)
295 + {
296 + callbackList.Clear();
297 + if (_pNative != RootSystem.IntPtr.Zero)
298 + {
299 + Windows_Kinect_BodyFrameSource_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
300 + }
301 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
302 + }
303 + }
304 + }
305 + }
306 + }
307 +
308 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.BodyIndexFrame
8 + //
9 + public sealed partial class BodyIndexFrame : RootSystem.IDisposable, Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal BodyIndexFrame(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_BodyIndexFrame_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~BodyIndexFrame()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_BodyIndexFrame_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_BodyIndexFrame_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<BodyIndexFrame>(_pNative);
41 +
42 + if (disposing)
43 + {
44 + Windows_Kinect_BodyIndexFrame_Dispose(_pNative);
45 + }
46 + Windows_Kinect_BodyIndexFrame_ReleaseObject(ref _pNative);
47 +
48 + _pNative = RootSystem.IntPtr.Zero;
49 + }
50 +
51 +
52 + // Public Properties
53 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
54 + private static extern RootSystem.IntPtr Windows_Kinect_BodyIndexFrame_get_BodyIndexFrameSource(RootSystem.IntPtr pNative);
55 + public Windows.Kinect.BodyIndexFrameSource BodyIndexFrameSource
56 + {
57 + get
58 + {
59 + if (_pNative == RootSystem.IntPtr.Zero)
60 + {
61 + throw new RootSystem.ObjectDisposedException("BodyIndexFrame");
62 + }
63 +
64 + RootSystem.IntPtr objectPointer = Windows_Kinect_BodyIndexFrame_get_BodyIndexFrameSource(_pNative);
65 + Helper.ExceptionHelper.CheckLastError();
66 + if (objectPointer == RootSystem.IntPtr.Zero)
67 + {
68 + return null;
69 + }
70 +
71 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.BodyIndexFrameSource>(objectPointer, n => new Windows.Kinect.BodyIndexFrameSource(n));
72 + }
73 + }
74 +
75 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
76 + private static extern RootSystem.IntPtr Windows_Kinect_BodyIndexFrame_get_FrameDescription(RootSystem.IntPtr pNative);
77 + public Windows.Kinect.FrameDescription FrameDescription
78 + {
79 + get
80 + {
81 + if (_pNative == RootSystem.IntPtr.Zero)
82 + {
83 + throw new RootSystem.ObjectDisposedException("BodyIndexFrame");
84 + }
85 +
86 + RootSystem.IntPtr objectPointer = Windows_Kinect_BodyIndexFrame_get_FrameDescription(_pNative);
87 + Helper.ExceptionHelper.CheckLastError();
88 + if (objectPointer == RootSystem.IntPtr.Zero)
89 + {
90 + return null;
91 + }
92 +
93 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.FrameDescription>(objectPointer, n => new Windows.Kinect.FrameDescription(n));
94 + }
95 + }
96 +
97 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
98 + private static extern long Windows_Kinect_BodyIndexFrame_get_RelativeTime(RootSystem.IntPtr pNative);
99 + public RootSystem.TimeSpan RelativeTime
100 + {
101 + get
102 + {
103 + if (_pNative == RootSystem.IntPtr.Zero)
104 + {
105 + throw new RootSystem.ObjectDisposedException("BodyIndexFrame");
106 + }
107 +
108 + return RootSystem.TimeSpan.FromMilliseconds(Windows_Kinect_BodyIndexFrame_get_RelativeTime(_pNative));
109 + }
110 + }
111 +
112 +
113 + // Public Methods
114 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
115 + private static extern void Windows_Kinect_BodyIndexFrame_CopyFrameDataToArray(RootSystem.IntPtr pNative, RootSystem.IntPtr frameData, int frameDataSize);
116 + public void CopyFrameDataToArray(byte[] frameData)
117 + {
118 + if (_pNative == RootSystem.IntPtr.Zero)
119 + {
120 + throw new RootSystem.ObjectDisposedException("BodyIndexFrame");
121 + }
122 +
123 + var frameDataSmartGCHandle = new Helper.SmartGCHandle(RootSystem.Runtime.InteropServices.GCHandle.Alloc(frameData, RootSystem.Runtime.InteropServices.GCHandleType.Pinned));
124 + var _frameData = frameDataSmartGCHandle.AddrOfPinnedObject();
125 + Windows_Kinect_BodyIndexFrame_CopyFrameDataToArray(_pNative, _frameData, frameData.Length);
126 + Helper.ExceptionHelper.CheckLastError();
127 + }
128 +
129 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
130 + private static extern void Windows_Kinect_BodyIndexFrame_Dispose(RootSystem.IntPtr pNative);
131 + public void Dispose()
132 + {
133 + if (_pNative == RootSystem.IntPtr.Zero)
134 + {
135 + return;
136 + }
137 +
138 + Dispose(true);
139 + RootSystem.GC.SuppressFinalize(this);
140 + }
141 +
142 + private void __EventCleanup()
143 + {
144 + }
145 + }
146 +
147 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.BodyIndexFrameArrivedEventArgs
8 + //
9 + public sealed partial class BodyIndexFrameArrivedEventArgs : RootSystem.EventArgs, Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal BodyIndexFrameArrivedEventArgs(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_BodyIndexFrameArrivedEventArgs_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~BodyIndexFrameArrivedEventArgs()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_BodyIndexFrameArrivedEventArgs_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_BodyIndexFrameArrivedEventArgs_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<BodyIndexFrameArrivedEventArgs>(_pNative);
41 + Windows_Kinect_BodyIndexFrameArrivedEventArgs_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern RootSystem.IntPtr Windows_Kinect_BodyIndexFrameArrivedEventArgs_get_FrameReference(RootSystem.IntPtr pNative);
50 + public Windows.Kinect.BodyIndexFrameReference FrameReference
51 + {
52 + get
53 + {
54 + if (_pNative == RootSystem.IntPtr.Zero)
55 + {
56 + throw new RootSystem.ObjectDisposedException("BodyIndexFrameArrivedEventArgs");
57 + }
58 +
59 + RootSystem.IntPtr objectPointer = Windows_Kinect_BodyIndexFrameArrivedEventArgs_get_FrameReference(_pNative);
60 + Helper.ExceptionHelper.CheckLastError();
61 + if (objectPointer == RootSystem.IntPtr.Zero)
62 + {
63 + return null;
64 + }
65 +
66 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.BodyIndexFrameReference>(objectPointer, n => new Windows.Kinect.BodyIndexFrameReference(n));
67 + }
68 + }
69 +
70 + private void __EventCleanup()
71 + {
72 + }
73 + }
74 +
75 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.BodyIndexFrameReader
8 + //
9 + public sealed partial class BodyIndexFrameReader : RootSystem.IDisposable, Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal BodyIndexFrameReader(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_BodyIndexFrameReader_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~BodyIndexFrameReader()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_BodyIndexFrameReader_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_BodyIndexFrameReader_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<BodyIndexFrameReader>(_pNative);
41 +
42 + if (disposing)
43 + {
44 + Windows_Kinect_BodyIndexFrameReader_Dispose(_pNative);
45 + }
46 + Windows_Kinect_BodyIndexFrameReader_ReleaseObject(ref _pNative);
47 +
48 + _pNative = RootSystem.IntPtr.Zero;
49 + }
50 +
51 +
52 + // Public Properties
53 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
54 + private static extern RootSystem.IntPtr Windows_Kinect_BodyIndexFrameReader_get_BodyIndexFrameSource(RootSystem.IntPtr pNative);
55 + public Windows.Kinect.BodyIndexFrameSource BodyIndexFrameSource
56 + {
57 + get
58 + {
59 + if (_pNative == RootSystem.IntPtr.Zero)
60 + {
61 + throw new RootSystem.ObjectDisposedException("BodyIndexFrameReader");
62 + }
63 +
64 + RootSystem.IntPtr objectPointer = Windows_Kinect_BodyIndexFrameReader_get_BodyIndexFrameSource(_pNative);
65 + Helper.ExceptionHelper.CheckLastError();
66 + if (objectPointer == RootSystem.IntPtr.Zero)
67 + {
68 + return null;
69 + }
70 +
71 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.BodyIndexFrameSource>(objectPointer, n => new Windows.Kinect.BodyIndexFrameSource(n));
72 + }
73 + }
74 +
75 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
76 + private static extern bool Windows_Kinect_BodyIndexFrameReader_get_IsPaused(RootSystem.IntPtr pNative);
77 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
78 + private static extern void Windows_Kinect_BodyIndexFrameReader_put_IsPaused(RootSystem.IntPtr pNative, bool isPaused);
79 + public bool IsPaused
80 + {
81 + get
82 + {
83 + if (_pNative == RootSystem.IntPtr.Zero)
84 + {
85 + throw new RootSystem.ObjectDisposedException("BodyIndexFrameReader");
86 + }
87 +
88 + return Windows_Kinect_BodyIndexFrameReader_get_IsPaused(_pNative);
89 + }
90 + set
91 + {
92 + if (_pNative == RootSystem.IntPtr.Zero)
93 + {
94 + throw new RootSystem.ObjectDisposedException("BodyIndexFrameReader");
95 + }
96 +
97 + Windows_Kinect_BodyIndexFrameReader_put_IsPaused(_pNative, value);
98 + Helper.ExceptionHelper.CheckLastError();
99 + }
100 + }
101 +
102 +
103 + // Events
104 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Kinect_BodyIndexFrameArrivedEventArgs_Delegate_Handle;
105 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
106 + private delegate void _Windows_Kinect_BodyIndexFrameArrivedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
107 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.BodyIndexFrameArrivedEventArgs>>> Windows_Kinect_BodyIndexFrameArrivedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.BodyIndexFrameArrivedEventArgs>>>();
108 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Kinect_BodyIndexFrameArrivedEventArgs_Delegate))]
109 + private static void Windows_Kinect_BodyIndexFrameArrivedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
110 + {
111 + List<RootSystem.EventHandler<Windows.Kinect.BodyIndexFrameArrivedEventArgs>> callbackList = null;
112 + Windows_Kinect_BodyIndexFrameArrivedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
113 + lock(callbackList)
114 + {
115 + var objThis = Helper.NativeObjectCache.GetObject<BodyIndexFrameReader>(pNative);
116 + var args = new Windows.Kinect.BodyIndexFrameArrivedEventArgs(result);
117 + foreach(var func in callbackList)
118 + {
119 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
120 + }
121 + }
122 + }
123 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
124 + private static extern void Windows_Kinect_BodyIndexFrameReader_add_FrameArrived(RootSystem.IntPtr pNative, _Windows_Kinect_BodyIndexFrameArrivedEventArgs_Delegate eventCallback, bool unsubscribe);
125 + public event RootSystem.EventHandler<Windows.Kinect.BodyIndexFrameArrivedEventArgs> FrameArrived
126 + {
127 + add
128 + {
129 + Helper.EventPump.EnsureInitialized();
130 +
131 + Windows_Kinect_BodyIndexFrameArrivedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
132 + var callbackList = Windows_Kinect_BodyIndexFrameArrivedEventArgs_Delegate_callbacks[_pNative];
133 + lock (callbackList)
134 + {
135 + callbackList.Add(value);
136 + if(callbackList.Count == 1)
137 + {
138 + var del = new _Windows_Kinect_BodyIndexFrameArrivedEventArgs_Delegate(Windows_Kinect_BodyIndexFrameArrivedEventArgs_Delegate_Handler);
139 + _Windows_Kinect_BodyIndexFrameArrivedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
140 + Windows_Kinect_BodyIndexFrameReader_add_FrameArrived(_pNative, del, false);
141 + }
142 + }
143 + }
144 + remove
145 + {
146 + if (_pNative == RootSystem.IntPtr.Zero)
147 + {
148 + return;
149 + }
150 +
151 + Windows_Kinect_BodyIndexFrameArrivedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
152 + var callbackList = Windows_Kinect_BodyIndexFrameArrivedEventArgs_Delegate_callbacks[_pNative];
153 + lock (callbackList)
154 + {
155 + callbackList.Remove(value);
156 + if(callbackList.Count == 0)
157 + {
158 + Windows_Kinect_BodyIndexFrameReader_add_FrameArrived(_pNative, Windows_Kinect_BodyIndexFrameArrivedEventArgs_Delegate_Handler, true);
159 + _Windows_Kinect_BodyIndexFrameArrivedEventArgs_Delegate_Handle.Free();
160 + }
161 + }
162 + }
163 + }
164 +
165 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Data_PropertyChangedEventArgs_Delegate_Handle;
166 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
167 + private delegate void _Windows_Data_PropertyChangedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
168 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>> Windows_Data_PropertyChangedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>>();
169 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Data_PropertyChangedEventArgs_Delegate))]
170 + private static void Windows_Data_PropertyChangedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
171 + {
172 + List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>> callbackList = null;
173 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
174 + lock(callbackList)
175 + {
176 + var objThis = Helper.NativeObjectCache.GetObject<BodyIndexFrameReader>(pNative);
177 + var args = new Windows.Data.PropertyChangedEventArgs(result);
178 + foreach(var func in callbackList)
179 + {
180 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
181 + }
182 + }
183 + }
184 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
185 + private static extern void Windows_Kinect_BodyIndexFrameReader_add_PropertyChanged(RootSystem.IntPtr pNative, _Windows_Data_PropertyChangedEventArgs_Delegate eventCallback, bool unsubscribe);
186 + public event RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs> PropertyChanged
187 + {
188 + add
189 + {
190 + Helper.EventPump.EnsureInitialized();
191 +
192 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
193 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
194 + lock (callbackList)
195 + {
196 + callbackList.Add(value);
197 + if(callbackList.Count == 1)
198 + {
199 + var del = new _Windows_Data_PropertyChangedEventArgs_Delegate(Windows_Data_PropertyChangedEventArgs_Delegate_Handler);
200 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
201 + Windows_Kinect_BodyIndexFrameReader_add_PropertyChanged(_pNative, del, false);
202 + }
203 + }
204 + }
205 + remove
206 + {
207 + if (_pNative == RootSystem.IntPtr.Zero)
208 + {
209 + return;
210 + }
211 +
212 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
213 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
214 + lock (callbackList)
215 + {
216 + callbackList.Remove(value);
217 + if(callbackList.Count == 0)
218 + {
219 + Windows_Kinect_BodyIndexFrameReader_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
220 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
221 + }
222 + }
223 + }
224 + }
225 +
226 +
227 + // Public Methods
228 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
229 + private static extern RootSystem.IntPtr Windows_Kinect_BodyIndexFrameReader_AcquireLatestFrame(RootSystem.IntPtr pNative);
230 + public Windows.Kinect.BodyIndexFrame AcquireLatestFrame()
231 + {
232 + if (_pNative == RootSystem.IntPtr.Zero)
233 + {
234 + throw new RootSystem.ObjectDisposedException("BodyIndexFrameReader");
235 + }
236 +
237 + RootSystem.IntPtr objectPointer = Windows_Kinect_BodyIndexFrameReader_AcquireLatestFrame(_pNative);
238 + Helper.ExceptionHelper.CheckLastError();
239 + if (objectPointer == RootSystem.IntPtr.Zero)
240 + {
241 + return null;
242 + }
243 +
244 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.BodyIndexFrame>(objectPointer, n => new Windows.Kinect.BodyIndexFrame(n));
245 + }
246 +
247 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
248 + private static extern void Windows_Kinect_BodyIndexFrameReader_Dispose(RootSystem.IntPtr pNative);
249 + public void Dispose()
250 + {
251 + if (_pNative == RootSystem.IntPtr.Zero)
252 + {
253 + return;
254 + }
255 +
256 + Dispose(true);
257 + RootSystem.GC.SuppressFinalize(this);
258 + }
259 +
260 + private void __EventCleanup()
261 + {
262 + {
263 + Windows_Kinect_BodyIndexFrameArrivedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
264 + var callbackList = Windows_Kinect_BodyIndexFrameArrivedEventArgs_Delegate_callbacks[_pNative];
265 + lock (callbackList)
266 + {
267 + if (callbackList.Count > 0)
268 + {
269 + callbackList.Clear();
270 + if (_pNative != RootSystem.IntPtr.Zero)
271 + {
272 + Windows_Kinect_BodyIndexFrameReader_add_FrameArrived(_pNative, Windows_Kinect_BodyIndexFrameArrivedEventArgs_Delegate_Handler, true);
273 + }
274 + _Windows_Kinect_BodyIndexFrameArrivedEventArgs_Delegate_Handle.Free();
275 + }
276 + }
277 + }
278 + {
279 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
280 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
281 + lock (callbackList)
282 + {
283 + if (callbackList.Count > 0)
284 + {
285 + callbackList.Clear();
286 + if (_pNative != RootSystem.IntPtr.Zero)
287 + {
288 + Windows_Kinect_BodyIndexFrameReader_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
289 + }
290 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
291 + }
292 + }
293 + }
294 + }
295 + }
296 +
297 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.BodyIndexFrameReference
8 + //
9 + public sealed partial class BodyIndexFrameReference : Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal BodyIndexFrameReference(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_BodyIndexFrameReference_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~BodyIndexFrameReference()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_BodyIndexFrameReference_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_BodyIndexFrameReference_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<BodyIndexFrameReference>(_pNative);
41 + Windows_Kinect_BodyIndexFrameReference_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern long Windows_Kinect_BodyIndexFrameReference_get_RelativeTime(RootSystem.IntPtr pNative);
50 + public RootSystem.TimeSpan RelativeTime
51 + {
52 + get
53 + {
54 + if (_pNative == RootSystem.IntPtr.Zero)
55 + {
56 + throw new RootSystem.ObjectDisposedException("BodyIndexFrameReference");
57 + }
58 +
59 + return RootSystem.TimeSpan.FromMilliseconds(Windows_Kinect_BodyIndexFrameReference_get_RelativeTime(_pNative));
60 + }
61 + }
62 +
63 +
64 + // Public Methods
65 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
66 + private static extern RootSystem.IntPtr Windows_Kinect_BodyIndexFrameReference_AcquireFrame(RootSystem.IntPtr pNative);
67 + public Windows.Kinect.BodyIndexFrame AcquireFrame()
68 + {
69 + if (_pNative == RootSystem.IntPtr.Zero)
70 + {
71 + throw new RootSystem.ObjectDisposedException("BodyIndexFrameReference");
72 + }
73 +
74 + RootSystem.IntPtr objectPointer = Windows_Kinect_BodyIndexFrameReference_AcquireFrame(_pNative);
75 + Helper.ExceptionHelper.CheckLastError();
76 + if (objectPointer == RootSystem.IntPtr.Zero)
77 + {
78 + return null;
79 + }
80 +
81 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.BodyIndexFrame>(objectPointer, n => new Windows.Kinect.BodyIndexFrame(n));
82 + }
83 +
84 + private void __EventCleanup()
85 + {
86 + }
87 + }
88 +
89 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.BodyIndexFrameSource
8 + //
9 + public sealed partial class BodyIndexFrameSource : Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal BodyIndexFrameSource(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_BodyIndexFrameSource_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~BodyIndexFrameSource()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_BodyIndexFrameSource_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_BodyIndexFrameSource_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<BodyIndexFrameSource>(_pNative);
41 + Windows_Kinect_BodyIndexFrameSource_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern RootSystem.IntPtr Windows_Kinect_BodyIndexFrameSource_get_FrameDescription(RootSystem.IntPtr pNative);
50 + public Windows.Kinect.FrameDescription FrameDescription
51 + {
52 + get
53 + {
54 + if (_pNative == RootSystem.IntPtr.Zero)
55 + {
56 + throw new RootSystem.ObjectDisposedException("BodyIndexFrameSource");
57 + }
58 +
59 + RootSystem.IntPtr objectPointer = Windows_Kinect_BodyIndexFrameSource_get_FrameDescription(_pNative);
60 + Helper.ExceptionHelper.CheckLastError();
61 + if (objectPointer == RootSystem.IntPtr.Zero)
62 + {
63 + return null;
64 + }
65 +
66 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.FrameDescription>(objectPointer, n => new Windows.Kinect.FrameDescription(n));
67 + }
68 + }
69 +
70 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
71 + private static extern bool Windows_Kinect_BodyIndexFrameSource_get_IsActive(RootSystem.IntPtr pNative);
72 + public bool IsActive
73 + {
74 + get
75 + {
76 + if (_pNative == RootSystem.IntPtr.Zero)
77 + {
78 + throw new RootSystem.ObjectDisposedException("BodyIndexFrameSource");
79 + }
80 +
81 + return Windows_Kinect_BodyIndexFrameSource_get_IsActive(_pNative);
82 + }
83 + }
84 +
85 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
86 + private static extern RootSystem.IntPtr Windows_Kinect_BodyIndexFrameSource_get_KinectSensor(RootSystem.IntPtr pNative);
87 + public Windows.Kinect.KinectSensor KinectSensor
88 + {
89 + get
90 + {
91 + if (_pNative == RootSystem.IntPtr.Zero)
92 + {
93 + throw new RootSystem.ObjectDisposedException("BodyIndexFrameSource");
94 + }
95 +
96 + RootSystem.IntPtr objectPointer = Windows_Kinect_BodyIndexFrameSource_get_KinectSensor(_pNative);
97 + Helper.ExceptionHelper.CheckLastError();
98 + if (objectPointer == RootSystem.IntPtr.Zero)
99 + {
100 + return null;
101 + }
102 +
103 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.KinectSensor>(objectPointer, n => new Windows.Kinect.KinectSensor(n));
104 + }
105 + }
106 +
107 +
108 + // Events
109 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Kinect_FrameCapturedEventArgs_Delegate_Handle;
110 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
111 + private delegate void _Windows_Kinect_FrameCapturedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
112 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.FrameCapturedEventArgs>>> Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.FrameCapturedEventArgs>>>();
113 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Kinect_FrameCapturedEventArgs_Delegate))]
114 + private static void Windows_Kinect_FrameCapturedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
115 + {
116 + List<RootSystem.EventHandler<Windows.Kinect.FrameCapturedEventArgs>> callbackList = null;
117 + Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
118 + lock(callbackList)
119 + {
120 + var objThis = Helper.NativeObjectCache.GetObject<BodyIndexFrameSource>(pNative);
121 + var args = new Windows.Kinect.FrameCapturedEventArgs(result);
122 + foreach(var func in callbackList)
123 + {
124 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
125 + }
126 + }
127 + }
128 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
129 + private static extern void Windows_Kinect_BodyIndexFrameSource_add_FrameCaptured(RootSystem.IntPtr pNative, _Windows_Kinect_FrameCapturedEventArgs_Delegate eventCallback, bool unsubscribe);
130 + public event RootSystem.EventHandler<Windows.Kinect.FrameCapturedEventArgs> FrameCaptured
131 + {
132 + add
133 + {
134 + Helper.EventPump.EnsureInitialized();
135 +
136 + Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
137 + var callbackList = Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks[_pNative];
138 + lock (callbackList)
139 + {
140 + callbackList.Add(value);
141 + if(callbackList.Count == 1)
142 + {
143 + var del = new _Windows_Kinect_FrameCapturedEventArgs_Delegate(Windows_Kinect_FrameCapturedEventArgs_Delegate_Handler);
144 + _Windows_Kinect_FrameCapturedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
145 + Windows_Kinect_BodyIndexFrameSource_add_FrameCaptured(_pNative, del, false);
146 + }
147 + }
148 + }
149 + remove
150 + {
151 + if (_pNative == RootSystem.IntPtr.Zero)
152 + {
153 + return;
154 + }
155 +
156 + Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
157 + var callbackList = Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks[_pNative];
158 + lock (callbackList)
159 + {
160 + callbackList.Remove(value);
161 + if(callbackList.Count == 0)
162 + {
163 + Windows_Kinect_BodyIndexFrameSource_add_FrameCaptured(_pNative, Windows_Kinect_FrameCapturedEventArgs_Delegate_Handler, true);
164 + _Windows_Kinect_FrameCapturedEventArgs_Delegate_Handle.Free();
165 + }
166 + }
167 + }
168 + }
169 +
170 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Data_PropertyChangedEventArgs_Delegate_Handle;
171 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
172 + private delegate void _Windows_Data_PropertyChangedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
173 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>> Windows_Data_PropertyChangedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>>();
174 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Data_PropertyChangedEventArgs_Delegate))]
175 + private static void Windows_Data_PropertyChangedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
176 + {
177 + List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>> callbackList = null;
178 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
179 + lock(callbackList)
180 + {
181 + var objThis = Helper.NativeObjectCache.GetObject<BodyIndexFrameSource>(pNative);
182 + var args = new Windows.Data.PropertyChangedEventArgs(result);
183 + foreach(var func in callbackList)
184 + {
185 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
186 + }
187 + }
188 + }
189 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
190 + private static extern void Windows_Kinect_BodyIndexFrameSource_add_PropertyChanged(RootSystem.IntPtr pNative, _Windows_Data_PropertyChangedEventArgs_Delegate eventCallback, bool unsubscribe);
191 + public event RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs> PropertyChanged
192 + {
193 + add
194 + {
195 + Helper.EventPump.EnsureInitialized();
196 +
197 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
198 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
199 + lock (callbackList)
200 + {
201 + callbackList.Add(value);
202 + if(callbackList.Count == 1)
203 + {
204 + var del = new _Windows_Data_PropertyChangedEventArgs_Delegate(Windows_Data_PropertyChangedEventArgs_Delegate_Handler);
205 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
206 + Windows_Kinect_BodyIndexFrameSource_add_PropertyChanged(_pNative, del, false);
207 + }
208 + }
209 + }
210 + remove
211 + {
212 + if (_pNative == RootSystem.IntPtr.Zero)
213 + {
214 + return;
215 + }
216 +
217 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
218 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
219 + lock (callbackList)
220 + {
221 + callbackList.Remove(value);
222 + if(callbackList.Count == 0)
223 + {
224 + Windows_Kinect_BodyIndexFrameSource_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
225 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
226 + }
227 + }
228 + }
229 + }
230 +
231 +
232 + // Public Methods
233 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
234 + private static extern RootSystem.IntPtr Windows_Kinect_BodyIndexFrameSource_OpenReader(RootSystem.IntPtr pNative);
235 + public Windows.Kinect.BodyIndexFrameReader OpenReader()
236 + {
237 + if (_pNative == RootSystem.IntPtr.Zero)
238 + {
239 + throw new RootSystem.ObjectDisposedException("BodyIndexFrameSource");
240 + }
241 +
242 + RootSystem.IntPtr objectPointer = Windows_Kinect_BodyIndexFrameSource_OpenReader(_pNative);
243 + Helper.ExceptionHelper.CheckLastError();
244 + if (objectPointer == RootSystem.IntPtr.Zero)
245 + {
246 + return null;
247 + }
248 +
249 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.BodyIndexFrameReader>(objectPointer, n => new Windows.Kinect.BodyIndexFrameReader(n));
250 + }
251 +
252 + private void __EventCleanup()
253 + {
254 + {
255 + Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
256 + var callbackList = Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks[_pNative];
257 + lock (callbackList)
258 + {
259 + if (callbackList.Count > 0)
260 + {
261 + callbackList.Clear();
262 + if (_pNative != RootSystem.IntPtr.Zero)
263 + {
264 + Windows_Kinect_BodyIndexFrameSource_add_FrameCaptured(_pNative, Windows_Kinect_FrameCapturedEventArgs_Delegate_Handler, true);
265 + }
266 + _Windows_Kinect_FrameCapturedEventArgs_Delegate_Handle.Free();
267 + }
268 + }
269 + }
270 + {
271 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
272 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
273 + lock (callbackList)
274 + {
275 + if (callbackList.Count > 0)
276 + {
277 + callbackList.Clear();
278 + if (_pNative != RootSystem.IntPtr.Zero)
279 + {
280 + Windows_Kinect_BodyIndexFrameSource_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
281 + }
282 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
283 + }
284 + }
285 + }
286 + }
287 + }
288 +
289 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.CameraSpacePoint
8 + //
9 + [RootSystem.Runtime.InteropServices.StructLayout(RootSystem.Runtime.InteropServices.LayoutKind.Sequential)]
10 + public struct CameraSpacePoint
11 + {
12 + public float X { get; set; }
13 + public float Y { get; set; }
14 + public float Z { get; set; }
15 +
16 + public override int GetHashCode()
17 + {
18 + return X.GetHashCode() ^ Y.GetHashCode() ^ Z.GetHashCode();
19 + }
20 +
21 + public override bool Equals(object obj)
22 + {
23 + if (!(obj is CameraSpacePoint))
24 + {
25 + return false;
26 + }
27 +
28 + return this.Equals((CameraSpacePoint)obj);
29 + }
30 +
31 + public bool Equals(CameraSpacePoint obj)
32 + {
33 + return X.Equals(obj.X) && Y.Equals(obj.Y) && Z.Equals(obj.Z);
34 + }
35 +
36 + public static bool operator ==(CameraSpacePoint a, CameraSpacePoint b)
37 + {
38 + return a.Equals(b);
39 + }
40 +
41 + public static bool operator !=(CameraSpacePoint a, CameraSpacePoint b)
42 + {
43 + return !(a.Equals(b));
44 + }
45 + }
46 +
47 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.ColorCameraSettings
8 + //
9 + public sealed partial class ColorCameraSettings : Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal ColorCameraSettings(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_ColorCameraSettings_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~ColorCameraSettings()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_ColorCameraSettings_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_ColorCameraSettings_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<ColorCameraSettings>(_pNative);
41 + Windows_Kinect_ColorCameraSettings_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern long Windows_Kinect_ColorCameraSettings_get_ExposureTime(RootSystem.IntPtr pNative);
50 + public RootSystem.TimeSpan ExposureTime
51 + {
52 + get
53 + {
54 + if (_pNative == RootSystem.IntPtr.Zero)
55 + {
56 + throw new RootSystem.ObjectDisposedException("ColorCameraSettings");
57 + }
58 +
59 + return RootSystem.TimeSpan.FromMilliseconds(Windows_Kinect_ColorCameraSettings_get_ExposureTime(_pNative));
60 + }
61 + }
62 +
63 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
64 + private static extern long Windows_Kinect_ColorCameraSettings_get_FrameInterval(RootSystem.IntPtr pNative);
65 + public RootSystem.TimeSpan FrameInterval
66 + {
67 + get
68 + {
69 + if (_pNative == RootSystem.IntPtr.Zero)
70 + {
71 + throw new RootSystem.ObjectDisposedException("ColorCameraSettings");
72 + }
73 +
74 + return RootSystem.TimeSpan.FromMilliseconds(Windows_Kinect_ColorCameraSettings_get_FrameInterval(_pNative));
75 + }
76 + }
77 +
78 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
79 + private static extern float Windows_Kinect_ColorCameraSettings_get_Gain(RootSystem.IntPtr pNative);
80 + public float Gain
81 + {
82 + get
83 + {
84 + if (_pNative == RootSystem.IntPtr.Zero)
85 + {
86 + throw new RootSystem.ObjectDisposedException("ColorCameraSettings");
87 + }
88 +
89 + return Windows_Kinect_ColorCameraSettings_get_Gain(_pNative);
90 + }
91 + }
92 +
93 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
94 + private static extern float Windows_Kinect_ColorCameraSettings_get_Gamma(RootSystem.IntPtr pNative);
95 + public float Gamma
96 + {
97 + get
98 + {
99 + if (_pNative == RootSystem.IntPtr.Zero)
100 + {
101 + throw new RootSystem.ObjectDisposedException("ColorCameraSettings");
102 + }
103 +
104 + return Windows_Kinect_ColorCameraSettings_get_Gamma(_pNative);
105 + }
106 + }
107 +
108 + private void __EventCleanup()
109 + {
110 + }
111 + }
112 +
113 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.ColorFrame
8 + //
9 + public sealed partial class ColorFrame : RootSystem.IDisposable, Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal ColorFrame(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_ColorFrame_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~ColorFrame()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_ColorFrame_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_ColorFrame_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<ColorFrame>(_pNative);
41 +
42 + if (disposing)
43 + {
44 + Windows_Kinect_ColorFrame_Dispose(_pNative);
45 + }
46 + Windows_Kinect_ColorFrame_ReleaseObject(ref _pNative);
47 +
48 + _pNative = RootSystem.IntPtr.Zero;
49 + }
50 +
51 +
52 + // Public Properties
53 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
54 + private static extern RootSystem.IntPtr Windows_Kinect_ColorFrame_get_ColorCameraSettings(RootSystem.IntPtr pNative);
55 + public Windows.Kinect.ColorCameraSettings ColorCameraSettings
56 + {
57 + get
58 + {
59 + if (_pNative == RootSystem.IntPtr.Zero)
60 + {
61 + throw new RootSystem.ObjectDisposedException("ColorFrame");
62 + }
63 +
64 + RootSystem.IntPtr objectPointer = Windows_Kinect_ColorFrame_get_ColorCameraSettings(_pNative);
65 + Helper.ExceptionHelper.CheckLastError();
66 + if (objectPointer == RootSystem.IntPtr.Zero)
67 + {
68 + return null;
69 + }
70 +
71 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.ColorCameraSettings>(objectPointer, n => new Windows.Kinect.ColorCameraSettings(n));
72 + }
73 + }
74 +
75 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
76 + private static extern RootSystem.IntPtr Windows_Kinect_ColorFrame_get_ColorFrameSource(RootSystem.IntPtr pNative);
77 + public Windows.Kinect.ColorFrameSource ColorFrameSource
78 + {
79 + get
80 + {
81 + if (_pNative == RootSystem.IntPtr.Zero)
82 + {
83 + throw new RootSystem.ObjectDisposedException("ColorFrame");
84 + }
85 +
86 + RootSystem.IntPtr objectPointer = Windows_Kinect_ColorFrame_get_ColorFrameSource(_pNative);
87 + Helper.ExceptionHelper.CheckLastError();
88 + if (objectPointer == RootSystem.IntPtr.Zero)
89 + {
90 + return null;
91 + }
92 +
93 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.ColorFrameSource>(objectPointer, n => new Windows.Kinect.ColorFrameSource(n));
94 + }
95 + }
96 +
97 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
98 + private static extern RootSystem.IntPtr Windows_Kinect_ColorFrame_get_FrameDescription(RootSystem.IntPtr pNative);
99 + public Windows.Kinect.FrameDescription FrameDescription
100 + {
101 + get
102 + {
103 + if (_pNative == RootSystem.IntPtr.Zero)
104 + {
105 + throw new RootSystem.ObjectDisposedException("ColorFrame");
106 + }
107 +
108 + RootSystem.IntPtr objectPointer = Windows_Kinect_ColorFrame_get_FrameDescription(_pNative);
109 + Helper.ExceptionHelper.CheckLastError();
110 + if (objectPointer == RootSystem.IntPtr.Zero)
111 + {
112 + return null;
113 + }
114 +
115 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.FrameDescription>(objectPointer, n => new Windows.Kinect.FrameDescription(n));
116 + }
117 + }
118 +
119 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
120 + private static extern Windows.Kinect.ColorImageFormat Windows_Kinect_ColorFrame_get_RawColorImageFormat(RootSystem.IntPtr pNative);
121 + public Windows.Kinect.ColorImageFormat RawColorImageFormat
122 + {
123 + get
124 + {
125 + if (_pNative == RootSystem.IntPtr.Zero)
126 + {
127 + throw new RootSystem.ObjectDisposedException("ColorFrame");
128 + }
129 +
130 + return Windows_Kinect_ColorFrame_get_RawColorImageFormat(_pNative);
131 + }
132 + }
133 +
134 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
135 + private static extern long Windows_Kinect_ColorFrame_get_RelativeTime(RootSystem.IntPtr pNative);
136 + public RootSystem.TimeSpan RelativeTime
137 + {
138 + get
139 + {
140 + if (_pNative == RootSystem.IntPtr.Zero)
141 + {
142 + throw new RootSystem.ObjectDisposedException("ColorFrame");
143 + }
144 +
145 + return RootSystem.TimeSpan.FromMilliseconds(Windows_Kinect_ColorFrame_get_RelativeTime(_pNative));
146 + }
147 + }
148 +
149 +
150 + // Public Methods
151 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
152 + private static extern void Windows_Kinect_ColorFrame_CopyRawFrameDataToArray(RootSystem.IntPtr pNative, RootSystem.IntPtr frameData, int frameDataSize);
153 + public void CopyRawFrameDataToArray(byte[] frameData)
154 + {
155 + if (_pNative == RootSystem.IntPtr.Zero)
156 + {
157 + throw new RootSystem.ObjectDisposedException("ColorFrame");
158 + }
159 +
160 + var frameDataSmartGCHandle = new Helper.SmartGCHandle(RootSystem.Runtime.InteropServices.GCHandle.Alloc(frameData, RootSystem.Runtime.InteropServices.GCHandleType.Pinned));
161 + var _frameData = frameDataSmartGCHandle.AddrOfPinnedObject();
162 + Windows_Kinect_ColorFrame_CopyRawFrameDataToArray(_pNative, _frameData, frameData.Length);
163 + Helper.ExceptionHelper.CheckLastError();
164 + }
165 +
166 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
167 + private static extern void Windows_Kinect_ColorFrame_CopyConvertedFrameDataToArray(RootSystem.IntPtr pNative, RootSystem.IntPtr frameData, int frameDataSize, Windows.Kinect.ColorImageFormat colorFormat);
168 + public void CopyConvertedFrameDataToArray(byte[] frameData, Windows.Kinect.ColorImageFormat colorFormat)
169 + {
170 + if (_pNative == RootSystem.IntPtr.Zero)
171 + {
172 + throw new RootSystem.ObjectDisposedException("ColorFrame");
173 + }
174 +
175 + var frameDataSmartGCHandle = new Helper.SmartGCHandle(RootSystem.Runtime.InteropServices.GCHandle.Alloc(frameData, RootSystem.Runtime.InteropServices.GCHandleType.Pinned));
176 + var _frameData = frameDataSmartGCHandle.AddrOfPinnedObject();
177 + Windows_Kinect_ColorFrame_CopyConvertedFrameDataToArray(_pNative, _frameData, frameData.Length, colorFormat);
178 + Helper.ExceptionHelper.CheckLastError();
179 + }
180 +
181 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
182 + private static extern RootSystem.IntPtr Windows_Kinect_ColorFrame_CreateFrameDescription(RootSystem.IntPtr pNative, Windows.Kinect.ColorImageFormat format);
183 + public Windows.Kinect.FrameDescription CreateFrameDescription(Windows.Kinect.ColorImageFormat format)
184 + {
185 + if (_pNative == RootSystem.IntPtr.Zero)
186 + {
187 + throw new RootSystem.ObjectDisposedException("ColorFrame");
188 + }
189 +
190 + RootSystem.IntPtr objectPointer = Windows_Kinect_ColorFrame_CreateFrameDescription(_pNative, format);
191 + Helper.ExceptionHelper.CheckLastError();
192 + if (objectPointer == RootSystem.IntPtr.Zero)
193 + {
194 + return null;
195 + }
196 +
197 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.FrameDescription>(objectPointer, n => new Windows.Kinect.FrameDescription(n));
198 + }
199 +
200 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
201 + private static extern void Windows_Kinect_ColorFrame_Dispose(RootSystem.IntPtr pNative);
202 + public void Dispose()
203 + {
204 + if (_pNative == RootSystem.IntPtr.Zero)
205 + {
206 + return;
207 + }
208 +
209 + Dispose(true);
210 + RootSystem.GC.SuppressFinalize(this);
211 + }
212 +
213 + private void __EventCleanup()
214 + {
215 + }
216 + }
217 +
218 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.ColorFrameArrivedEventArgs
8 + //
9 + public sealed partial class ColorFrameArrivedEventArgs : RootSystem.EventArgs, Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal ColorFrameArrivedEventArgs(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_ColorFrameArrivedEventArgs_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~ColorFrameArrivedEventArgs()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_ColorFrameArrivedEventArgs_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_ColorFrameArrivedEventArgs_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<ColorFrameArrivedEventArgs>(_pNative);
41 + Windows_Kinect_ColorFrameArrivedEventArgs_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern RootSystem.IntPtr Windows_Kinect_ColorFrameArrivedEventArgs_get_FrameReference(RootSystem.IntPtr pNative);
50 + public Windows.Kinect.ColorFrameReference FrameReference
51 + {
52 + get
53 + {
54 + if (_pNative == RootSystem.IntPtr.Zero)
55 + {
56 + throw new RootSystem.ObjectDisposedException("ColorFrameArrivedEventArgs");
57 + }
58 +
59 + RootSystem.IntPtr objectPointer = Windows_Kinect_ColorFrameArrivedEventArgs_get_FrameReference(_pNative);
60 + Helper.ExceptionHelper.CheckLastError();
61 + if (objectPointer == RootSystem.IntPtr.Zero)
62 + {
63 + return null;
64 + }
65 +
66 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.ColorFrameReference>(objectPointer, n => new Windows.Kinect.ColorFrameReference(n));
67 + }
68 + }
69 +
70 + private void __EventCleanup()
71 + {
72 + }
73 + }
74 +
75 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.ColorFrameReader
8 + //
9 + public sealed partial class ColorFrameReader : RootSystem.IDisposable, Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal ColorFrameReader(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_ColorFrameReader_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~ColorFrameReader()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_ColorFrameReader_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_ColorFrameReader_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<ColorFrameReader>(_pNative);
41 +
42 + if (disposing)
43 + {
44 + Windows_Kinect_ColorFrameReader_Dispose(_pNative);
45 + }
46 + Windows_Kinect_ColorFrameReader_ReleaseObject(ref _pNative);
47 +
48 + _pNative = RootSystem.IntPtr.Zero;
49 + }
50 +
51 +
52 + // Public Properties
53 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
54 + private static extern RootSystem.IntPtr Windows_Kinect_ColorFrameReader_get_ColorFrameSource(RootSystem.IntPtr pNative);
55 + public Windows.Kinect.ColorFrameSource ColorFrameSource
56 + {
57 + get
58 + {
59 + if (_pNative == RootSystem.IntPtr.Zero)
60 + {
61 + throw new RootSystem.ObjectDisposedException("ColorFrameReader");
62 + }
63 +
64 + RootSystem.IntPtr objectPointer = Windows_Kinect_ColorFrameReader_get_ColorFrameSource(_pNative);
65 + Helper.ExceptionHelper.CheckLastError();
66 + if (objectPointer == RootSystem.IntPtr.Zero)
67 + {
68 + return null;
69 + }
70 +
71 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.ColorFrameSource>(objectPointer, n => new Windows.Kinect.ColorFrameSource(n));
72 + }
73 + }
74 +
75 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
76 + private static extern bool Windows_Kinect_ColorFrameReader_get_IsPaused(RootSystem.IntPtr pNative);
77 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
78 + private static extern void Windows_Kinect_ColorFrameReader_put_IsPaused(RootSystem.IntPtr pNative, bool isPaused);
79 + public bool IsPaused
80 + {
81 + get
82 + {
83 + if (_pNative == RootSystem.IntPtr.Zero)
84 + {
85 + throw new RootSystem.ObjectDisposedException("ColorFrameReader");
86 + }
87 +
88 + return Windows_Kinect_ColorFrameReader_get_IsPaused(_pNative);
89 + }
90 + set
91 + {
92 + if (_pNative == RootSystem.IntPtr.Zero)
93 + {
94 + throw new RootSystem.ObjectDisposedException("ColorFrameReader");
95 + }
96 +
97 + Windows_Kinect_ColorFrameReader_put_IsPaused(_pNative, value);
98 + Helper.ExceptionHelper.CheckLastError();
99 + }
100 + }
101 +
102 +
103 + // Events
104 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Kinect_ColorFrameArrivedEventArgs_Delegate_Handle;
105 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
106 + private delegate void _Windows_Kinect_ColorFrameArrivedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
107 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.ColorFrameArrivedEventArgs>>> Windows_Kinect_ColorFrameArrivedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.ColorFrameArrivedEventArgs>>>();
108 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Kinect_ColorFrameArrivedEventArgs_Delegate))]
109 + private static void Windows_Kinect_ColorFrameArrivedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
110 + {
111 + List<RootSystem.EventHandler<Windows.Kinect.ColorFrameArrivedEventArgs>> callbackList = null;
112 + Windows_Kinect_ColorFrameArrivedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
113 + lock(callbackList)
114 + {
115 + var objThis = Helper.NativeObjectCache.GetObject<ColorFrameReader>(pNative);
116 + var args = new Windows.Kinect.ColorFrameArrivedEventArgs(result);
117 + foreach(var func in callbackList)
118 + {
119 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
120 + }
121 + }
122 + }
123 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
124 + private static extern void Windows_Kinect_ColorFrameReader_add_FrameArrived(RootSystem.IntPtr pNative, _Windows_Kinect_ColorFrameArrivedEventArgs_Delegate eventCallback, bool unsubscribe);
125 + public event RootSystem.EventHandler<Windows.Kinect.ColorFrameArrivedEventArgs> FrameArrived
126 + {
127 + add
128 + {
129 + Helper.EventPump.EnsureInitialized();
130 +
131 + Windows_Kinect_ColorFrameArrivedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
132 + var callbackList = Windows_Kinect_ColorFrameArrivedEventArgs_Delegate_callbacks[_pNative];
133 + lock (callbackList)
134 + {
135 + callbackList.Add(value);
136 + if(callbackList.Count == 1)
137 + {
138 + var del = new _Windows_Kinect_ColorFrameArrivedEventArgs_Delegate(Windows_Kinect_ColorFrameArrivedEventArgs_Delegate_Handler);
139 + _Windows_Kinect_ColorFrameArrivedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
140 + Windows_Kinect_ColorFrameReader_add_FrameArrived(_pNative, del, false);
141 + }
142 + }
143 + }
144 + remove
145 + {
146 + if (_pNative == RootSystem.IntPtr.Zero)
147 + {
148 + return;
149 + }
150 +
151 + Windows_Kinect_ColorFrameArrivedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
152 + var callbackList = Windows_Kinect_ColorFrameArrivedEventArgs_Delegate_callbacks[_pNative];
153 + lock (callbackList)
154 + {
155 + callbackList.Remove(value);
156 + if(callbackList.Count == 0)
157 + {
158 + Windows_Kinect_ColorFrameReader_add_FrameArrived(_pNative, Windows_Kinect_ColorFrameArrivedEventArgs_Delegate_Handler, true);
159 + _Windows_Kinect_ColorFrameArrivedEventArgs_Delegate_Handle.Free();
160 + }
161 + }
162 + }
163 + }
164 +
165 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Data_PropertyChangedEventArgs_Delegate_Handle;
166 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
167 + private delegate void _Windows_Data_PropertyChangedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
168 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>> Windows_Data_PropertyChangedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>>();
169 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Data_PropertyChangedEventArgs_Delegate))]
170 + private static void Windows_Data_PropertyChangedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
171 + {
172 + List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>> callbackList = null;
173 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
174 + lock(callbackList)
175 + {
176 + var objThis = Helper.NativeObjectCache.GetObject<ColorFrameReader>(pNative);
177 + var args = new Windows.Data.PropertyChangedEventArgs(result);
178 + foreach(var func in callbackList)
179 + {
180 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
181 + }
182 + }
183 + }
184 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
185 + private static extern void Windows_Kinect_ColorFrameReader_add_PropertyChanged(RootSystem.IntPtr pNative, _Windows_Data_PropertyChangedEventArgs_Delegate eventCallback, bool unsubscribe);
186 + public event RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs> PropertyChanged
187 + {
188 + add
189 + {
190 + Helper.EventPump.EnsureInitialized();
191 +
192 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
193 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
194 + lock (callbackList)
195 + {
196 + callbackList.Add(value);
197 + if(callbackList.Count == 1)
198 + {
199 + var del = new _Windows_Data_PropertyChangedEventArgs_Delegate(Windows_Data_PropertyChangedEventArgs_Delegate_Handler);
200 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
201 + Windows_Kinect_ColorFrameReader_add_PropertyChanged(_pNative, del, false);
202 + }
203 + }
204 + }
205 + remove
206 + {
207 + if (_pNative == RootSystem.IntPtr.Zero)
208 + {
209 + return;
210 + }
211 +
212 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
213 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
214 + lock (callbackList)
215 + {
216 + callbackList.Remove(value);
217 + if(callbackList.Count == 0)
218 + {
219 + Windows_Kinect_ColorFrameReader_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
220 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
221 + }
222 + }
223 + }
224 + }
225 +
226 +
227 + // Public Methods
228 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
229 + private static extern RootSystem.IntPtr Windows_Kinect_ColorFrameReader_AcquireLatestFrame(RootSystem.IntPtr pNative);
230 + public Windows.Kinect.ColorFrame AcquireLatestFrame()
231 + {
232 + if (_pNative == RootSystem.IntPtr.Zero)
233 + {
234 + throw new RootSystem.ObjectDisposedException("ColorFrameReader");
235 + }
236 +
237 + RootSystem.IntPtr objectPointer = Windows_Kinect_ColorFrameReader_AcquireLatestFrame(_pNative);
238 + Helper.ExceptionHelper.CheckLastError();
239 + if (objectPointer == RootSystem.IntPtr.Zero)
240 + {
241 + return null;
242 + }
243 +
244 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.ColorFrame>(objectPointer, n => new Windows.Kinect.ColorFrame(n));
245 + }
246 +
247 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
248 + private static extern void Windows_Kinect_ColorFrameReader_Dispose(RootSystem.IntPtr pNative);
249 + public void Dispose()
250 + {
251 + if (_pNative == RootSystem.IntPtr.Zero)
252 + {
253 + return;
254 + }
255 +
256 + Dispose(true);
257 + RootSystem.GC.SuppressFinalize(this);
258 + }
259 +
260 + private void __EventCleanup()
261 + {
262 + {
263 + Windows_Kinect_ColorFrameArrivedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
264 + var callbackList = Windows_Kinect_ColorFrameArrivedEventArgs_Delegate_callbacks[_pNative];
265 + lock (callbackList)
266 + {
267 + if (callbackList.Count > 0)
268 + {
269 + callbackList.Clear();
270 + if (_pNative != RootSystem.IntPtr.Zero)
271 + {
272 + Windows_Kinect_ColorFrameReader_add_FrameArrived(_pNative, Windows_Kinect_ColorFrameArrivedEventArgs_Delegate_Handler, true);
273 + }
274 + _Windows_Kinect_ColorFrameArrivedEventArgs_Delegate_Handle.Free();
275 + }
276 + }
277 + }
278 + {
279 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
280 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
281 + lock (callbackList)
282 + {
283 + if (callbackList.Count > 0)
284 + {
285 + callbackList.Clear();
286 + if (_pNative != RootSystem.IntPtr.Zero)
287 + {
288 + Windows_Kinect_ColorFrameReader_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
289 + }
290 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
291 + }
292 + }
293 + }
294 + }
295 + }
296 +
297 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.ColorFrameReference
8 + //
9 + public sealed partial class ColorFrameReference : Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal ColorFrameReference(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_ColorFrameReference_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~ColorFrameReference()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_ColorFrameReference_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_ColorFrameReference_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<ColorFrameReference>(_pNative);
41 + Windows_Kinect_ColorFrameReference_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern long Windows_Kinect_ColorFrameReference_get_RelativeTime(RootSystem.IntPtr pNative);
50 + public RootSystem.TimeSpan RelativeTime
51 + {
52 + get
53 + {
54 + if (_pNative == RootSystem.IntPtr.Zero)
55 + {
56 + throw new RootSystem.ObjectDisposedException("ColorFrameReference");
57 + }
58 +
59 + return RootSystem.TimeSpan.FromMilliseconds(Windows_Kinect_ColorFrameReference_get_RelativeTime(_pNative));
60 + }
61 + }
62 +
63 +
64 + // Public Methods
65 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
66 + private static extern RootSystem.IntPtr Windows_Kinect_ColorFrameReference_AcquireFrame(RootSystem.IntPtr pNative);
67 + public Windows.Kinect.ColorFrame AcquireFrame()
68 + {
69 + if (_pNative == RootSystem.IntPtr.Zero)
70 + {
71 + throw new RootSystem.ObjectDisposedException("ColorFrameReference");
72 + }
73 +
74 + RootSystem.IntPtr objectPointer = Windows_Kinect_ColorFrameReference_AcquireFrame(_pNative);
75 + Helper.ExceptionHelper.CheckLastError();
76 + if (objectPointer == RootSystem.IntPtr.Zero)
77 + {
78 + return null;
79 + }
80 +
81 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.ColorFrame>(objectPointer, n => new Windows.Kinect.ColorFrame(n));
82 + }
83 +
84 + private void __EventCleanup()
85 + {
86 + }
87 + }
88 +
89 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.ColorFrameSource
8 + //
9 + public sealed partial class ColorFrameSource : Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal ColorFrameSource(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_ColorFrameSource_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~ColorFrameSource()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_ColorFrameSource_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_ColorFrameSource_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<ColorFrameSource>(_pNative);
41 + Windows_Kinect_ColorFrameSource_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern RootSystem.IntPtr Windows_Kinect_ColorFrameSource_get_FrameDescription(RootSystem.IntPtr pNative);
50 + public Windows.Kinect.FrameDescription FrameDescription
51 + {
52 + get
53 + {
54 + if (_pNative == RootSystem.IntPtr.Zero)
55 + {
56 + throw new RootSystem.ObjectDisposedException("ColorFrameSource");
57 + }
58 +
59 + RootSystem.IntPtr objectPointer = Windows_Kinect_ColorFrameSource_get_FrameDescription(_pNative);
60 + Helper.ExceptionHelper.CheckLastError();
61 + if (objectPointer == RootSystem.IntPtr.Zero)
62 + {
63 + return null;
64 + }
65 +
66 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.FrameDescription>(objectPointer, n => new Windows.Kinect.FrameDescription(n));
67 + }
68 + }
69 +
70 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
71 + private static extern bool Windows_Kinect_ColorFrameSource_get_IsActive(RootSystem.IntPtr pNative);
72 + public bool IsActive
73 + {
74 + get
75 + {
76 + if (_pNative == RootSystem.IntPtr.Zero)
77 + {
78 + throw new RootSystem.ObjectDisposedException("ColorFrameSource");
79 + }
80 +
81 + return Windows_Kinect_ColorFrameSource_get_IsActive(_pNative);
82 + }
83 + }
84 +
85 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
86 + private static extern RootSystem.IntPtr Windows_Kinect_ColorFrameSource_get_KinectSensor(RootSystem.IntPtr pNative);
87 + public Windows.Kinect.KinectSensor KinectSensor
88 + {
89 + get
90 + {
91 + if (_pNative == RootSystem.IntPtr.Zero)
92 + {
93 + throw new RootSystem.ObjectDisposedException("ColorFrameSource");
94 + }
95 +
96 + RootSystem.IntPtr objectPointer = Windows_Kinect_ColorFrameSource_get_KinectSensor(_pNative);
97 + Helper.ExceptionHelper.CheckLastError();
98 + if (objectPointer == RootSystem.IntPtr.Zero)
99 + {
100 + return null;
101 + }
102 +
103 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.KinectSensor>(objectPointer, n => new Windows.Kinect.KinectSensor(n));
104 + }
105 + }
106 +
107 +
108 + // Events
109 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Kinect_FrameCapturedEventArgs_Delegate_Handle;
110 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
111 + private delegate void _Windows_Kinect_FrameCapturedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
112 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.FrameCapturedEventArgs>>> Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.FrameCapturedEventArgs>>>();
113 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Kinect_FrameCapturedEventArgs_Delegate))]
114 + private static void Windows_Kinect_FrameCapturedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
115 + {
116 + List<RootSystem.EventHandler<Windows.Kinect.FrameCapturedEventArgs>> callbackList = null;
117 + Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
118 + lock(callbackList)
119 + {
120 + var objThis = Helper.NativeObjectCache.GetObject<ColorFrameSource>(pNative);
121 + var args = new Windows.Kinect.FrameCapturedEventArgs(result);
122 + foreach(var func in callbackList)
123 + {
124 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
125 + }
126 + }
127 + }
128 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
129 + private static extern void Windows_Kinect_ColorFrameSource_add_FrameCaptured(RootSystem.IntPtr pNative, _Windows_Kinect_FrameCapturedEventArgs_Delegate eventCallback, bool unsubscribe);
130 + public event RootSystem.EventHandler<Windows.Kinect.FrameCapturedEventArgs> FrameCaptured
131 + {
132 + add
133 + {
134 + Helper.EventPump.EnsureInitialized();
135 +
136 + Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
137 + var callbackList = Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks[_pNative];
138 + lock (callbackList)
139 + {
140 + callbackList.Add(value);
141 + if(callbackList.Count == 1)
142 + {
143 + var del = new _Windows_Kinect_FrameCapturedEventArgs_Delegate(Windows_Kinect_FrameCapturedEventArgs_Delegate_Handler);
144 + _Windows_Kinect_FrameCapturedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
145 + Windows_Kinect_ColorFrameSource_add_FrameCaptured(_pNative, del, false);
146 + }
147 + }
148 + }
149 + remove
150 + {
151 + if (_pNative == RootSystem.IntPtr.Zero)
152 + {
153 + return;
154 + }
155 +
156 + Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
157 + var callbackList = Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks[_pNative];
158 + lock (callbackList)
159 + {
160 + callbackList.Remove(value);
161 + if(callbackList.Count == 0)
162 + {
163 + Windows_Kinect_ColorFrameSource_add_FrameCaptured(_pNative, Windows_Kinect_FrameCapturedEventArgs_Delegate_Handler, true);
164 + _Windows_Kinect_FrameCapturedEventArgs_Delegate_Handle.Free();
165 + }
166 + }
167 + }
168 + }
169 +
170 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Data_PropertyChangedEventArgs_Delegate_Handle;
171 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
172 + private delegate void _Windows_Data_PropertyChangedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
173 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>> Windows_Data_PropertyChangedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>>();
174 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Data_PropertyChangedEventArgs_Delegate))]
175 + private static void Windows_Data_PropertyChangedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
176 + {
177 + List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>> callbackList = null;
178 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
179 + lock(callbackList)
180 + {
181 + var objThis = Helper.NativeObjectCache.GetObject<ColorFrameSource>(pNative);
182 + var args = new Windows.Data.PropertyChangedEventArgs(result);
183 + foreach(var func in callbackList)
184 + {
185 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
186 + }
187 + }
188 + }
189 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
190 + private static extern void Windows_Kinect_ColorFrameSource_add_PropertyChanged(RootSystem.IntPtr pNative, _Windows_Data_PropertyChangedEventArgs_Delegate eventCallback, bool unsubscribe);
191 + public event RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs> PropertyChanged
192 + {
193 + add
194 + {
195 + Helper.EventPump.EnsureInitialized();
196 +
197 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
198 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
199 + lock (callbackList)
200 + {
201 + callbackList.Add(value);
202 + if(callbackList.Count == 1)
203 + {
204 + var del = new _Windows_Data_PropertyChangedEventArgs_Delegate(Windows_Data_PropertyChangedEventArgs_Delegate_Handler);
205 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
206 + Windows_Kinect_ColorFrameSource_add_PropertyChanged(_pNative, del, false);
207 + }
208 + }
209 + }
210 + remove
211 + {
212 + if (_pNative == RootSystem.IntPtr.Zero)
213 + {
214 + return;
215 + }
216 +
217 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
218 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
219 + lock (callbackList)
220 + {
221 + callbackList.Remove(value);
222 + if(callbackList.Count == 0)
223 + {
224 + Windows_Kinect_ColorFrameSource_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
225 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
226 + }
227 + }
228 + }
229 + }
230 +
231 +
232 + // Public Methods
233 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
234 + private static extern RootSystem.IntPtr Windows_Kinect_ColorFrameSource_OpenReader(RootSystem.IntPtr pNative);
235 + public Windows.Kinect.ColorFrameReader OpenReader()
236 + {
237 + if (_pNative == RootSystem.IntPtr.Zero)
238 + {
239 + throw new RootSystem.ObjectDisposedException("ColorFrameSource");
240 + }
241 +
242 + RootSystem.IntPtr objectPointer = Windows_Kinect_ColorFrameSource_OpenReader(_pNative);
243 + Helper.ExceptionHelper.CheckLastError();
244 + if (objectPointer == RootSystem.IntPtr.Zero)
245 + {
246 + return null;
247 + }
248 +
249 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.ColorFrameReader>(objectPointer, n => new Windows.Kinect.ColorFrameReader(n));
250 + }
251 +
252 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
253 + private static extern RootSystem.IntPtr Windows_Kinect_ColorFrameSource_CreateFrameDescription(RootSystem.IntPtr pNative, Windows.Kinect.ColorImageFormat format);
254 + public Windows.Kinect.FrameDescription CreateFrameDescription(Windows.Kinect.ColorImageFormat format)
255 + {
256 + if (_pNative == RootSystem.IntPtr.Zero)
257 + {
258 + throw new RootSystem.ObjectDisposedException("ColorFrameSource");
259 + }
260 +
261 + RootSystem.IntPtr objectPointer = Windows_Kinect_ColorFrameSource_CreateFrameDescription(_pNative, format);
262 + Helper.ExceptionHelper.CheckLastError();
263 + if (objectPointer == RootSystem.IntPtr.Zero)
264 + {
265 + return null;
266 + }
267 +
268 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.FrameDescription>(objectPointer, n => new Windows.Kinect.FrameDescription(n));
269 + }
270 +
271 + private void __EventCleanup()
272 + {
273 + {
274 + Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
275 + var callbackList = Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks[_pNative];
276 + lock (callbackList)
277 + {
278 + if (callbackList.Count > 0)
279 + {
280 + callbackList.Clear();
281 + if (_pNative != RootSystem.IntPtr.Zero)
282 + {
283 + Windows_Kinect_ColorFrameSource_add_FrameCaptured(_pNative, Windows_Kinect_FrameCapturedEventArgs_Delegate_Handler, true);
284 + }
285 + _Windows_Kinect_FrameCapturedEventArgs_Delegate_Handle.Free();
286 + }
287 + }
288 + }
289 + {
290 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
291 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
292 + lock (callbackList)
293 + {
294 + if (callbackList.Count > 0)
295 + {
296 + callbackList.Clear();
297 + if (_pNative != RootSystem.IntPtr.Zero)
298 + {
299 + Windows_Kinect_ColorFrameSource_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
300 + }
301 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
302 + }
303 + }
304 + }
305 + }
306 + }
307 +
308 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.ColorImageFormat
8 + //
9 + public enum ColorImageFormat : int
10 + {
11 + None =0,
12 + Rgba =1,
13 + Yuv =2,
14 + Bgra =3,
15 + Bayer =4,
16 + Yuy2 =5,
17 + }
18 +
19 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.ColorSpacePoint
8 + //
9 + [RootSystem.Runtime.InteropServices.StructLayout(RootSystem.Runtime.InteropServices.LayoutKind.Sequential)]
10 + public struct ColorSpacePoint
11 + {
12 + public float X { get; set; }
13 + public float Y { get; set; }
14 +
15 + public override int GetHashCode()
16 + {
17 + return X.GetHashCode() ^ Y.GetHashCode();
18 + }
19 +
20 + public override bool Equals(object obj)
21 + {
22 + if (!(obj is ColorSpacePoint))
23 + {
24 + return false;
25 + }
26 +
27 + return this.Equals((ColorSpacePoint)obj);
28 + }
29 +
30 + public bool Equals(ColorSpacePoint obj)
31 + {
32 + return X.Equals(obj.X) && Y.Equals(obj.Y);
33 + }
34 +
35 + public static bool operator ==(ColorSpacePoint a, ColorSpacePoint b)
36 + {
37 + return a.Equals(b);
38 + }
39 +
40 + public static bool operator !=(ColorSpacePoint a, ColorSpacePoint b)
41 + {
42 + return !(a.Equals(b));
43 + }
44 + }
45 +
46 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.CoordinateMapper
8 + //
9 + public sealed partial class CoordinateMapper : Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal CoordinateMapper(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_CoordinateMapper_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~CoordinateMapper()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_CoordinateMapper_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_CoordinateMapper_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<CoordinateMapper>(_pNative);
41 + Windows_Kinect_CoordinateMapper_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Events
48 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Kinect_CoordinateMappingChangedEventArgs_Delegate_Handle;
49 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
50 + private delegate void _Windows_Kinect_CoordinateMappingChangedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
51 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.CoordinateMappingChangedEventArgs>>> Windows_Kinect_CoordinateMappingChangedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.CoordinateMappingChangedEventArgs>>>();
52 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Kinect_CoordinateMappingChangedEventArgs_Delegate))]
53 + private static void Windows_Kinect_CoordinateMappingChangedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
54 + {
55 + List<RootSystem.EventHandler<Windows.Kinect.CoordinateMappingChangedEventArgs>> callbackList = null;
56 + Windows_Kinect_CoordinateMappingChangedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
57 + lock(callbackList)
58 + {
59 + var objThis = Helper.NativeObjectCache.GetObject<CoordinateMapper>(pNative);
60 + var args = new Windows.Kinect.CoordinateMappingChangedEventArgs(result);
61 + foreach(var func in callbackList)
62 + {
63 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
64 + }
65 + }
66 + }
67 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
68 + private static extern void Windows_Kinect_CoordinateMapper_add_CoordinateMappingChanged(RootSystem.IntPtr pNative, _Windows_Kinect_CoordinateMappingChangedEventArgs_Delegate eventCallback, bool unsubscribe);
69 + public event RootSystem.EventHandler<Windows.Kinect.CoordinateMappingChangedEventArgs> CoordinateMappingChanged
70 + {
71 + add
72 + {
73 + Helper.EventPump.EnsureInitialized();
74 +
75 + Windows_Kinect_CoordinateMappingChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
76 + var callbackList = Windows_Kinect_CoordinateMappingChangedEventArgs_Delegate_callbacks[_pNative];
77 + lock (callbackList)
78 + {
79 + callbackList.Add(value);
80 + if(callbackList.Count == 1)
81 + {
82 + var del = new _Windows_Kinect_CoordinateMappingChangedEventArgs_Delegate(Windows_Kinect_CoordinateMappingChangedEventArgs_Delegate_Handler);
83 + _Windows_Kinect_CoordinateMappingChangedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
84 + Windows_Kinect_CoordinateMapper_add_CoordinateMappingChanged(_pNative, del, false);
85 + }
86 + }
87 + }
88 + remove
89 + {
90 + if (_pNative == RootSystem.IntPtr.Zero)
91 + {
92 + return;
93 + }
94 +
95 + Windows_Kinect_CoordinateMappingChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
96 + var callbackList = Windows_Kinect_CoordinateMappingChangedEventArgs_Delegate_callbacks[_pNative];
97 + lock (callbackList)
98 + {
99 + callbackList.Remove(value);
100 + if(callbackList.Count == 0)
101 + {
102 + Windows_Kinect_CoordinateMapper_add_CoordinateMappingChanged(_pNative, Windows_Kinect_CoordinateMappingChangedEventArgs_Delegate_Handler, true);
103 + _Windows_Kinect_CoordinateMappingChangedEventArgs_Delegate_Handle.Free();
104 + }
105 + }
106 + }
107 + }
108 +
109 +
110 + // Public Methods
111 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
112 + private static extern RootSystem.IntPtr Windows_Kinect_CoordinateMapper_MapCameraPointToDepthSpace(RootSystem.IntPtr pNative, Windows.Kinect.CameraSpacePoint cameraPoint);
113 + public Windows.Kinect.DepthSpacePoint MapCameraPointToDepthSpace(Windows.Kinect.CameraSpacePoint cameraPoint)
114 + {
115 + if (_pNative == RootSystem.IntPtr.Zero)
116 + {
117 + throw new RootSystem.ObjectDisposedException("CoordinateMapper");
118 + }
119 +
120 + var objectPointer = Windows_Kinect_CoordinateMapper_MapCameraPointToDepthSpace(_pNative, cameraPoint);
121 + Helper.ExceptionHelper.CheckLastError();
122 + var obj = (Windows.Kinect.DepthSpacePoint)RootSystem.Runtime.InteropServices.Marshal.PtrToStructure(objectPointer, typeof(Windows.Kinect.DepthSpacePoint));
123 + RootSystem.Runtime.InteropServices.Marshal.FreeHGlobal(objectPointer);
124 + return obj;
125 + }
126 +
127 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
128 + private static extern RootSystem.IntPtr Windows_Kinect_CoordinateMapper_MapCameraPointToColorSpace(RootSystem.IntPtr pNative, Windows.Kinect.CameraSpacePoint cameraPoint);
129 + public Windows.Kinect.ColorSpacePoint MapCameraPointToColorSpace(Windows.Kinect.CameraSpacePoint cameraPoint)
130 + {
131 + if (_pNative == RootSystem.IntPtr.Zero)
132 + {
133 + throw new RootSystem.ObjectDisposedException("CoordinateMapper");
134 + }
135 +
136 + var objectPointer = Windows_Kinect_CoordinateMapper_MapCameraPointToColorSpace(_pNative, cameraPoint);
137 + Helper.ExceptionHelper.CheckLastError();
138 + var obj = (Windows.Kinect.ColorSpacePoint)RootSystem.Runtime.InteropServices.Marshal.PtrToStructure(objectPointer, typeof(Windows.Kinect.ColorSpacePoint));
139 + RootSystem.Runtime.InteropServices.Marshal.FreeHGlobal(objectPointer);
140 + return obj;
141 + }
142 +
143 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
144 + private static extern RootSystem.IntPtr Windows_Kinect_CoordinateMapper_MapDepthPointToCameraSpace(RootSystem.IntPtr pNative, Windows.Kinect.DepthSpacePoint depthPoint, ushort depth);
145 + public Windows.Kinect.CameraSpacePoint MapDepthPointToCameraSpace(Windows.Kinect.DepthSpacePoint depthPoint, ushort depth)
146 + {
147 + if (_pNative == RootSystem.IntPtr.Zero)
148 + {
149 + throw new RootSystem.ObjectDisposedException("CoordinateMapper");
150 + }
151 +
152 + var objectPointer = Windows_Kinect_CoordinateMapper_MapDepthPointToCameraSpace(_pNative, depthPoint, depth);
153 + Helper.ExceptionHelper.CheckLastError();
154 + var obj = (Windows.Kinect.CameraSpacePoint)RootSystem.Runtime.InteropServices.Marshal.PtrToStructure(objectPointer, typeof(Windows.Kinect.CameraSpacePoint));
155 + RootSystem.Runtime.InteropServices.Marshal.FreeHGlobal(objectPointer);
156 + return obj;
157 + }
158 +
159 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
160 + private static extern RootSystem.IntPtr Windows_Kinect_CoordinateMapper_MapDepthPointToColorSpace(RootSystem.IntPtr pNative, Windows.Kinect.DepthSpacePoint depthPoint, ushort depth);
161 + public Windows.Kinect.ColorSpacePoint MapDepthPointToColorSpace(Windows.Kinect.DepthSpacePoint depthPoint, ushort depth)
162 + {
163 + if (_pNative == RootSystem.IntPtr.Zero)
164 + {
165 + throw new RootSystem.ObjectDisposedException("CoordinateMapper");
166 + }
167 +
168 + var objectPointer = Windows_Kinect_CoordinateMapper_MapDepthPointToColorSpace(_pNative, depthPoint, depth);
169 + Helper.ExceptionHelper.CheckLastError();
170 + var obj = (Windows.Kinect.ColorSpacePoint)RootSystem.Runtime.InteropServices.Marshal.PtrToStructure(objectPointer, typeof(Windows.Kinect.ColorSpacePoint));
171 + RootSystem.Runtime.InteropServices.Marshal.FreeHGlobal(objectPointer);
172 + return obj;
173 + }
174 +
175 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
176 + private static extern void Windows_Kinect_CoordinateMapper_MapCameraPointsToDepthSpace(RootSystem.IntPtr pNative, RootSystem.IntPtr cameraPoints, int cameraPointsSize, RootSystem.IntPtr depthPoints, int depthPointsSize);
177 + public void MapCameraPointsToDepthSpace(Windows.Kinect.CameraSpacePoint[] cameraPoints, Windows.Kinect.DepthSpacePoint[] depthPoints)
178 + {
179 + if (_pNative == RootSystem.IntPtr.Zero)
180 + {
181 + throw new RootSystem.ObjectDisposedException("CoordinateMapper");
182 + }
183 +
184 + var cameraPointsSmartGCHandle = new Helper.SmartGCHandle(RootSystem.Runtime.InteropServices.GCHandle.Alloc(cameraPoints, RootSystem.Runtime.InteropServices.GCHandleType.Pinned));
185 + var _cameraPoints = cameraPointsSmartGCHandle.AddrOfPinnedObject();
186 + var depthPointsSmartGCHandle = new Helper.SmartGCHandle(RootSystem.Runtime.InteropServices.GCHandle.Alloc(depthPoints, RootSystem.Runtime.InteropServices.GCHandleType.Pinned));
187 + var _depthPoints = depthPointsSmartGCHandle.AddrOfPinnedObject();
188 + Windows_Kinect_CoordinateMapper_MapCameraPointsToDepthSpace(_pNative, _cameraPoints, cameraPoints.Length, _depthPoints, depthPoints.Length);
189 + Helper.ExceptionHelper.CheckLastError();
190 + }
191 +
192 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
193 + private static extern void Windows_Kinect_CoordinateMapper_MapCameraPointsToColorSpace(RootSystem.IntPtr pNative, RootSystem.IntPtr cameraPoints, int cameraPointsSize, RootSystem.IntPtr colorPoints, int colorPointsSize);
194 + public void MapCameraPointsToColorSpace(Windows.Kinect.CameraSpacePoint[] cameraPoints, Windows.Kinect.ColorSpacePoint[] colorPoints)
195 + {
196 + if (_pNative == RootSystem.IntPtr.Zero)
197 + {
198 + throw new RootSystem.ObjectDisposedException("CoordinateMapper");
199 + }
200 +
201 + var cameraPointsSmartGCHandle = new Helper.SmartGCHandle(RootSystem.Runtime.InteropServices.GCHandle.Alloc(cameraPoints, RootSystem.Runtime.InteropServices.GCHandleType.Pinned));
202 + var _cameraPoints = cameraPointsSmartGCHandle.AddrOfPinnedObject();
203 + var colorPointsSmartGCHandle = new Helper.SmartGCHandle(RootSystem.Runtime.InteropServices.GCHandle.Alloc(colorPoints, RootSystem.Runtime.InteropServices.GCHandleType.Pinned));
204 + var _colorPoints = colorPointsSmartGCHandle.AddrOfPinnedObject();
205 + Windows_Kinect_CoordinateMapper_MapCameraPointsToColorSpace(_pNative, _cameraPoints, cameraPoints.Length, _colorPoints, colorPoints.Length);
206 + Helper.ExceptionHelper.CheckLastError();
207 + }
208 +
209 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
210 + private static extern void Windows_Kinect_CoordinateMapper_MapDepthPointsToCameraSpace(RootSystem.IntPtr pNative, RootSystem.IntPtr depthPoints, int depthPointsSize, RootSystem.IntPtr depths, int depthsSize, RootSystem.IntPtr cameraPoints, int cameraPointsSize);
211 + public void MapDepthPointsToCameraSpace(Windows.Kinect.DepthSpacePoint[] depthPoints, ushort[] depths, Windows.Kinect.CameraSpacePoint[] cameraPoints)
212 + {
213 + if (_pNative == RootSystem.IntPtr.Zero)
214 + {
215 + throw new RootSystem.ObjectDisposedException("CoordinateMapper");
216 + }
217 +
218 + var depthPointsSmartGCHandle = new Helper.SmartGCHandle(RootSystem.Runtime.InteropServices.GCHandle.Alloc(depthPoints, RootSystem.Runtime.InteropServices.GCHandleType.Pinned));
219 + var _depthPoints = depthPointsSmartGCHandle.AddrOfPinnedObject();
220 + var depthsSmartGCHandle = new Helper.SmartGCHandle(RootSystem.Runtime.InteropServices.GCHandle.Alloc(depths, RootSystem.Runtime.InteropServices.GCHandleType.Pinned));
221 + var _depths = depthsSmartGCHandle.AddrOfPinnedObject();
222 + var cameraPointsSmartGCHandle = new Helper.SmartGCHandle(RootSystem.Runtime.InteropServices.GCHandle.Alloc(cameraPoints, RootSystem.Runtime.InteropServices.GCHandleType.Pinned));
223 + var _cameraPoints = cameraPointsSmartGCHandle.AddrOfPinnedObject();
224 + Windows_Kinect_CoordinateMapper_MapDepthPointsToCameraSpace(_pNative, _depthPoints, depthPoints.Length, _depths, depths.Length, _cameraPoints, cameraPoints.Length);
225 + Helper.ExceptionHelper.CheckLastError();
226 + }
227 +
228 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
229 + private static extern void Windows_Kinect_CoordinateMapper_MapDepthPointsToColorSpace(RootSystem.IntPtr pNative, RootSystem.IntPtr depthPoints, int depthPointsSize, RootSystem.IntPtr depths, int depthsSize, RootSystem.IntPtr colorPoints, int colorPointsSize);
230 + public void MapDepthPointsToColorSpace(Windows.Kinect.DepthSpacePoint[] depthPoints, ushort[] depths, Windows.Kinect.ColorSpacePoint[] colorPoints)
231 + {
232 + if (_pNative == RootSystem.IntPtr.Zero)
233 + {
234 + throw new RootSystem.ObjectDisposedException("CoordinateMapper");
235 + }
236 +
237 + var depthPointsSmartGCHandle = new Helper.SmartGCHandle(RootSystem.Runtime.InteropServices.GCHandle.Alloc(depthPoints, RootSystem.Runtime.InteropServices.GCHandleType.Pinned));
238 + var _depthPoints = depthPointsSmartGCHandle.AddrOfPinnedObject();
239 + var depthsSmartGCHandle = new Helper.SmartGCHandle(RootSystem.Runtime.InteropServices.GCHandle.Alloc(depths, RootSystem.Runtime.InteropServices.GCHandleType.Pinned));
240 + var _depths = depthsSmartGCHandle.AddrOfPinnedObject();
241 + var colorPointsSmartGCHandle = new Helper.SmartGCHandle(RootSystem.Runtime.InteropServices.GCHandle.Alloc(colorPoints, RootSystem.Runtime.InteropServices.GCHandleType.Pinned));
242 + var _colorPoints = colorPointsSmartGCHandle.AddrOfPinnedObject();
243 + Windows_Kinect_CoordinateMapper_MapDepthPointsToColorSpace(_pNative, _depthPoints, depthPoints.Length, _depths, depths.Length, _colorPoints, colorPoints.Length);
244 + Helper.ExceptionHelper.CheckLastError();
245 + }
246 +
247 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
248 + private static extern void Windows_Kinect_CoordinateMapper_MapDepthFrameToCameraSpace(RootSystem.IntPtr pNative, RootSystem.IntPtr depthFrameData, int depthFrameDataSize, RootSystem.IntPtr cameraSpacePoints, int cameraSpacePointsSize);
249 + public void MapDepthFrameToCameraSpace(ushort[] depthFrameData, Windows.Kinect.CameraSpacePoint[] cameraSpacePoints)
250 + {
251 + if (_pNative == RootSystem.IntPtr.Zero)
252 + {
253 + throw new RootSystem.ObjectDisposedException("CoordinateMapper");
254 + }
255 +
256 + var depthFrameDataSmartGCHandle = new Helper.SmartGCHandle(RootSystem.Runtime.InteropServices.GCHandle.Alloc(depthFrameData, RootSystem.Runtime.InteropServices.GCHandleType.Pinned));
257 + var _depthFrameData = depthFrameDataSmartGCHandle.AddrOfPinnedObject();
258 + var cameraSpacePointsSmartGCHandle = new Helper.SmartGCHandle(RootSystem.Runtime.InteropServices.GCHandle.Alloc(cameraSpacePoints, RootSystem.Runtime.InteropServices.GCHandleType.Pinned));
259 + var _cameraSpacePoints = cameraSpacePointsSmartGCHandle.AddrOfPinnedObject();
260 + Windows_Kinect_CoordinateMapper_MapDepthFrameToCameraSpace(_pNative, _depthFrameData, depthFrameData.Length, _cameraSpacePoints, cameraSpacePoints.Length);
261 + Helper.ExceptionHelper.CheckLastError();
262 + }
263 +
264 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
265 + private static extern void Windows_Kinect_CoordinateMapper_MapDepthFrameToColorSpace(RootSystem.IntPtr pNative, RootSystem.IntPtr depthFrameData, int depthFrameDataSize, RootSystem.IntPtr colorSpacePoints, int colorSpacePointsSize);
266 + public void MapDepthFrameToColorSpace(ushort[] depthFrameData, Windows.Kinect.ColorSpacePoint[] colorSpacePoints)
267 + {
268 + if (_pNative == RootSystem.IntPtr.Zero)
269 + {
270 + throw new RootSystem.ObjectDisposedException("CoordinateMapper");
271 + }
272 +
273 + var depthFrameDataSmartGCHandle = new Helper.SmartGCHandle(RootSystem.Runtime.InteropServices.GCHandle.Alloc(depthFrameData, RootSystem.Runtime.InteropServices.GCHandleType.Pinned));
274 + var _depthFrameData = depthFrameDataSmartGCHandle.AddrOfPinnedObject();
275 + var colorSpacePointsSmartGCHandle = new Helper.SmartGCHandle(RootSystem.Runtime.InteropServices.GCHandle.Alloc(colorSpacePoints, RootSystem.Runtime.InteropServices.GCHandleType.Pinned));
276 + var _colorSpacePoints = colorSpacePointsSmartGCHandle.AddrOfPinnedObject();
277 + Windows_Kinect_CoordinateMapper_MapDepthFrameToColorSpace(_pNative, _depthFrameData, depthFrameData.Length, _colorSpacePoints, colorSpacePoints.Length);
278 + Helper.ExceptionHelper.CheckLastError();
279 + }
280 +
281 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
282 + private static extern void Windows_Kinect_CoordinateMapper_MapColorFrameToDepthSpace(RootSystem.IntPtr pNative, RootSystem.IntPtr depthFrameData, int depthFrameDataSize, RootSystem.IntPtr depthSpacePoints, int depthSpacePointsSize);
283 + public void MapColorFrameToDepthSpace(ushort[] depthFrameData, Windows.Kinect.DepthSpacePoint[] depthSpacePoints)
284 + {
285 + if (_pNative == RootSystem.IntPtr.Zero)
286 + {
287 + throw new RootSystem.ObjectDisposedException("CoordinateMapper");
288 + }
289 +
290 + var depthFrameDataSmartGCHandle = new Helper.SmartGCHandle(RootSystem.Runtime.InteropServices.GCHandle.Alloc(depthFrameData, RootSystem.Runtime.InteropServices.GCHandleType.Pinned));
291 + var _depthFrameData = depthFrameDataSmartGCHandle.AddrOfPinnedObject();
292 + var depthSpacePointsSmartGCHandle = new Helper.SmartGCHandle(RootSystem.Runtime.InteropServices.GCHandle.Alloc(depthSpacePoints, RootSystem.Runtime.InteropServices.GCHandleType.Pinned));
293 + var _depthSpacePoints = depthSpacePointsSmartGCHandle.AddrOfPinnedObject();
294 + Windows_Kinect_CoordinateMapper_MapColorFrameToDepthSpace(_pNative, _depthFrameData, depthFrameData.Length, _depthSpacePoints, depthSpacePoints.Length);
295 + Helper.ExceptionHelper.CheckLastError();
296 + }
297 +
298 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
299 + private static extern void Windows_Kinect_CoordinateMapper_MapColorFrameToCameraSpace(RootSystem.IntPtr pNative, RootSystem.IntPtr depthFrameData, int depthFrameDataSize, RootSystem.IntPtr cameraSpacePoints, int cameraSpacePointsSize);
300 + public void MapColorFrameToCameraSpace(ushort[] depthFrameData, Windows.Kinect.CameraSpacePoint[] cameraSpacePoints)
301 + {
302 + if (_pNative == RootSystem.IntPtr.Zero)
303 + {
304 + throw new RootSystem.ObjectDisposedException("CoordinateMapper");
305 + }
306 +
307 + var depthFrameDataSmartGCHandle = new Helper.SmartGCHandle(RootSystem.Runtime.InteropServices.GCHandle.Alloc(depthFrameData, RootSystem.Runtime.InteropServices.GCHandleType.Pinned));
308 + var _depthFrameData = depthFrameDataSmartGCHandle.AddrOfPinnedObject();
309 + var cameraSpacePointsSmartGCHandle = new Helper.SmartGCHandle(RootSystem.Runtime.InteropServices.GCHandle.Alloc(cameraSpacePoints, RootSystem.Runtime.InteropServices.GCHandleType.Pinned));
310 + var _cameraSpacePoints = cameraSpacePointsSmartGCHandle.AddrOfPinnedObject();
311 + Windows_Kinect_CoordinateMapper_MapColorFrameToCameraSpace(_pNative, _depthFrameData, depthFrameData.Length, _cameraSpacePoints, cameraSpacePoints.Length);
312 + Helper.ExceptionHelper.CheckLastError();
313 + }
314 +
315 + private void __EventCleanup()
316 + {
317 + {
318 + Windows_Kinect_CoordinateMappingChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
319 + var callbackList = Windows_Kinect_CoordinateMappingChangedEventArgs_Delegate_callbacks[_pNative];
320 + lock (callbackList)
321 + {
322 + if (callbackList.Count > 0)
323 + {
324 + callbackList.Clear();
325 + if (_pNative != RootSystem.IntPtr.Zero)
326 + {
327 + Windows_Kinect_CoordinateMapper_add_CoordinateMappingChanged(_pNative, Windows_Kinect_CoordinateMappingChangedEventArgs_Delegate_Handler, true);
328 + }
329 + _Windows_Kinect_CoordinateMappingChangedEventArgs_Delegate_Handle.Free();
330 + }
331 + }
332 + }
333 + }
334 + }
335 +
336 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.CoordinateMappingChangedEventArgs
8 + //
9 + public sealed partial class CoordinateMappingChangedEventArgs : RootSystem.EventArgs, Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal CoordinateMappingChangedEventArgs(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_CoordinateMappingChangedEventArgs_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~CoordinateMappingChangedEventArgs()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_CoordinateMappingChangedEventArgs_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_CoordinateMappingChangedEventArgs_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<CoordinateMappingChangedEventArgs>(_pNative);
41 + Windows_Kinect_CoordinateMappingChangedEventArgs_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 + private void __EventCleanup()
47 + {
48 + }
49 + }
50 +
51 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.DepthFrame
8 + //
9 + public sealed partial class DepthFrame : RootSystem.IDisposable, Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal DepthFrame(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_DepthFrame_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~DepthFrame()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_DepthFrame_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_DepthFrame_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<DepthFrame>(_pNative);
41 +
42 + if (disposing)
43 + {
44 + Windows_Kinect_DepthFrame_Dispose(_pNative);
45 + }
46 + Windows_Kinect_DepthFrame_ReleaseObject(ref _pNative);
47 +
48 + _pNative = RootSystem.IntPtr.Zero;
49 + }
50 +
51 +
52 + // Public Properties
53 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
54 + private static extern RootSystem.IntPtr Windows_Kinect_DepthFrame_get_DepthFrameSource(RootSystem.IntPtr pNative);
55 + public Windows.Kinect.DepthFrameSource DepthFrameSource
56 + {
57 + get
58 + {
59 + if (_pNative == RootSystem.IntPtr.Zero)
60 + {
61 + throw new RootSystem.ObjectDisposedException("DepthFrame");
62 + }
63 +
64 + RootSystem.IntPtr objectPointer = Windows_Kinect_DepthFrame_get_DepthFrameSource(_pNative);
65 + Helper.ExceptionHelper.CheckLastError();
66 + if (objectPointer == RootSystem.IntPtr.Zero)
67 + {
68 + return null;
69 + }
70 +
71 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.DepthFrameSource>(objectPointer, n => new Windows.Kinect.DepthFrameSource(n));
72 + }
73 + }
74 +
75 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
76 + private static extern ushort Windows_Kinect_DepthFrame_get_DepthMaxReliableDistance(RootSystem.IntPtr pNative);
77 + public ushort DepthMaxReliableDistance
78 + {
79 + get
80 + {
81 + if (_pNative == RootSystem.IntPtr.Zero)
82 + {
83 + throw new RootSystem.ObjectDisposedException("DepthFrame");
84 + }
85 +
86 + return Windows_Kinect_DepthFrame_get_DepthMaxReliableDistance(_pNative);
87 + }
88 + }
89 +
90 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
91 + private static extern ushort Windows_Kinect_DepthFrame_get_DepthMinReliableDistance(RootSystem.IntPtr pNative);
92 + public ushort DepthMinReliableDistance
93 + {
94 + get
95 + {
96 + if (_pNative == RootSystem.IntPtr.Zero)
97 + {
98 + throw new RootSystem.ObjectDisposedException("DepthFrame");
99 + }
100 +
101 + return Windows_Kinect_DepthFrame_get_DepthMinReliableDistance(_pNative);
102 + }
103 + }
104 +
105 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
106 + private static extern RootSystem.IntPtr Windows_Kinect_DepthFrame_get_FrameDescription(RootSystem.IntPtr pNative);
107 + public Windows.Kinect.FrameDescription FrameDescription
108 + {
109 + get
110 + {
111 + if (_pNative == RootSystem.IntPtr.Zero)
112 + {
113 + throw new RootSystem.ObjectDisposedException("DepthFrame");
114 + }
115 +
116 + RootSystem.IntPtr objectPointer = Windows_Kinect_DepthFrame_get_FrameDescription(_pNative);
117 + Helper.ExceptionHelper.CheckLastError();
118 + if (objectPointer == RootSystem.IntPtr.Zero)
119 + {
120 + return null;
121 + }
122 +
123 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.FrameDescription>(objectPointer, n => new Windows.Kinect.FrameDescription(n));
124 + }
125 + }
126 +
127 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
128 + private static extern long Windows_Kinect_DepthFrame_get_RelativeTime(RootSystem.IntPtr pNative);
129 + public RootSystem.TimeSpan RelativeTime
130 + {
131 + get
132 + {
133 + if (_pNative == RootSystem.IntPtr.Zero)
134 + {
135 + throw new RootSystem.ObjectDisposedException("DepthFrame");
136 + }
137 +
138 + return RootSystem.TimeSpan.FromMilliseconds(Windows_Kinect_DepthFrame_get_RelativeTime(_pNative));
139 + }
140 + }
141 +
142 +
143 + // Public Methods
144 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
145 + private static extern void Windows_Kinect_DepthFrame_CopyFrameDataToArray(RootSystem.IntPtr pNative, RootSystem.IntPtr frameData, int frameDataSize);
146 + public void CopyFrameDataToArray(ushort[] frameData)
147 + {
148 + if (_pNative == RootSystem.IntPtr.Zero)
149 + {
150 + throw new RootSystem.ObjectDisposedException("DepthFrame");
151 + }
152 +
153 + var frameDataSmartGCHandle = new Helper.SmartGCHandle(RootSystem.Runtime.InteropServices.GCHandle.Alloc(frameData, RootSystem.Runtime.InteropServices.GCHandleType.Pinned));
154 + var _frameData = frameDataSmartGCHandle.AddrOfPinnedObject();
155 + Windows_Kinect_DepthFrame_CopyFrameDataToArray(_pNative, _frameData, frameData.Length);
156 + Helper.ExceptionHelper.CheckLastError();
157 + }
158 +
159 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
160 + private static extern void Windows_Kinect_DepthFrame_Dispose(RootSystem.IntPtr pNative);
161 + public void Dispose()
162 + {
163 + if (_pNative == RootSystem.IntPtr.Zero)
164 + {
165 + return;
166 + }
167 +
168 + Dispose(true);
169 + RootSystem.GC.SuppressFinalize(this);
170 + }
171 +
172 + private void __EventCleanup()
173 + {
174 + }
175 + }
176 +
177 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.DepthFrameArrivedEventArgs
8 + //
9 + public sealed partial class DepthFrameArrivedEventArgs : RootSystem.EventArgs, Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal DepthFrameArrivedEventArgs(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_DepthFrameArrivedEventArgs_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~DepthFrameArrivedEventArgs()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_DepthFrameArrivedEventArgs_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_DepthFrameArrivedEventArgs_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<DepthFrameArrivedEventArgs>(_pNative);
41 + Windows_Kinect_DepthFrameArrivedEventArgs_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern RootSystem.IntPtr Windows_Kinect_DepthFrameArrivedEventArgs_get_FrameReference(RootSystem.IntPtr pNative);
50 + public Windows.Kinect.DepthFrameReference FrameReference
51 + {
52 + get
53 + {
54 + if (_pNative == RootSystem.IntPtr.Zero)
55 + {
56 + throw new RootSystem.ObjectDisposedException("DepthFrameArrivedEventArgs");
57 + }
58 +
59 + RootSystem.IntPtr objectPointer = Windows_Kinect_DepthFrameArrivedEventArgs_get_FrameReference(_pNative);
60 + Helper.ExceptionHelper.CheckLastError();
61 + if (objectPointer == RootSystem.IntPtr.Zero)
62 + {
63 + return null;
64 + }
65 +
66 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.DepthFrameReference>(objectPointer, n => new Windows.Kinect.DepthFrameReference(n));
67 + }
68 + }
69 +
70 + private void __EventCleanup()
71 + {
72 + }
73 + }
74 +
75 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.DepthFrameReader
8 + //
9 + public sealed partial class DepthFrameReader : RootSystem.IDisposable, Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal DepthFrameReader(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_DepthFrameReader_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~DepthFrameReader()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_DepthFrameReader_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_DepthFrameReader_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<DepthFrameReader>(_pNative);
41 +
42 + if (disposing)
43 + {
44 + Windows_Kinect_DepthFrameReader_Dispose(_pNative);
45 + }
46 + Windows_Kinect_DepthFrameReader_ReleaseObject(ref _pNative);
47 +
48 + _pNative = RootSystem.IntPtr.Zero;
49 + }
50 +
51 +
52 + // Public Properties
53 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
54 + private static extern RootSystem.IntPtr Windows_Kinect_DepthFrameReader_get_DepthFrameSource(RootSystem.IntPtr pNative);
55 + public Windows.Kinect.DepthFrameSource DepthFrameSource
56 + {
57 + get
58 + {
59 + if (_pNative == RootSystem.IntPtr.Zero)
60 + {
61 + throw new RootSystem.ObjectDisposedException("DepthFrameReader");
62 + }
63 +
64 + RootSystem.IntPtr objectPointer = Windows_Kinect_DepthFrameReader_get_DepthFrameSource(_pNative);
65 + Helper.ExceptionHelper.CheckLastError();
66 + if (objectPointer == RootSystem.IntPtr.Zero)
67 + {
68 + return null;
69 + }
70 +
71 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.DepthFrameSource>(objectPointer, n => new Windows.Kinect.DepthFrameSource(n));
72 + }
73 + }
74 +
75 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
76 + private static extern bool Windows_Kinect_DepthFrameReader_get_IsPaused(RootSystem.IntPtr pNative);
77 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
78 + private static extern void Windows_Kinect_DepthFrameReader_put_IsPaused(RootSystem.IntPtr pNative, bool isPaused);
79 + public bool IsPaused
80 + {
81 + get
82 + {
83 + if (_pNative == RootSystem.IntPtr.Zero)
84 + {
85 + throw new RootSystem.ObjectDisposedException("DepthFrameReader");
86 + }
87 +
88 + return Windows_Kinect_DepthFrameReader_get_IsPaused(_pNative);
89 + }
90 + set
91 + {
92 + if (_pNative == RootSystem.IntPtr.Zero)
93 + {
94 + throw new RootSystem.ObjectDisposedException("DepthFrameReader");
95 + }
96 +
97 + Windows_Kinect_DepthFrameReader_put_IsPaused(_pNative, value);
98 + Helper.ExceptionHelper.CheckLastError();
99 + }
100 + }
101 +
102 +
103 + // Events
104 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Kinect_DepthFrameArrivedEventArgs_Delegate_Handle;
105 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
106 + private delegate void _Windows_Kinect_DepthFrameArrivedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
107 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.DepthFrameArrivedEventArgs>>> Windows_Kinect_DepthFrameArrivedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.DepthFrameArrivedEventArgs>>>();
108 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Kinect_DepthFrameArrivedEventArgs_Delegate))]
109 + private static void Windows_Kinect_DepthFrameArrivedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
110 + {
111 + List<RootSystem.EventHandler<Windows.Kinect.DepthFrameArrivedEventArgs>> callbackList = null;
112 + Windows_Kinect_DepthFrameArrivedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
113 + lock(callbackList)
114 + {
115 + var objThis = Helper.NativeObjectCache.GetObject<DepthFrameReader>(pNative);
116 + var args = new Windows.Kinect.DepthFrameArrivedEventArgs(result);
117 + foreach(var func in callbackList)
118 + {
119 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
120 + }
121 + }
122 + }
123 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
124 + private static extern void Windows_Kinect_DepthFrameReader_add_FrameArrived(RootSystem.IntPtr pNative, _Windows_Kinect_DepthFrameArrivedEventArgs_Delegate eventCallback, bool unsubscribe);
125 + public event RootSystem.EventHandler<Windows.Kinect.DepthFrameArrivedEventArgs> FrameArrived
126 + {
127 + add
128 + {
129 + Helper.EventPump.EnsureInitialized();
130 +
131 + Windows_Kinect_DepthFrameArrivedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
132 + var callbackList = Windows_Kinect_DepthFrameArrivedEventArgs_Delegate_callbacks[_pNative];
133 + lock (callbackList)
134 + {
135 + callbackList.Add(value);
136 + if(callbackList.Count == 1)
137 + {
138 + var del = new _Windows_Kinect_DepthFrameArrivedEventArgs_Delegate(Windows_Kinect_DepthFrameArrivedEventArgs_Delegate_Handler);
139 + _Windows_Kinect_DepthFrameArrivedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
140 + Windows_Kinect_DepthFrameReader_add_FrameArrived(_pNative, del, false);
141 + }
142 + }
143 + }
144 + remove
145 + {
146 + if (_pNative == RootSystem.IntPtr.Zero)
147 + {
148 + return;
149 + }
150 +
151 + Windows_Kinect_DepthFrameArrivedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
152 + var callbackList = Windows_Kinect_DepthFrameArrivedEventArgs_Delegate_callbacks[_pNative];
153 + lock (callbackList)
154 + {
155 + callbackList.Remove(value);
156 + if(callbackList.Count == 0)
157 + {
158 + Windows_Kinect_DepthFrameReader_add_FrameArrived(_pNative, Windows_Kinect_DepthFrameArrivedEventArgs_Delegate_Handler, true);
159 + _Windows_Kinect_DepthFrameArrivedEventArgs_Delegate_Handle.Free();
160 + }
161 + }
162 + }
163 + }
164 +
165 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Data_PropertyChangedEventArgs_Delegate_Handle;
166 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
167 + private delegate void _Windows_Data_PropertyChangedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
168 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>> Windows_Data_PropertyChangedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>>();
169 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Data_PropertyChangedEventArgs_Delegate))]
170 + private static void Windows_Data_PropertyChangedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
171 + {
172 + List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>> callbackList = null;
173 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
174 + lock(callbackList)
175 + {
176 + var objThis = Helper.NativeObjectCache.GetObject<DepthFrameReader>(pNative);
177 + var args = new Windows.Data.PropertyChangedEventArgs(result);
178 + foreach(var func in callbackList)
179 + {
180 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
181 + }
182 + }
183 + }
184 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
185 + private static extern void Windows_Kinect_DepthFrameReader_add_PropertyChanged(RootSystem.IntPtr pNative, _Windows_Data_PropertyChangedEventArgs_Delegate eventCallback, bool unsubscribe);
186 + public event RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs> PropertyChanged
187 + {
188 + add
189 + {
190 + Helper.EventPump.EnsureInitialized();
191 +
192 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
193 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
194 + lock (callbackList)
195 + {
196 + callbackList.Add(value);
197 + if(callbackList.Count == 1)
198 + {
199 + var del = new _Windows_Data_PropertyChangedEventArgs_Delegate(Windows_Data_PropertyChangedEventArgs_Delegate_Handler);
200 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
201 + Windows_Kinect_DepthFrameReader_add_PropertyChanged(_pNative, del, false);
202 + }
203 + }
204 + }
205 + remove
206 + {
207 + if (_pNative == RootSystem.IntPtr.Zero)
208 + {
209 + return;
210 + }
211 +
212 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
213 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
214 + lock (callbackList)
215 + {
216 + callbackList.Remove(value);
217 + if(callbackList.Count == 0)
218 + {
219 + Windows_Kinect_DepthFrameReader_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
220 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
221 + }
222 + }
223 + }
224 + }
225 +
226 +
227 + // Public Methods
228 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
229 + private static extern RootSystem.IntPtr Windows_Kinect_DepthFrameReader_AcquireLatestFrame(RootSystem.IntPtr pNative);
230 + public Windows.Kinect.DepthFrame AcquireLatestFrame()
231 + {
232 + if (_pNative == RootSystem.IntPtr.Zero)
233 + {
234 + throw new RootSystem.ObjectDisposedException("DepthFrameReader");
235 + }
236 +
237 + RootSystem.IntPtr objectPointer = Windows_Kinect_DepthFrameReader_AcquireLatestFrame(_pNative);
238 + Helper.ExceptionHelper.CheckLastError();
239 + if (objectPointer == RootSystem.IntPtr.Zero)
240 + {
241 + return null;
242 + }
243 +
244 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.DepthFrame>(objectPointer, n => new Windows.Kinect.DepthFrame(n));
245 + }
246 +
247 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
248 + private static extern void Windows_Kinect_DepthFrameReader_Dispose(RootSystem.IntPtr pNative);
249 + public void Dispose()
250 + {
251 + if (_pNative == RootSystem.IntPtr.Zero)
252 + {
253 + return;
254 + }
255 +
256 + Dispose(true);
257 + RootSystem.GC.SuppressFinalize(this);
258 + }
259 +
260 + private void __EventCleanup()
261 + {
262 + {
263 + Windows_Kinect_DepthFrameArrivedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
264 + var callbackList = Windows_Kinect_DepthFrameArrivedEventArgs_Delegate_callbacks[_pNative];
265 + lock (callbackList)
266 + {
267 + if (callbackList.Count > 0)
268 + {
269 + callbackList.Clear();
270 + if (_pNative != RootSystem.IntPtr.Zero)
271 + {
272 + Windows_Kinect_DepthFrameReader_add_FrameArrived(_pNative, Windows_Kinect_DepthFrameArrivedEventArgs_Delegate_Handler, true);
273 + }
274 + _Windows_Kinect_DepthFrameArrivedEventArgs_Delegate_Handle.Free();
275 + }
276 + }
277 + }
278 + {
279 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
280 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
281 + lock (callbackList)
282 + {
283 + if (callbackList.Count > 0)
284 + {
285 + callbackList.Clear();
286 + if (_pNative != RootSystem.IntPtr.Zero)
287 + {
288 + Windows_Kinect_DepthFrameReader_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
289 + }
290 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
291 + }
292 + }
293 + }
294 + }
295 + }
296 +
297 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.DepthFrameReference
8 + //
9 + public sealed partial class DepthFrameReference : Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal DepthFrameReference(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_DepthFrameReference_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~DepthFrameReference()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_DepthFrameReference_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_DepthFrameReference_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<DepthFrameReference>(_pNative);
41 + Windows_Kinect_DepthFrameReference_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern long Windows_Kinect_DepthFrameReference_get_RelativeTime(RootSystem.IntPtr pNative);
50 + public RootSystem.TimeSpan RelativeTime
51 + {
52 + get
53 + {
54 + if (_pNative == RootSystem.IntPtr.Zero)
55 + {
56 + throw new RootSystem.ObjectDisposedException("DepthFrameReference");
57 + }
58 +
59 + return RootSystem.TimeSpan.FromMilliseconds(Windows_Kinect_DepthFrameReference_get_RelativeTime(_pNative));
60 + }
61 + }
62 +
63 +
64 + // Public Methods
65 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
66 + private static extern RootSystem.IntPtr Windows_Kinect_DepthFrameReference_AcquireFrame(RootSystem.IntPtr pNative);
67 + public Windows.Kinect.DepthFrame AcquireFrame()
68 + {
69 + if (_pNative == RootSystem.IntPtr.Zero)
70 + {
71 + throw new RootSystem.ObjectDisposedException("DepthFrameReference");
72 + }
73 +
74 + RootSystem.IntPtr objectPointer = Windows_Kinect_DepthFrameReference_AcquireFrame(_pNative);
75 + Helper.ExceptionHelper.CheckLastError();
76 + if (objectPointer == RootSystem.IntPtr.Zero)
77 + {
78 + return null;
79 + }
80 +
81 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.DepthFrame>(objectPointer, n => new Windows.Kinect.DepthFrame(n));
82 + }
83 +
84 + private void __EventCleanup()
85 + {
86 + }
87 + }
88 +
89 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.DepthFrameSource
8 + //
9 + public sealed partial class DepthFrameSource : Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal DepthFrameSource(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_DepthFrameSource_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~DepthFrameSource()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_DepthFrameSource_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_DepthFrameSource_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<DepthFrameSource>(_pNative);
41 + Windows_Kinect_DepthFrameSource_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern ushort Windows_Kinect_DepthFrameSource_get_DepthMaxReliableDistance(RootSystem.IntPtr pNative);
50 + public ushort DepthMaxReliableDistance
51 + {
52 + get
53 + {
54 + if (_pNative == RootSystem.IntPtr.Zero)
55 + {
56 + throw new RootSystem.ObjectDisposedException("DepthFrameSource");
57 + }
58 +
59 + return Windows_Kinect_DepthFrameSource_get_DepthMaxReliableDistance(_pNative);
60 + }
61 + }
62 +
63 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
64 + private static extern ushort Windows_Kinect_DepthFrameSource_get_DepthMinReliableDistance(RootSystem.IntPtr pNative);
65 + public ushort DepthMinReliableDistance
66 + {
67 + get
68 + {
69 + if (_pNative == RootSystem.IntPtr.Zero)
70 + {
71 + throw new RootSystem.ObjectDisposedException("DepthFrameSource");
72 + }
73 +
74 + return Windows_Kinect_DepthFrameSource_get_DepthMinReliableDistance(_pNative);
75 + }
76 + }
77 +
78 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
79 + private static extern RootSystem.IntPtr Windows_Kinect_DepthFrameSource_get_FrameDescription(RootSystem.IntPtr pNative);
80 + public Windows.Kinect.FrameDescription FrameDescription
81 + {
82 + get
83 + {
84 + if (_pNative == RootSystem.IntPtr.Zero)
85 + {
86 + throw new RootSystem.ObjectDisposedException("DepthFrameSource");
87 + }
88 +
89 + RootSystem.IntPtr objectPointer = Windows_Kinect_DepthFrameSource_get_FrameDescription(_pNative);
90 + Helper.ExceptionHelper.CheckLastError();
91 + if (objectPointer == RootSystem.IntPtr.Zero)
92 + {
93 + return null;
94 + }
95 +
96 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.FrameDescription>(objectPointer, n => new Windows.Kinect.FrameDescription(n));
97 + }
98 + }
99 +
100 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
101 + private static extern bool Windows_Kinect_DepthFrameSource_get_IsActive(RootSystem.IntPtr pNative);
102 + public bool IsActive
103 + {
104 + get
105 + {
106 + if (_pNative == RootSystem.IntPtr.Zero)
107 + {
108 + throw new RootSystem.ObjectDisposedException("DepthFrameSource");
109 + }
110 +
111 + return Windows_Kinect_DepthFrameSource_get_IsActive(_pNative);
112 + }
113 + }
114 +
115 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
116 + private static extern RootSystem.IntPtr Windows_Kinect_DepthFrameSource_get_KinectSensor(RootSystem.IntPtr pNative);
117 + public Windows.Kinect.KinectSensor KinectSensor
118 + {
119 + get
120 + {
121 + if (_pNative == RootSystem.IntPtr.Zero)
122 + {
123 + throw new RootSystem.ObjectDisposedException("DepthFrameSource");
124 + }
125 +
126 + RootSystem.IntPtr objectPointer = Windows_Kinect_DepthFrameSource_get_KinectSensor(_pNative);
127 + Helper.ExceptionHelper.CheckLastError();
128 + if (objectPointer == RootSystem.IntPtr.Zero)
129 + {
130 + return null;
131 + }
132 +
133 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.KinectSensor>(objectPointer, n => new Windows.Kinect.KinectSensor(n));
134 + }
135 + }
136 +
137 +
138 + // Events
139 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Kinect_FrameCapturedEventArgs_Delegate_Handle;
140 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
141 + private delegate void _Windows_Kinect_FrameCapturedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
142 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.FrameCapturedEventArgs>>> Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.FrameCapturedEventArgs>>>();
143 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Kinect_FrameCapturedEventArgs_Delegate))]
144 + private static void Windows_Kinect_FrameCapturedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
145 + {
146 + List<RootSystem.EventHandler<Windows.Kinect.FrameCapturedEventArgs>> callbackList = null;
147 + Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
148 + lock(callbackList)
149 + {
150 + var objThis = Helper.NativeObjectCache.GetObject<DepthFrameSource>(pNative);
151 + var args = new Windows.Kinect.FrameCapturedEventArgs(result);
152 + foreach(var func in callbackList)
153 + {
154 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
155 + }
156 + }
157 + }
158 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
159 + private static extern void Windows_Kinect_DepthFrameSource_add_FrameCaptured(RootSystem.IntPtr pNative, _Windows_Kinect_FrameCapturedEventArgs_Delegate eventCallback, bool unsubscribe);
160 + public event RootSystem.EventHandler<Windows.Kinect.FrameCapturedEventArgs> FrameCaptured
161 + {
162 + add
163 + {
164 + Helper.EventPump.EnsureInitialized();
165 +
166 + Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
167 + var callbackList = Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks[_pNative];
168 + lock (callbackList)
169 + {
170 + callbackList.Add(value);
171 + if(callbackList.Count == 1)
172 + {
173 + var del = new _Windows_Kinect_FrameCapturedEventArgs_Delegate(Windows_Kinect_FrameCapturedEventArgs_Delegate_Handler);
174 + _Windows_Kinect_FrameCapturedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
175 + Windows_Kinect_DepthFrameSource_add_FrameCaptured(_pNative, del, false);
176 + }
177 + }
178 + }
179 + remove
180 + {
181 + if (_pNative == RootSystem.IntPtr.Zero)
182 + {
183 + return;
184 + }
185 +
186 + Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
187 + var callbackList = Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks[_pNative];
188 + lock (callbackList)
189 + {
190 + callbackList.Remove(value);
191 + if(callbackList.Count == 0)
192 + {
193 + Windows_Kinect_DepthFrameSource_add_FrameCaptured(_pNative, Windows_Kinect_FrameCapturedEventArgs_Delegate_Handler, true);
194 + _Windows_Kinect_FrameCapturedEventArgs_Delegate_Handle.Free();
195 + }
196 + }
197 + }
198 + }
199 +
200 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Data_PropertyChangedEventArgs_Delegate_Handle;
201 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
202 + private delegate void _Windows_Data_PropertyChangedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
203 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>> Windows_Data_PropertyChangedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>>();
204 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Data_PropertyChangedEventArgs_Delegate))]
205 + private static void Windows_Data_PropertyChangedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
206 + {
207 + List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>> callbackList = null;
208 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
209 + lock(callbackList)
210 + {
211 + var objThis = Helper.NativeObjectCache.GetObject<DepthFrameSource>(pNative);
212 + var args = new Windows.Data.PropertyChangedEventArgs(result);
213 + foreach(var func in callbackList)
214 + {
215 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
216 + }
217 + }
218 + }
219 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
220 + private static extern void Windows_Kinect_DepthFrameSource_add_PropertyChanged(RootSystem.IntPtr pNative, _Windows_Data_PropertyChangedEventArgs_Delegate eventCallback, bool unsubscribe);
221 + public event RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs> PropertyChanged
222 + {
223 + add
224 + {
225 + Helper.EventPump.EnsureInitialized();
226 +
227 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
228 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
229 + lock (callbackList)
230 + {
231 + callbackList.Add(value);
232 + if(callbackList.Count == 1)
233 + {
234 + var del = new _Windows_Data_PropertyChangedEventArgs_Delegate(Windows_Data_PropertyChangedEventArgs_Delegate_Handler);
235 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
236 + Windows_Kinect_DepthFrameSource_add_PropertyChanged(_pNative, del, false);
237 + }
238 + }
239 + }
240 + remove
241 + {
242 + if (_pNative == RootSystem.IntPtr.Zero)
243 + {
244 + return;
245 + }
246 +
247 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
248 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
249 + lock (callbackList)
250 + {
251 + callbackList.Remove(value);
252 + if(callbackList.Count == 0)
253 + {
254 + Windows_Kinect_DepthFrameSource_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
255 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
256 + }
257 + }
258 + }
259 + }
260 +
261 +
262 + // Public Methods
263 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
264 + private static extern RootSystem.IntPtr Windows_Kinect_DepthFrameSource_OpenReader(RootSystem.IntPtr pNative);
265 + public Windows.Kinect.DepthFrameReader OpenReader()
266 + {
267 + if (_pNative == RootSystem.IntPtr.Zero)
268 + {
269 + throw new RootSystem.ObjectDisposedException("DepthFrameSource");
270 + }
271 +
272 + RootSystem.IntPtr objectPointer = Windows_Kinect_DepthFrameSource_OpenReader(_pNative);
273 + Helper.ExceptionHelper.CheckLastError();
274 + if (objectPointer == RootSystem.IntPtr.Zero)
275 + {
276 + return null;
277 + }
278 +
279 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.DepthFrameReader>(objectPointer, n => new Windows.Kinect.DepthFrameReader(n));
280 + }
281 +
282 + private void __EventCleanup()
283 + {
284 + {
285 + Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
286 + var callbackList = Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks[_pNative];
287 + lock (callbackList)
288 + {
289 + if (callbackList.Count > 0)
290 + {
291 + callbackList.Clear();
292 + if (_pNative != RootSystem.IntPtr.Zero)
293 + {
294 + Windows_Kinect_DepthFrameSource_add_FrameCaptured(_pNative, Windows_Kinect_FrameCapturedEventArgs_Delegate_Handler, true);
295 + }
296 + _Windows_Kinect_FrameCapturedEventArgs_Delegate_Handle.Free();
297 + }
298 + }
299 + }
300 + {
301 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
302 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
303 + lock (callbackList)
304 + {
305 + if (callbackList.Count > 0)
306 + {
307 + callbackList.Clear();
308 + if (_pNative != RootSystem.IntPtr.Zero)
309 + {
310 + Windows_Kinect_DepthFrameSource_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
311 + }
312 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
313 + }
314 + }
315 + }
316 + }
317 + }
318 +
319 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.DepthSpacePoint
8 + //
9 + [RootSystem.Runtime.InteropServices.StructLayout(RootSystem.Runtime.InteropServices.LayoutKind.Sequential)]
10 + public struct DepthSpacePoint
11 + {
12 + public float X { get; set; }
13 + public float Y { get; set; }
14 +
15 + public override int GetHashCode()
16 + {
17 + return X.GetHashCode() ^ Y.GetHashCode();
18 + }
19 +
20 + public override bool Equals(object obj)
21 + {
22 + if (!(obj is DepthSpacePoint))
23 + {
24 + return false;
25 + }
26 +
27 + return this.Equals((DepthSpacePoint)obj);
28 + }
29 +
30 + public bool Equals(DepthSpacePoint obj)
31 + {
32 + return X.Equals(obj.X) && Y.Equals(obj.Y);
33 + }
34 +
35 + public static bool operator ==(DepthSpacePoint a, DepthSpacePoint b)
36 + {
37 + return a.Equals(b);
38 + }
39 +
40 + public static bool operator !=(DepthSpacePoint a, DepthSpacePoint b)
41 + {
42 + return !(a.Equals(b));
43 + }
44 + }
45 +
46 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.DetectionResult
8 + //
9 + public enum DetectionResult : int
10 + {
11 + Unknown =0,
12 + No =1,
13 + Maybe =2,
14 + Yes =3,
15 + }
16 +
17 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.Expression
8 + //
9 + public enum Expression : int
10 + {
11 + Neutral =0,
12 + Happy =1,
13 + }
14 +
15 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.FrameCapturedEventArgs
8 + //
9 + public sealed partial class FrameCapturedEventArgs : RootSystem.EventArgs, Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal FrameCapturedEventArgs(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_FrameCapturedEventArgs_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~FrameCapturedEventArgs()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_FrameCapturedEventArgs_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_FrameCapturedEventArgs_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<FrameCapturedEventArgs>(_pNative);
41 + Windows_Kinect_FrameCapturedEventArgs_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern Windows.Kinect.FrameCapturedStatus Windows_Kinect_FrameCapturedEventArgs_get_FrameStatus(RootSystem.IntPtr pNative);
50 + public Windows.Kinect.FrameCapturedStatus FrameStatus
51 + {
52 + get
53 + {
54 + if (_pNative == RootSystem.IntPtr.Zero)
55 + {
56 + throw new RootSystem.ObjectDisposedException("FrameCapturedEventArgs");
57 + }
58 +
59 + return Windows_Kinect_FrameCapturedEventArgs_get_FrameStatus(_pNative);
60 + }
61 + }
62 +
63 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
64 + private static extern Windows.Kinect.FrameSourceTypes Windows_Kinect_FrameCapturedEventArgs_get_FrameType(RootSystem.IntPtr pNative);
65 + public Windows.Kinect.FrameSourceTypes FrameType
66 + {
67 + get
68 + {
69 + if (_pNative == RootSystem.IntPtr.Zero)
70 + {
71 + throw new RootSystem.ObjectDisposedException("FrameCapturedEventArgs");
72 + }
73 +
74 + return Windows_Kinect_FrameCapturedEventArgs_get_FrameType(_pNative);
75 + }
76 + }
77 +
78 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
79 + private static extern long Windows_Kinect_FrameCapturedEventArgs_get_RelativeTime(RootSystem.IntPtr pNative);
80 + public RootSystem.TimeSpan RelativeTime
81 + {
82 + get
83 + {
84 + if (_pNative == RootSystem.IntPtr.Zero)
85 + {
86 + throw new RootSystem.ObjectDisposedException("FrameCapturedEventArgs");
87 + }
88 +
89 + return RootSystem.TimeSpan.FromMilliseconds(Windows_Kinect_FrameCapturedEventArgs_get_RelativeTime(_pNative));
90 + }
91 + }
92 +
93 + private void __EventCleanup()
94 + {
95 + }
96 + }
97 +
98 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.FrameCapturedStatus
8 + //
9 + public enum FrameCapturedStatus : int
10 + {
11 + Unknown =0,
12 + Queued =1,
13 + Dropped =2,
14 + }
15 +
16 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.FrameDescription
8 + //
9 + public sealed partial class FrameDescription : Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal FrameDescription(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_FrameDescription_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~FrameDescription()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_FrameDescription_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_FrameDescription_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<FrameDescription>(_pNative);
41 + Windows_Kinect_FrameDescription_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern uint Windows_Kinect_FrameDescription_get_BytesPerPixel(RootSystem.IntPtr pNative);
50 + public uint BytesPerPixel
51 + {
52 + get
53 + {
54 + if (_pNative == RootSystem.IntPtr.Zero)
55 + {
56 + throw new RootSystem.ObjectDisposedException("FrameDescription");
57 + }
58 +
59 + return Windows_Kinect_FrameDescription_get_BytesPerPixel(_pNative);
60 + }
61 + }
62 +
63 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
64 + private static extern float Windows_Kinect_FrameDescription_get_DiagonalFieldOfView(RootSystem.IntPtr pNative);
65 + public float DiagonalFieldOfView
66 + {
67 + get
68 + {
69 + if (_pNative == RootSystem.IntPtr.Zero)
70 + {
71 + throw new RootSystem.ObjectDisposedException("FrameDescription");
72 + }
73 +
74 + return Windows_Kinect_FrameDescription_get_DiagonalFieldOfView(_pNative);
75 + }
76 + }
77 +
78 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
79 + private static extern int Windows_Kinect_FrameDescription_get_Height(RootSystem.IntPtr pNative);
80 + public int Height
81 + {
82 + get
83 + {
84 + if (_pNative == RootSystem.IntPtr.Zero)
85 + {
86 + throw new RootSystem.ObjectDisposedException("FrameDescription");
87 + }
88 +
89 + return Windows_Kinect_FrameDescription_get_Height(_pNative);
90 + }
91 + }
92 +
93 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
94 + private static extern float Windows_Kinect_FrameDescription_get_HorizontalFieldOfView(RootSystem.IntPtr pNative);
95 + public float HorizontalFieldOfView
96 + {
97 + get
98 + {
99 + if (_pNative == RootSystem.IntPtr.Zero)
100 + {
101 + throw new RootSystem.ObjectDisposedException("FrameDescription");
102 + }
103 +
104 + return Windows_Kinect_FrameDescription_get_HorizontalFieldOfView(_pNative);
105 + }
106 + }
107 +
108 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
109 + private static extern uint Windows_Kinect_FrameDescription_get_LengthInPixels(RootSystem.IntPtr pNative);
110 + public uint LengthInPixels
111 + {
112 + get
113 + {
114 + if (_pNative == RootSystem.IntPtr.Zero)
115 + {
116 + throw new RootSystem.ObjectDisposedException("FrameDescription");
117 + }
118 +
119 + return Windows_Kinect_FrameDescription_get_LengthInPixels(_pNative);
120 + }
121 + }
122 +
123 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
124 + private static extern float Windows_Kinect_FrameDescription_get_VerticalFieldOfView(RootSystem.IntPtr pNative);
125 + public float VerticalFieldOfView
126 + {
127 + get
128 + {
129 + if (_pNative == RootSystem.IntPtr.Zero)
130 + {
131 + throw new RootSystem.ObjectDisposedException("FrameDescription");
132 + }
133 +
134 + return Windows_Kinect_FrameDescription_get_VerticalFieldOfView(_pNative);
135 + }
136 + }
137 +
138 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
139 + private static extern int Windows_Kinect_FrameDescription_get_Width(RootSystem.IntPtr pNative);
140 + public int Width
141 + {
142 + get
143 + {
144 + if (_pNative == RootSystem.IntPtr.Zero)
145 + {
146 + throw new RootSystem.ObjectDisposedException("FrameDescription");
147 + }
148 +
149 + return Windows_Kinect_FrameDescription_get_Width(_pNative);
150 + }
151 + }
152 +
153 + private void __EventCleanup()
154 + {
155 + }
156 + }
157 +
158 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.FrameEdges
8 + //
9 + [RootSystem.Flags]
10 + public enum FrameEdges : uint
11 + {
12 + None =0,
13 + Right =1,
14 + Left =2,
15 + Top =4,
16 + Bottom =8,
17 + }
18 +
19 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.FrameSourceTypes
8 + //
9 + [RootSystem.Flags]
10 + public enum FrameSourceTypes : uint
11 + {
12 + None =0,
13 + Color =1,
14 + Infrared =2,
15 + LongExposureInfrared =4,
16 + Depth =8,
17 + BodyIndex =16,
18 + Body =32,
19 + Audio =64,
20 + }
21 +
22 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.HandState
8 + //
9 + public enum HandState : int
10 + {
11 + Unknown =0,
12 + NotTracked =1,
13 + Open =2,
14 + Closed =3,
15 + Lasso =4,
16 + }
17 +
18 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.InfraredFrame
8 + //
9 + public sealed partial class InfraredFrame : RootSystem.IDisposable, Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal InfraredFrame(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_InfraredFrame_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~InfraredFrame()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_InfraredFrame_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_InfraredFrame_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<InfraredFrame>(_pNative);
41 +
42 + if (disposing)
43 + {
44 + Windows_Kinect_InfraredFrame_Dispose(_pNative);
45 + }
46 + Windows_Kinect_InfraredFrame_ReleaseObject(ref _pNative);
47 +
48 + _pNative = RootSystem.IntPtr.Zero;
49 + }
50 +
51 +
52 + // Public Properties
53 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
54 + private static extern RootSystem.IntPtr Windows_Kinect_InfraredFrame_get_FrameDescription(RootSystem.IntPtr pNative);
55 + public Windows.Kinect.FrameDescription FrameDescription
56 + {
57 + get
58 + {
59 + if (_pNative == RootSystem.IntPtr.Zero)
60 + {
61 + throw new RootSystem.ObjectDisposedException("InfraredFrame");
62 + }
63 +
64 + RootSystem.IntPtr objectPointer = Windows_Kinect_InfraredFrame_get_FrameDescription(_pNative);
65 + Helper.ExceptionHelper.CheckLastError();
66 + if (objectPointer == RootSystem.IntPtr.Zero)
67 + {
68 + return null;
69 + }
70 +
71 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.FrameDescription>(objectPointer, n => new Windows.Kinect.FrameDescription(n));
72 + }
73 + }
74 +
75 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
76 + private static extern RootSystem.IntPtr Windows_Kinect_InfraredFrame_get_InfraredFrameSource(RootSystem.IntPtr pNative);
77 + public Windows.Kinect.InfraredFrameSource InfraredFrameSource
78 + {
79 + get
80 + {
81 + if (_pNative == RootSystem.IntPtr.Zero)
82 + {
83 + throw new RootSystem.ObjectDisposedException("InfraredFrame");
84 + }
85 +
86 + RootSystem.IntPtr objectPointer = Windows_Kinect_InfraredFrame_get_InfraredFrameSource(_pNative);
87 + Helper.ExceptionHelper.CheckLastError();
88 + if (objectPointer == RootSystem.IntPtr.Zero)
89 + {
90 + return null;
91 + }
92 +
93 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.InfraredFrameSource>(objectPointer, n => new Windows.Kinect.InfraredFrameSource(n));
94 + }
95 + }
96 +
97 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
98 + private static extern long Windows_Kinect_InfraredFrame_get_RelativeTime(RootSystem.IntPtr pNative);
99 + public RootSystem.TimeSpan RelativeTime
100 + {
101 + get
102 + {
103 + if (_pNative == RootSystem.IntPtr.Zero)
104 + {
105 + throw new RootSystem.ObjectDisposedException("InfraredFrame");
106 + }
107 +
108 + return RootSystem.TimeSpan.FromMilliseconds(Windows_Kinect_InfraredFrame_get_RelativeTime(_pNative));
109 + }
110 + }
111 +
112 +
113 + // Public Methods
114 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
115 + private static extern void Windows_Kinect_InfraredFrame_CopyFrameDataToArray(RootSystem.IntPtr pNative, RootSystem.IntPtr frameData, int frameDataSize);
116 + public void CopyFrameDataToArray(ushort[] frameData)
117 + {
118 + if (_pNative == RootSystem.IntPtr.Zero)
119 + {
120 + throw new RootSystem.ObjectDisposedException("InfraredFrame");
121 + }
122 +
123 + var frameDataSmartGCHandle = new Helper.SmartGCHandle(RootSystem.Runtime.InteropServices.GCHandle.Alloc(frameData, RootSystem.Runtime.InteropServices.GCHandleType.Pinned));
124 + var _frameData = frameDataSmartGCHandle.AddrOfPinnedObject();
125 + Windows_Kinect_InfraredFrame_CopyFrameDataToArray(_pNative, _frameData, frameData.Length);
126 + Helper.ExceptionHelper.CheckLastError();
127 + }
128 +
129 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
130 + private static extern void Windows_Kinect_InfraredFrame_Dispose(RootSystem.IntPtr pNative);
131 + public void Dispose()
132 + {
133 + if (_pNative == RootSystem.IntPtr.Zero)
134 + {
135 + return;
136 + }
137 +
138 + Dispose(true);
139 + RootSystem.GC.SuppressFinalize(this);
140 + }
141 +
142 + private void __EventCleanup()
143 + {
144 + }
145 + }
146 +
147 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.InfraredFrameArrivedEventArgs
8 + //
9 + public sealed partial class InfraredFrameArrivedEventArgs : RootSystem.EventArgs, Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal InfraredFrameArrivedEventArgs(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_InfraredFrameArrivedEventArgs_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~InfraredFrameArrivedEventArgs()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_InfraredFrameArrivedEventArgs_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_InfraredFrameArrivedEventArgs_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<InfraredFrameArrivedEventArgs>(_pNative);
41 + Windows_Kinect_InfraredFrameArrivedEventArgs_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern RootSystem.IntPtr Windows_Kinect_InfraredFrameArrivedEventArgs_get_FrameReference(RootSystem.IntPtr pNative);
50 + public Windows.Kinect.InfraredFrameReference FrameReference
51 + {
52 + get
53 + {
54 + if (_pNative == RootSystem.IntPtr.Zero)
55 + {
56 + throw new RootSystem.ObjectDisposedException("InfraredFrameArrivedEventArgs");
57 + }
58 +
59 + RootSystem.IntPtr objectPointer = Windows_Kinect_InfraredFrameArrivedEventArgs_get_FrameReference(_pNative);
60 + Helper.ExceptionHelper.CheckLastError();
61 + if (objectPointer == RootSystem.IntPtr.Zero)
62 + {
63 + return null;
64 + }
65 +
66 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.InfraredFrameReference>(objectPointer, n => new Windows.Kinect.InfraredFrameReference(n));
67 + }
68 + }
69 +
70 + private void __EventCleanup()
71 + {
72 + }
73 + }
74 +
75 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.InfraredFrameReader
8 + //
9 + public sealed partial class InfraredFrameReader : RootSystem.IDisposable, Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal InfraredFrameReader(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_InfraredFrameReader_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~InfraredFrameReader()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_InfraredFrameReader_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_InfraredFrameReader_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<InfraredFrameReader>(_pNative);
41 +
42 + if (disposing)
43 + {
44 + Windows_Kinect_InfraredFrameReader_Dispose(_pNative);
45 + }
46 + Windows_Kinect_InfraredFrameReader_ReleaseObject(ref _pNative);
47 +
48 + _pNative = RootSystem.IntPtr.Zero;
49 + }
50 +
51 +
52 + // Public Properties
53 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
54 + private static extern RootSystem.IntPtr Windows_Kinect_InfraredFrameReader_get_InfraredFrameSource(RootSystem.IntPtr pNative);
55 + public Windows.Kinect.InfraredFrameSource InfraredFrameSource
56 + {
57 + get
58 + {
59 + if (_pNative == RootSystem.IntPtr.Zero)
60 + {
61 + throw new RootSystem.ObjectDisposedException("InfraredFrameReader");
62 + }
63 +
64 + RootSystem.IntPtr objectPointer = Windows_Kinect_InfraredFrameReader_get_InfraredFrameSource(_pNative);
65 + Helper.ExceptionHelper.CheckLastError();
66 + if (objectPointer == RootSystem.IntPtr.Zero)
67 + {
68 + return null;
69 + }
70 +
71 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.InfraredFrameSource>(objectPointer, n => new Windows.Kinect.InfraredFrameSource(n));
72 + }
73 + }
74 +
75 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
76 + private static extern bool Windows_Kinect_InfraredFrameReader_get_IsPaused(RootSystem.IntPtr pNative);
77 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
78 + private static extern void Windows_Kinect_InfraredFrameReader_put_IsPaused(RootSystem.IntPtr pNative, bool isPaused);
79 + public bool IsPaused
80 + {
81 + get
82 + {
83 + if (_pNative == RootSystem.IntPtr.Zero)
84 + {
85 + throw new RootSystem.ObjectDisposedException("InfraredFrameReader");
86 + }
87 +
88 + return Windows_Kinect_InfraredFrameReader_get_IsPaused(_pNative);
89 + }
90 + set
91 + {
92 + if (_pNative == RootSystem.IntPtr.Zero)
93 + {
94 + throw new RootSystem.ObjectDisposedException("InfraredFrameReader");
95 + }
96 +
97 + Windows_Kinect_InfraredFrameReader_put_IsPaused(_pNative, value);
98 + Helper.ExceptionHelper.CheckLastError();
99 + }
100 + }
101 +
102 +
103 + // Events
104 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Kinect_InfraredFrameArrivedEventArgs_Delegate_Handle;
105 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
106 + private delegate void _Windows_Kinect_InfraredFrameArrivedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
107 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.InfraredFrameArrivedEventArgs>>> Windows_Kinect_InfraredFrameArrivedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.InfraredFrameArrivedEventArgs>>>();
108 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Kinect_InfraredFrameArrivedEventArgs_Delegate))]
109 + private static void Windows_Kinect_InfraredFrameArrivedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
110 + {
111 + List<RootSystem.EventHandler<Windows.Kinect.InfraredFrameArrivedEventArgs>> callbackList = null;
112 + Windows_Kinect_InfraredFrameArrivedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
113 + lock(callbackList)
114 + {
115 + var objThis = Helper.NativeObjectCache.GetObject<InfraredFrameReader>(pNative);
116 + var args = new Windows.Kinect.InfraredFrameArrivedEventArgs(result);
117 + foreach(var func in callbackList)
118 + {
119 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
120 + }
121 + }
122 + }
123 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
124 + private static extern void Windows_Kinect_InfraredFrameReader_add_FrameArrived(RootSystem.IntPtr pNative, _Windows_Kinect_InfraredFrameArrivedEventArgs_Delegate eventCallback, bool unsubscribe);
125 + public event RootSystem.EventHandler<Windows.Kinect.InfraredFrameArrivedEventArgs> FrameArrived
126 + {
127 + add
128 + {
129 + Helper.EventPump.EnsureInitialized();
130 +
131 + Windows_Kinect_InfraredFrameArrivedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
132 + var callbackList = Windows_Kinect_InfraredFrameArrivedEventArgs_Delegate_callbacks[_pNative];
133 + lock (callbackList)
134 + {
135 + callbackList.Add(value);
136 + if(callbackList.Count == 1)
137 + {
138 + var del = new _Windows_Kinect_InfraredFrameArrivedEventArgs_Delegate(Windows_Kinect_InfraredFrameArrivedEventArgs_Delegate_Handler);
139 + _Windows_Kinect_InfraredFrameArrivedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
140 + Windows_Kinect_InfraredFrameReader_add_FrameArrived(_pNative, del, false);
141 + }
142 + }
143 + }
144 + remove
145 + {
146 + if (_pNative == RootSystem.IntPtr.Zero)
147 + {
148 + return;
149 + }
150 +
151 + Windows_Kinect_InfraredFrameArrivedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
152 + var callbackList = Windows_Kinect_InfraredFrameArrivedEventArgs_Delegate_callbacks[_pNative];
153 + lock (callbackList)
154 + {
155 + callbackList.Remove(value);
156 + if(callbackList.Count == 0)
157 + {
158 + Windows_Kinect_InfraredFrameReader_add_FrameArrived(_pNative, Windows_Kinect_InfraredFrameArrivedEventArgs_Delegate_Handler, true);
159 + _Windows_Kinect_InfraredFrameArrivedEventArgs_Delegate_Handle.Free();
160 + }
161 + }
162 + }
163 + }
164 +
165 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Data_PropertyChangedEventArgs_Delegate_Handle;
166 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
167 + private delegate void _Windows_Data_PropertyChangedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
168 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>> Windows_Data_PropertyChangedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>>();
169 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Data_PropertyChangedEventArgs_Delegate))]
170 + private static void Windows_Data_PropertyChangedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
171 + {
172 + List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>> callbackList = null;
173 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
174 + lock(callbackList)
175 + {
176 + var objThis = Helper.NativeObjectCache.GetObject<InfraredFrameReader>(pNative);
177 + var args = new Windows.Data.PropertyChangedEventArgs(result);
178 + foreach(var func in callbackList)
179 + {
180 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
181 + }
182 + }
183 + }
184 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
185 + private static extern void Windows_Kinect_InfraredFrameReader_add_PropertyChanged(RootSystem.IntPtr pNative, _Windows_Data_PropertyChangedEventArgs_Delegate eventCallback, bool unsubscribe);
186 + public event RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs> PropertyChanged
187 + {
188 + add
189 + {
190 + Helper.EventPump.EnsureInitialized();
191 +
192 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
193 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
194 + lock (callbackList)
195 + {
196 + callbackList.Add(value);
197 + if(callbackList.Count == 1)
198 + {
199 + var del = new _Windows_Data_PropertyChangedEventArgs_Delegate(Windows_Data_PropertyChangedEventArgs_Delegate_Handler);
200 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
201 + Windows_Kinect_InfraredFrameReader_add_PropertyChanged(_pNative, del, false);
202 + }
203 + }
204 + }
205 + remove
206 + {
207 + if (_pNative == RootSystem.IntPtr.Zero)
208 + {
209 + return;
210 + }
211 +
212 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
213 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
214 + lock (callbackList)
215 + {
216 + callbackList.Remove(value);
217 + if(callbackList.Count == 0)
218 + {
219 + Windows_Kinect_InfraredFrameReader_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
220 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
221 + }
222 + }
223 + }
224 + }
225 +
226 +
227 + // Public Methods
228 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
229 + private static extern RootSystem.IntPtr Windows_Kinect_InfraredFrameReader_AcquireLatestFrame(RootSystem.IntPtr pNative);
230 + public Windows.Kinect.InfraredFrame AcquireLatestFrame()
231 + {
232 + if (_pNative == RootSystem.IntPtr.Zero)
233 + {
234 + throw new RootSystem.ObjectDisposedException("InfraredFrameReader");
235 + }
236 +
237 + RootSystem.IntPtr objectPointer = Windows_Kinect_InfraredFrameReader_AcquireLatestFrame(_pNative);
238 + Helper.ExceptionHelper.CheckLastError();
239 + if (objectPointer == RootSystem.IntPtr.Zero)
240 + {
241 + return null;
242 + }
243 +
244 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.InfraredFrame>(objectPointer, n => new Windows.Kinect.InfraredFrame(n));
245 + }
246 +
247 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
248 + private static extern void Windows_Kinect_InfraredFrameReader_Dispose(RootSystem.IntPtr pNative);
249 + public void Dispose()
250 + {
251 + if (_pNative == RootSystem.IntPtr.Zero)
252 + {
253 + return;
254 + }
255 +
256 + Dispose(true);
257 + RootSystem.GC.SuppressFinalize(this);
258 + }
259 +
260 + private void __EventCleanup()
261 + {
262 + {
263 + Windows_Kinect_InfraredFrameArrivedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
264 + var callbackList = Windows_Kinect_InfraredFrameArrivedEventArgs_Delegate_callbacks[_pNative];
265 + lock (callbackList)
266 + {
267 + if (callbackList.Count > 0)
268 + {
269 + callbackList.Clear();
270 + if (_pNative != RootSystem.IntPtr.Zero)
271 + {
272 + Windows_Kinect_InfraredFrameReader_add_FrameArrived(_pNative, Windows_Kinect_InfraredFrameArrivedEventArgs_Delegate_Handler, true);
273 + }
274 + _Windows_Kinect_InfraredFrameArrivedEventArgs_Delegate_Handle.Free();
275 + }
276 + }
277 + }
278 + {
279 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
280 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
281 + lock (callbackList)
282 + {
283 + if (callbackList.Count > 0)
284 + {
285 + callbackList.Clear();
286 + if (_pNative != RootSystem.IntPtr.Zero)
287 + {
288 + Windows_Kinect_InfraredFrameReader_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
289 + }
290 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
291 + }
292 + }
293 + }
294 + }
295 + }
296 +
297 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.InfraredFrameReference
8 + //
9 + public sealed partial class InfraredFrameReference : Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal InfraredFrameReference(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_InfraredFrameReference_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~InfraredFrameReference()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_InfraredFrameReference_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_InfraredFrameReference_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<InfraredFrameReference>(_pNative);
41 + Windows_Kinect_InfraredFrameReference_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern long Windows_Kinect_InfraredFrameReference_get_RelativeTime(RootSystem.IntPtr pNative);
50 + public RootSystem.TimeSpan RelativeTime
51 + {
52 + get
53 + {
54 + if (_pNative == RootSystem.IntPtr.Zero)
55 + {
56 + throw new RootSystem.ObjectDisposedException("InfraredFrameReference");
57 + }
58 +
59 + return RootSystem.TimeSpan.FromMilliseconds(Windows_Kinect_InfraredFrameReference_get_RelativeTime(_pNative));
60 + }
61 + }
62 +
63 +
64 + // Public Methods
65 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
66 + private static extern RootSystem.IntPtr Windows_Kinect_InfraredFrameReference_AcquireFrame(RootSystem.IntPtr pNative);
67 + public Windows.Kinect.InfraredFrame AcquireFrame()
68 + {
69 + if (_pNative == RootSystem.IntPtr.Zero)
70 + {
71 + throw new RootSystem.ObjectDisposedException("InfraredFrameReference");
72 + }
73 +
74 + RootSystem.IntPtr objectPointer = Windows_Kinect_InfraredFrameReference_AcquireFrame(_pNative);
75 + Helper.ExceptionHelper.CheckLastError();
76 + if (objectPointer == RootSystem.IntPtr.Zero)
77 + {
78 + return null;
79 + }
80 +
81 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.InfraredFrame>(objectPointer, n => new Windows.Kinect.InfraredFrame(n));
82 + }
83 +
84 + private void __EventCleanup()
85 + {
86 + }
87 + }
88 +
89 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.InfraredFrameSource
8 + //
9 + public sealed partial class InfraredFrameSource : Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal InfraredFrameSource(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_InfraredFrameSource_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~InfraredFrameSource()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_InfraredFrameSource_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_InfraredFrameSource_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<InfraredFrameSource>(_pNative);
41 + Windows_Kinect_InfraredFrameSource_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern RootSystem.IntPtr Windows_Kinect_InfraredFrameSource_get_FrameDescription(RootSystem.IntPtr pNative);
50 + public Windows.Kinect.FrameDescription FrameDescription
51 + {
52 + get
53 + {
54 + if (_pNative == RootSystem.IntPtr.Zero)
55 + {
56 + throw new RootSystem.ObjectDisposedException("InfraredFrameSource");
57 + }
58 +
59 + RootSystem.IntPtr objectPointer = Windows_Kinect_InfraredFrameSource_get_FrameDescription(_pNative);
60 + Helper.ExceptionHelper.CheckLastError();
61 + if (objectPointer == RootSystem.IntPtr.Zero)
62 + {
63 + return null;
64 + }
65 +
66 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.FrameDescription>(objectPointer, n => new Windows.Kinect.FrameDescription(n));
67 + }
68 + }
69 +
70 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
71 + private static extern bool Windows_Kinect_InfraredFrameSource_get_IsActive(RootSystem.IntPtr pNative);
72 + public bool IsActive
73 + {
74 + get
75 + {
76 + if (_pNative == RootSystem.IntPtr.Zero)
77 + {
78 + throw new RootSystem.ObjectDisposedException("InfraredFrameSource");
79 + }
80 +
81 + return Windows_Kinect_InfraredFrameSource_get_IsActive(_pNative);
82 + }
83 + }
84 +
85 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
86 + private static extern RootSystem.IntPtr Windows_Kinect_InfraredFrameSource_get_KinectSensor(RootSystem.IntPtr pNative);
87 + public Windows.Kinect.KinectSensor KinectSensor
88 + {
89 + get
90 + {
91 + if (_pNative == RootSystem.IntPtr.Zero)
92 + {
93 + throw new RootSystem.ObjectDisposedException("InfraredFrameSource");
94 + }
95 +
96 + RootSystem.IntPtr objectPointer = Windows_Kinect_InfraredFrameSource_get_KinectSensor(_pNative);
97 + Helper.ExceptionHelper.CheckLastError();
98 + if (objectPointer == RootSystem.IntPtr.Zero)
99 + {
100 + return null;
101 + }
102 +
103 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.KinectSensor>(objectPointer, n => new Windows.Kinect.KinectSensor(n));
104 + }
105 + }
106 +
107 +
108 + // Events
109 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Kinect_FrameCapturedEventArgs_Delegate_Handle;
110 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
111 + private delegate void _Windows_Kinect_FrameCapturedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
112 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.FrameCapturedEventArgs>>> Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.FrameCapturedEventArgs>>>();
113 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Kinect_FrameCapturedEventArgs_Delegate))]
114 + private static void Windows_Kinect_FrameCapturedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
115 + {
116 + List<RootSystem.EventHandler<Windows.Kinect.FrameCapturedEventArgs>> callbackList = null;
117 + Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
118 + lock(callbackList)
119 + {
120 + var objThis = Helper.NativeObjectCache.GetObject<InfraredFrameSource>(pNative);
121 + var args = new Windows.Kinect.FrameCapturedEventArgs(result);
122 + foreach(var func in callbackList)
123 + {
124 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
125 + }
126 + }
127 + }
128 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
129 + private static extern void Windows_Kinect_InfraredFrameSource_add_FrameCaptured(RootSystem.IntPtr pNative, _Windows_Kinect_FrameCapturedEventArgs_Delegate eventCallback, bool unsubscribe);
130 + public event RootSystem.EventHandler<Windows.Kinect.FrameCapturedEventArgs> FrameCaptured
131 + {
132 + add
133 + {
134 + Helper.EventPump.EnsureInitialized();
135 +
136 + Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
137 + var callbackList = Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks[_pNative];
138 + lock (callbackList)
139 + {
140 + callbackList.Add(value);
141 + if(callbackList.Count == 1)
142 + {
143 + var del = new _Windows_Kinect_FrameCapturedEventArgs_Delegate(Windows_Kinect_FrameCapturedEventArgs_Delegate_Handler);
144 + _Windows_Kinect_FrameCapturedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
145 + Windows_Kinect_InfraredFrameSource_add_FrameCaptured(_pNative, del, false);
146 + }
147 + }
148 + }
149 + remove
150 + {
151 + if (_pNative == RootSystem.IntPtr.Zero)
152 + {
153 + return;
154 + }
155 +
156 + Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
157 + var callbackList = Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks[_pNative];
158 + lock (callbackList)
159 + {
160 + callbackList.Remove(value);
161 + if(callbackList.Count == 0)
162 + {
163 + Windows_Kinect_InfraredFrameSource_add_FrameCaptured(_pNative, Windows_Kinect_FrameCapturedEventArgs_Delegate_Handler, true);
164 + _Windows_Kinect_FrameCapturedEventArgs_Delegate_Handle.Free();
165 + }
166 + }
167 + }
168 + }
169 +
170 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Data_PropertyChangedEventArgs_Delegate_Handle;
171 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
172 + private delegate void _Windows_Data_PropertyChangedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
173 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>> Windows_Data_PropertyChangedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>>();
174 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Data_PropertyChangedEventArgs_Delegate))]
175 + private static void Windows_Data_PropertyChangedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
176 + {
177 + List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>> callbackList = null;
178 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
179 + lock(callbackList)
180 + {
181 + var objThis = Helper.NativeObjectCache.GetObject<InfraredFrameSource>(pNative);
182 + var args = new Windows.Data.PropertyChangedEventArgs(result);
183 + foreach(var func in callbackList)
184 + {
185 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
186 + }
187 + }
188 + }
189 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
190 + private static extern void Windows_Kinect_InfraredFrameSource_add_PropertyChanged(RootSystem.IntPtr pNative, _Windows_Data_PropertyChangedEventArgs_Delegate eventCallback, bool unsubscribe);
191 + public event RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs> PropertyChanged
192 + {
193 + add
194 + {
195 + Helper.EventPump.EnsureInitialized();
196 +
197 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
198 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
199 + lock (callbackList)
200 + {
201 + callbackList.Add(value);
202 + if(callbackList.Count == 1)
203 + {
204 + var del = new _Windows_Data_PropertyChangedEventArgs_Delegate(Windows_Data_PropertyChangedEventArgs_Delegate_Handler);
205 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
206 + Windows_Kinect_InfraredFrameSource_add_PropertyChanged(_pNative, del, false);
207 + }
208 + }
209 + }
210 + remove
211 + {
212 + if (_pNative == RootSystem.IntPtr.Zero)
213 + {
214 + return;
215 + }
216 +
217 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
218 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
219 + lock (callbackList)
220 + {
221 + callbackList.Remove(value);
222 + if(callbackList.Count == 0)
223 + {
224 + Windows_Kinect_InfraredFrameSource_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
225 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
226 + }
227 + }
228 + }
229 + }
230 +
231 +
232 + // Public Methods
233 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
234 + private static extern RootSystem.IntPtr Windows_Kinect_InfraredFrameSource_OpenReader(RootSystem.IntPtr pNative);
235 + public Windows.Kinect.InfraredFrameReader OpenReader()
236 + {
237 + if (_pNative == RootSystem.IntPtr.Zero)
238 + {
239 + throw new RootSystem.ObjectDisposedException("InfraredFrameSource");
240 + }
241 +
242 + RootSystem.IntPtr objectPointer = Windows_Kinect_InfraredFrameSource_OpenReader(_pNative);
243 + Helper.ExceptionHelper.CheckLastError();
244 + if (objectPointer == RootSystem.IntPtr.Zero)
245 + {
246 + return null;
247 + }
248 +
249 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.InfraredFrameReader>(objectPointer, n => new Windows.Kinect.InfraredFrameReader(n));
250 + }
251 +
252 + private void __EventCleanup()
253 + {
254 + {
255 + Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
256 + var callbackList = Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks[_pNative];
257 + lock (callbackList)
258 + {
259 + if (callbackList.Count > 0)
260 + {
261 + callbackList.Clear();
262 + if (_pNative != RootSystem.IntPtr.Zero)
263 + {
264 + Windows_Kinect_InfraredFrameSource_add_FrameCaptured(_pNative, Windows_Kinect_FrameCapturedEventArgs_Delegate_Handler, true);
265 + }
266 + _Windows_Kinect_FrameCapturedEventArgs_Delegate_Handle.Free();
267 + }
268 + }
269 + }
270 + {
271 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
272 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
273 + lock (callbackList)
274 + {
275 + if (callbackList.Count > 0)
276 + {
277 + callbackList.Clear();
278 + if (_pNative != RootSystem.IntPtr.Zero)
279 + {
280 + Windows_Kinect_InfraredFrameSource_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
281 + }
282 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
283 + }
284 + }
285 + }
286 + }
287 + }
288 +
289 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.IsAvailableChangedEventArgs
8 + //
9 + public sealed partial class IsAvailableChangedEventArgs : RootSystem.EventArgs, Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal IsAvailableChangedEventArgs(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_IsAvailableChangedEventArgs_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~IsAvailableChangedEventArgs()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_IsAvailableChangedEventArgs_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_IsAvailableChangedEventArgs_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<IsAvailableChangedEventArgs>(_pNative);
41 + Windows_Kinect_IsAvailableChangedEventArgs_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern bool Windows_Kinect_IsAvailableChangedEventArgs_get_IsAvailable(RootSystem.IntPtr pNative);
50 + public bool IsAvailable
51 + {
52 + get
53 + {
54 + if (_pNative == RootSystem.IntPtr.Zero)
55 + {
56 + throw new RootSystem.ObjectDisposedException("IsAvailableChangedEventArgs");
57 + }
58 +
59 + return Windows_Kinect_IsAvailableChangedEventArgs_get_IsAvailable(_pNative);
60 + }
61 + }
62 +
63 + private void __EventCleanup()
64 + {
65 + }
66 + }
67 +
68 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.Joint
8 + //
9 + [RootSystem.Runtime.InteropServices.StructLayout(RootSystem.Runtime.InteropServices.LayoutKind.Sequential)]
10 + public struct Joint
11 + {
12 + public Windows.Kinect.JointType JointType { get; set; }
13 + public Windows.Kinect.CameraSpacePoint Position { get; set; }
14 + public Windows.Kinect.TrackingState TrackingState { get; set; }
15 +
16 + public override int GetHashCode()
17 + {
18 + return JointType.GetHashCode() ^ Position.GetHashCode() ^ TrackingState.GetHashCode();
19 + }
20 +
21 + public override bool Equals(object obj)
22 + {
23 + if (!(obj is Joint))
24 + {
25 + return false;
26 + }
27 +
28 + return this.Equals((Joint)obj);
29 + }
30 +
31 + public bool Equals(Joint obj)
32 + {
33 + return JointType.Equals(obj.JointType) && Position.Equals(obj.Position) && TrackingState.Equals(obj.TrackingState);
34 + }
35 +
36 + public static bool operator ==(Joint a, Joint b)
37 + {
38 + return a.Equals(b);
39 + }
40 +
41 + public static bool operator !=(Joint a, Joint b)
42 + {
43 + return !(a.Equals(b));
44 + }
45 + }
46 +
47 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.JointOrientation
8 + //
9 + [RootSystem.Runtime.InteropServices.StructLayout(RootSystem.Runtime.InteropServices.LayoutKind.Sequential)]
10 + public struct JointOrientation
11 + {
12 + public Windows.Kinect.JointType JointType { get; set; }
13 + public Windows.Kinect.Vector4 Orientation { get; set; }
14 +
15 + public override int GetHashCode()
16 + {
17 + return JointType.GetHashCode() ^ Orientation.GetHashCode();
18 + }
19 +
20 + public override bool Equals(object obj)
21 + {
22 + if (!(obj is JointOrientation))
23 + {
24 + return false;
25 + }
26 +
27 + return this.Equals((JointOrientation)obj);
28 + }
29 +
30 + public bool Equals(JointOrientation obj)
31 + {
32 + return JointType.Equals(obj.JointType) && Orientation.Equals(obj.Orientation);
33 + }
34 +
35 + public static bool operator ==(JointOrientation a, JointOrientation b)
36 + {
37 + return a.Equals(b);
38 + }
39 +
40 + public static bool operator !=(JointOrientation a, JointOrientation b)
41 + {
42 + return !(a.Equals(b));
43 + }
44 + }
45 +
46 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.JointType
8 + //
9 + public enum JointType : int
10 + {
11 + SpineBase =0,
12 + SpineMid =1,
13 + Neck =2,
14 + Head =3,
15 + ShoulderLeft =4,
16 + ElbowLeft =5,
17 + WristLeft =6,
18 + HandLeft =7,
19 + ShoulderRight =8,
20 + ElbowRight =9,
21 + WristRight =10,
22 + HandRight =11,
23 + HipLeft =12,
24 + KneeLeft =13,
25 + AnkleLeft =14,
26 + FootLeft =15,
27 + HipRight =16,
28 + KneeRight =17,
29 + AnkleRight =18,
30 + FootRight =19,
31 + SpineShoulder =20,
32 + HandTipLeft =21,
33 + ThumbLeft =22,
34 + HandTipRight =23,
35 + ThumbRight =24,
36 + }
37 +
38 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.KinectAudioCalibrationState
8 + //
9 + public enum KinectAudioCalibrationState : int
10 + {
11 + Unknown =0,
12 + CalibrationRequired =1,
13 + Calibrated =2,
14 + }
15 +
16 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.KinectCapabilities
8 + //
9 + [RootSystem.Flags]
10 + public enum KinectCapabilities : uint
11 + {
12 + None =0,
13 + Vision =1,
14 + Audio =2,
15 + Face =4,
16 + Expressions =8,
17 + Gamechat =16,
18 + }
19 +
20 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.KinectSensor
8 + //
9 + public sealed partial class KinectSensor : Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal KinectSensor(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_KinectSensor_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~KinectSensor()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_KinectSensor_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_KinectSensor_AddRefObject(ref RootSystem.IntPtr pNative);
31 +
32 + // Public Properties
33 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
34 + private static extern RootSystem.IntPtr Windows_Kinect_KinectSensor_get_AudioSource(RootSystem.IntPtr pNative);
35 + public Windows.Kinect.AudioSource AudioSource
36 + {
37 + get
38 + {
39 + if (_pNative == RootSystem.IntPtr.Zero)
40 + {
41 + throw new RootSystem.ObjectDisposedException("KinectSensor");
42 + }
43 +
44 + RootSystem.IntPtr objectPointer = Windows_Kinect_KinectSensor_get_AudioSource(_pNative);
45 + Helper.ExceptionHelper.CheckLastError();
46 + if (objectPointer == RootSystem.IntPtr.Zero)
47 + {
48 + return null;
49 + }
50 +
51 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.AudioSource>(objectPointer, n => new Windows.Kinect.AudioSource(n));
52 + }
53 + }
54 +
55 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
56 + private static extern RootSystem.IntPtr Windows_Kinect_KinectSensor_get_BodyFrameSource(RootSystem.IntPtr pNative);
57 + public Windows.Kinect.BodyFrameSource BodyFrameSource
58 + {
59 + get
60 + {
61 + if (_pNative == RootSystem.IntPtr.Zero)
62 + {
63 + throw new RootSystem.ObjectDisposedException("KinectSensor");
64 + }
65 +
66 + RootSystem.IntPtr objectPointer = Windows_Kinect_KinectSensor_get_BodyFrameSource(_pNative);
67 + Helper.ExceptionHelper.CheckLastError();
68 + if (objectPointer == RootSystem.IntPtr.Zero)
69 + {
70 + return null;
71 + }
72 +
73 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.BodyFrameSource>(objectPointer, n => new Windows.Kinect.BodyFrameSource(n));
74 + }
75 + }
76 +
77 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
78 + private static extern RootSystem.IntPtr Windows_Kinect_KinectSensor_get_BodyIndexFrameSource(RootSystem.IntPtr pNative);
79 + public Windows.Kinect.BodyIndexFrameSource BodyIndexFrameSource
80 + {
81 + get
82 + {
83 + if (_pNative == RootSystem.IntPtr.Zero)
84 + {
85 + throw new RootSystem.ObjectDisposedException("KinectSensor");
86 + }
87 +
88 + RootSystem.IntPtr objectPointer = Windows_Kinect_KinectSensor_get_BodyIndexFrameSource(_pNative);
89 + Helper.ExceptionHelper.CheckLastError();
90 + if (objectPointer == RootSystem.IntPtr.Zero)
91 + {
92 + return null;
93 + }
94 +
95 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.BodyIndexFrameSource>(objectPointer, n => new Windows.Kinect.BodyIndexFrameSource(n));
96 + }
97 + }
98 +
99 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
100 + private static extern RootSystem.IntPtr Windows_Kinect_KinectSensor_get_ColorFrameSource(RootSystem.IntPtr pNative);
101 + public Windows.Kinect.ColorFrameSource ColorFrameSource
102 + {
103 + get
104 + {
105 + if (_pNative == RootSystem.IntPtr.Zero)
106 + {
107 + throw new RootSystem.ObjectDisposedException("KinectSensor");
108 + }
109 +
110 + RootSystem.IntPtr objectPointer = Windows_Kinect_KinectSensor_get_ColorFrameSource(_pNative);
111 + Helper.ExceptionHelper.CheckLastError();
112 + if (objectPointer == RootSystem.IntPtr.Zero)
113 + {
114 + return null;
115 + }
116 +
117 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.ColorFrameSource>(objectPointer, n => new Windows.Kinect.ColorFrameSource(n));
118 + }
119 + }
120 +
121 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
122 + private static extern RootSystem.IntPtr Windows_Kinect_KinectSensor_get_CoordinateMapper(RootSystem.IntPtr pNative);
123 + public Windows.Kinect.CoordinateMapper CoordinateMapper
124 + {
125 + get
126 + {
127 + if (_pNative == RootSystem.IntPtr.Zero)
128 + {
129 + throw new RootSystem.ObjectDisposedException("KinectSensor");
130 + }
131 +
132 + RootSystem.IntPtr objectPointer = Windows_Kinect_KinectSensor_get_CoordinateMapper(_pNative);
133 + Helper.ExceptionHelper.CheckLastError();
134 + if (objectPointer == RootSystem.IntPtr.Zero)
135 + {
136 + return null;
137 + }
138 +
139 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.CoordinateMapper>(objectPointer, n => new Windows.Kinect.CoordinateMapper(n));
140 + }
141 + }
142 +
143 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
144 + private static extern RootSystem.IntPtr Windows_Kinect_KinectSensor_get_DepthFrameSource(RootSystem.IntPtr pNative);
145 + public Windows.Kinect.DepthFrameSource DepthFrameSource
146 + {
147 + get
148 + {
149 + if (_pNative == RootSystem.IntPtr.Zero)
150 + {
151 + throw new RootSystem.ObjectDisposedException("KinectSensor");
152 + }
153 +
154 + RootSystem.IntPtr objectPointer = Windows_Kinect_KinectSensor_get_DepthFrameSource(_pNative);
155 + Helper.ExceptionHelper.CheckLastError();
156 + if (objectPointer == RootSystem.IntPtr.Zero)
157 + {
158 + return null;
159 + }
160 +
161 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.DepthFrameSource>(objectPointer, n => new Windows.Kinect.DepthFrameSource(n));
162 + }
163 + }
164 +
165 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
166 + private static extern RootSystem.IntPtr Windows_Kinect_KinectSensor_get_InfraredFrameSource(RootSystem.IntPtr pNative);
167 + public Windows.Kinect.InfraredFrameSource InfraredFrameSource
168 + {
169 + get
170 + {
171 + if (_pNative == RootSystem.IntPtr.Zero)
172 + {
173 + throw new RootSystem.ObjectDisposedException("KinectSensor");
174 + }
175 +
176 + RootSystem.IntPtr objectPointer = Windows_Kinect_KinectSensor_get_InfraredFrameSource(_pNative);
177 + Helper.ExceptionHelper.CheckLastError();
178 + if (objectPointer == RootSystem.IntPtr.Zero)
179 + {
180 + return null;
181 + }
182 +
183 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.InfraredFrameSource>(objectPointer, n => new Windows.Kinect.InfraredFrameSource(n));
184 + }
185 + }
186 +
187 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
188 + private static extern bool Windows_Kinect_KinectSensor_get_IsAvailable(RootSystem.IntPtr pNative);
189 + public bool IsAvailable
190 + {
191 + get
192 + {
193 + if (_pNative == RootSystem.IntPtr.Zero)
194 + {
195 + throw new RootSystem.ObjectDisposedException("KinectSensor");
196 + }
197 +
198 + return Windows_Kinect_KinectSensor_get_IsAvailable(_pNative);
199 + }
200 + }
201 +
202 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
203 + private static extern bool Windows_Kinect_KinectSensor_get_IsOpen(RootSystem.IntPtr pNative);
204 + public bool IsOpen
205 + {
206 + get
207 + {
208 + if (_pNative == RootSystem.IntPtr.Zero)
209 + {
210 + throw new RootSystem.ObjectDisposedException("KinectSensor");
211 + }
212 +
213 + return Windows_Kinect_KinectSensor_get_IsOpen(_pNative);
214 + }
215 + }
216 +
217 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
218 + private static extern Windows.Kinect.KinectCapabilities Windows_Kinect_KinectSensor_get_KinectCapabilities(RootSystem.IntPtr pNative);
219 + public Windows.Kinect.KinectCapabilities KinectCapabilities
220 + {
221 + get
222 + {
223 + if (_pNative == RootSystem.IntPtr.Zero)
224 + {
225 + throw new RootSystem.ObjectDisposedException("KinectSensor");
226 + }
227 +
228 + return Windows_Kinect_KinectSensor_get_KinectCapabilities(_pNative);
229 + }
230 + }
231 +
232 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
233 + private static extern RootSystem.IntPtr Windows_Kinect_KinectSensor_get_LongExposureInfraredFrameSource(RootSystem.IntPtr pNative);
234 + public Windows.Kinect.LongExposureInfraredFrameSource LongExposureInfraredFrameSource
235 + {
236 + get
237 + {
238 + if (_pNative == RootSystem.IntPtr.Zero)
239 + {
240 + throw new RootSystem.ObjectDisposedException("KinectSensor");
241 + }
242 +
243 + RootSystem.IntPtr objectPointer = Windows_Kinect_KinectSensor_get_LongExposureInfraredFrameSource(_pNative);
244 + Helper.ExceptionHelper.CheckLastError();
245 + if (objectPointer == RootSystem.IntPtr.Zero)
246 + {
247 + return null;
248 + }
249 +
250 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.LongExposureInfraredFrameSource>(objectPointer, n => new Windows.Kinect.LongExposureInfraredFrameSource(n));
251 + }
252 + }
253 +
254 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
255 + private static extern RootSystem.IntPtr Windows_Kinect_KinectSensor_get_UniqueKinectId(RootSystem.IntPtr pNative);
256 + public string UniqueKinectId
257 + {
258 + get
259 + {
260 + if (_pNative == RootSystem.IntPtr.Zero)
261 + {
262 + throw new RootSystem.ObjectDisposedException("KinectSensor");
263 + }
264 +
265 + RootSystem.IntPtr objectPointer = Windows_Kinect_KinectSensor_get_UniqueKinectId(_pNative);
266 + Helper.ExceptionHelper.CheckLastError();
267 +
268 + var managedString = RootSystem.Runtime.InteropServices.Marshal.PtrToStringUni(objectPointer);
269 + RootSystem.Runtime.InteropServices.Marshal.FreeCoTaskMem(objectPointer);
270 + return managedString;
271 + }
272 + }
273 +
274 +
275 + // Events
276 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Kinect_IsAvailableChangedEventArgs_Delegate_Handle;
277 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
278 + private delegate void _Windows_Kinect_IsAvailableChangedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
279 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.IsAvailableChangedEventArgs>>> Windows_Kinect_IsAvailableChangedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.IsAvailableChangedEventArgs>>>();
280 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Kinect_IsAvailableChangedEventArgs_Delegate))]
281 + private static void Windows_Kinect_IsAvailableChangedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
282 + {
283 + List<RootSystem.EventHandler<Windows.Kinect.IsAvailableChangedEventArgs>> callbackList = null;
284 + Windows_Kinect_IsAvailableChangedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
285 + lock(callbackList)
286 + {
287 + var objThis = Helper.NativeObjectCache.GetObject<KinectSensor>(pNative);
288 + var args = new Windows.Kinect.IsAvailableChangedEventArgs(result);
289 + foreach(var func in callbackList)
290 + {
291 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
292 + }
293 + }
294 + }
295 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
296 + private static extern void Windows_Kinect_KinectSensor_add_IsAvailableChanged(RootSystem.IntPtr pNative, _Windows_Kinect_IsAvailableChangedEventArgs_Delegate eventCallback, bool unsubscribe);
297 + public event RootSystem.EventHandler<Windows.Kinect.IsAvailableChangedEventArgs> IsAvailableChanged
298 + {
299 + add
300 + {
301 + Helper.EventPump.EnsureInitialized();
302 +
303 + Windows_Kinect_IsAvailableChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
304 + var callbackList = Windows_Kinect_IsAvailableChangedEventArgs_Delegate_callbacks[_pNative];
305 + lock (callbackList)
306 + {
307 + callbackList.Add(value);
308 + if(callbackList.Count == 1)
309 + {
310 + var del = new _Windows_Kinect_IsAvailableChangedEventArgs_Delegate(Windows_Kinect_IsAvailableChangedEventArgs_Delegate_Handler);
311 + _Windows_Kinect_IsAvailableChangedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
312 + Windows_Kinect_KinectSensor_add_IsAvailableChanged(_pNative, del, false);
313 + }
314 + }
315 + }
316 + remove
317 + {
318 + if (_pNative == RootSystem.IntPtr.Zero)
319 + {
320 + return;
321 + }
322 +
323 + Windows_Kinect_IsAvailableChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
324 + var callbackList = Windows_Kinect_IsAvailableChangedEventArgs_Delegate_callbacks[_pNative];
325 + lock (callbackList)
326 + {
327 + callbackList.Remove(value);
328 + if(callbackList.Count == 0)
329 + {
330 + Windows_Kinect_KinectSensor_add_IsAvailableChanged(_pNative, Windows_Kinect_IsAvailableChangedEventArgs_Delegate_Handler, true);
331 + _Windows_Kinect_IsAvailableChangedEventArgs_Delegate_Handle.Free();
332 + }
333 + }
334 + }
335 + }
336 +
337 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Data_PropertyChangedEventArgs_Delegate_Handle;
338 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
339 + private delegate void _Windows_Data_PropertyChangedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
340 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>> Windows_Data_PropertyChangedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>>();
341 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Data_PropertyChangedEventArgs_Delegate))]
342 + private static void Windows_Data_PropertyChangedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
343 + {
344 + List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>> callbackList = null;
345 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
346 + lock(callbackList)
347 + {
348 + var objThis = Helper.NativeObjectCache.GetObject<KinectSensor>(pNative);
349 + var args = new Windows.Data.PropertyChangedEventArgs(result);
350 + foreach(var func in callbackList)
351 + {
352 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
353 + }
354 + }
355 + }
356 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
357 + private static extern void Windows_Kinect_KinectSensor_add_PropertyChanged(RootSystem.IntPtr pNative, _Windows_Data_PropertyChangedEventArgs_Delegate eventCallback, bool unsubscribe);
358 + public event RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs> PropertyChanged
359 + {
360 + add
361 + {
362 + Helper.EventPump.EnsureInitialized();
363 +
364 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
365 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
366 + lock (callbackList)
367 + {
368 + callbackList.Add(value);
369 + if(callbackList.Count == 1)
370 + {
371 + var del = new _Windows_Data_PropertyChangedEventArgs_Delegate(Windows_Data_PropertyChangedEventArgs_Delegate_Handler);
372 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
373 + Windows_Kinect_KinectSensor_add_PropertyChanged(_pNative, del, false);
374 + }
375 + }
376 + }
377 + remove
378 + {
379 + if (_pNative == RootSystem.IntPtr.Zero)
380 + {
381 + return;
382 + }
383 +
384 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
385 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
386 + lock (callbackList)
387 + {
388 + callbackList.Remove(value);
389 + if(callbackList.Count == 0)
390 + {
391 + Windows_Kinect_KinectSensor_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
392 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
393 + }
394 + }
395 + }
396 + }
397 +
398 +
399 + // Static Methods
400 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
401 + private static extern RootSystem.IntPtr Windows_Kinect_KinectSensor_GetDefault();
402 + public static Windows.Kinect.KinectSensor GetDefault()
403 + {
404 + RootSystem.IntPtr objectPointer = Windows_Kinect_KinectSensor_GetDefault();
405 + Helper.ExceptionHelper.CheckLastError();
406 + if (objectPointer == RootSystem.IntPtr.Zero)
407 + {
408 + return null;
409 + }
410 +
411 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.KinectSensor>(objectPointer, n => new Windows.Kinect.KinectSensor(n));
412 + }
413 +
414 +
415 + // Public Methods
416 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
417 + private static extern void Windows_Kinect_KinectSensor_Open(RootSystem.IntPtr pNative);
418 + public void Open()
419 + {
420 + if (_pNative == RootSystem.IntPtr.Zero)
421 + {
422 + throw new RootSystem.ObjectDisposedException("KinectSensor");
423 + }
424 +
425 + Windows_Kinect_KinectSensor_Open(_pNative);
426 + Helper.ExceptionHelper.CheckLastError();
427 + }
428 +
429 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
430 + private static extern void Windows_Kinect_KinectSensor_Close(RootSystem.IntPtr pNative);
431 + public void Close()
432 + {
433 + if (_pNative == RootSystem.IntPtr.Zero)
434 + {
435 + throw new RootSystem.ObjectDisposedException("KinectSensor");
436 + }
437 +
438 + Windows_Kinect_KinectSensor_Close(_pNative);
439 + Helper.ExceptionHelper.CheckLastError();
440 + }
441 +
442 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
443 + private static extern RootSystem.IntPtr Windows_Kinect_KinectSensor_OpenMultiSourceFrameReader(RootSystem.IntPtr pNative, Windows.Kinect.FrameSourceTypes enabledFrameSourceTypes);
444 + public Windows.Kinect.MultiSourceFrameReader OpenMultiSourceFrameReader(Windows.Kinect.FrameSourceTypes enabledFrameSourceTypes)
445 + {
446 + if (_pNative == RootSystem.IntPtr.Zero)
447 + {
448 + throw new RootSystem.ObjectDisposedException("KinectSensor");
449 + }
450 +
451 + RootSystem.IntPtr objectPointer = Windows_Kinect_KinectSensor_OpenMultiSourceFrameReader(_pNative, enabledFrameSourceTypes);
452 + Helper.ExceptionHelper.CheckLastError();
453 + if (objectPointer == RootSystem.IntPtr.Zero)
454 + {
455 + return null;
456 + }
457 +
458 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.MultiSourceFrameReader>(objectPointer, n => new Windows.Kinect.MultiSourceFrameReader(n));
459 + }
460 +
461 + private void __EventCleanup()
462 + {
463 + {
464 + Windows_Kinect_IsAvailableChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
465 + var callbackList = Windows_Kinect_IsAvailableChangedEventArgs_Delegate_callbacks[_pNative];
466 + lock (callbackList)
467 + {
468 + if (callbackList.Count > 0)
469 + {
470 + callbackList.Clear();
471 + if (_pNative != RootSystem.IntPtr.Zero)
472 + {
473 + Windows_Kinect_KinectSensor_add_IsAvailableChanged(_pNative, Windows_Kinect_IsAvailableChangedEventArgs_Delegate_Handler, true);
474 + }
475 + _Windows_Kinect_IsAvailableChangedEventArgs_Delegate_Handle.Free();
476 + }
477 + }
478 + }
479 + {
480 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
481 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
482 + lock (callbackList)
483 + {
484 + if (callbackList.Count > 0)
485 + {
486 + callbackList.Clear();
487 + if (_pNative != RootSystem.IntPtr.Zero)
488 + {
489 + Windows_Kinect_KinectSensor_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
490 + }
491 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
492 + }
493 + }
494 + }
495 + }
496 + }
497 +
498 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.KinectUnityAddinUtils
8 + //
9 + public sealed partial class KinectUnityAddinUtils
10 + {
11 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
12 + private static extern void KinectUnityAddin_FreeMemory(RootSystem.IntPtr pToDealloc);
13 + public static void FreeMemory(RootSystem.IntPtr pToDealloc)
14 + {
15 + KinectUnityAddin_FreeMemory(pToDealloc);
16 + }
17 + }
18 +
19 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.LongExposureInfraredFrame
8 + //
9 + public sealed partial class LongExposureInfraredFrame : RootSystem.IDisposable, Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal LongExposureInfraredFrame(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_LongExposureInfraredFrame_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~LongExposureInfraredFrame()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_LongExposureInfraredFrame_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_LongExposureInfraredFrame_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<LongExposureInfraredFrame>(_pNative);
41 +
42 + if (disposing)
43 + {
44 + Windows_Kinect_LongExposureInfraredFrame_Dispose(_pNative);
45 + }
46 + Windows_Kinect_LongExposureInfraredFrame_ReleaseObject(ref _pNative);
47 +
48 + _pNative = RootSystem.IntPtr.Zero;
49 + }
50 +
51 +
52 + // Public Properties
53 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
54 + private static extern RootSystem.IntPtr Windows_Kinect_LongExposureInfraredFrame_get_FrameDescription(RootSystem.IntPtr pNative);
55 + public Windows.Kinect.FrameDescription FrameDescription
56 + {
57 + get
58 + {
59 + if (_pNative == RootSystem.IntPtr.Zero)
60 + {
61 + throw new RootSystem.ObjectDisposedException("LongExposureInfraredFrame");
62 + }
63 +
64 + RootSystem.IntPtr objectPointer = Windows_Kinect_LongExposureInfraredFrame_get_FrameDescription(_pNative);
65 + Helper.ExceptionHelper.CheckLastError();
66 + if (objectPointer == RootSystem.IntPtr.Zero)
67 + {
68 + return null;
69 + }
70 +
71 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.FrameDescription>(objectPointer, n => new Windows.Kinect.FrameDescription(n));
72 + }
73 + }
74 +
75 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
76 + private static extern RootSystem.IntPtr Windows_Kinect_LongExposureInfraredFrame_get_LongExposureInfraredFrameSource(RootSystem.IntPtr pNative);
77 + public Windows.Kinect.LongExposureInfraredFrameSource LongExposureInfraredFrameSource
78 + {
79 + get
80 + {
81 + if (_pNative == RootSystem.IntPtr.Zero)
82 + {
83 + throw new RootSystem.ObjectDisposedException("LongExposureInfraredFrame");
84 + }
85 +
86 + RootSystem.IntPtr objectPointer = Windows_Kinect_LongExposureInfraredFrame_get_LongExposureInfraredFrameSource(_pNative);
87 + Helper.ExceptionHelper.CheckLastError();
88 + if (objectPointer == RootSystem.IntPtr.Zero)
89 + {
90 + return null;
91 + }
92 +
93 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.LongExposureInfraredFrameSource>(objectPointer, n => new Windows.Kinect.LongExposureInfraredFrameSource(n));
94 + }
95 + }
96 +
97 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
98 + private static extern long Windows_Kinect_LongExposureInfraredFrame_get_RelativeTime(RootSystem.IntPtr pNative);
99 + public RootSystem.TimeSpan RelativeTime
100 + {
101 + get
102 + {
103 + if (_pNative == RootSystem.IntPtr.Zero)
104 + {
105 + throw new RootSystem.ObjectDisposedException("LongExposureInfraredFrame");
106 + }
107 +
108 + return RootSystem.TimeSpan.FromMilliseconds(Windows_Kinect_LongExposureInfraredFrame_get_RelativeTime(_pNative));
109 + }
110 + }
111 +
112 +
113 + // Public Methods
114 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
115 + private static extern void Windows_Kinect_LongExposureInfraredFrame_CopyFrameDataToArray(RootSystem.IntPtr pNative, RootSystem.IntPtr frameData, int frameDataSize);
116 + public void CopyFrameDataToArray(ushort[] frameData)
117 + {
118 + if (_pNative == RootSystem.IntPtr.Zero)
119 + {
120 + throw new RootSystem.ObjectDisposedException("LongExposureInfraredFrame");
121 + }
122 +
123 + var frameDataSmartGCHandle = new Helper.SmartGCHandle(RootSystem.Runtime.InteropServices.GCHandle.Alloc(frameData, RootSystem.Runtime.InteropServices.GCHandleType.Pinned));
124 + var _frameData = frameDataSmartGCHandle.AddrOfPinnedObject();
125 + Windows_Kinect_LongExposureInfraredFrame_CopyFrameDataToArray(_pNative, _frameData, frameData.Length);
126 + Helper.ExceptionHelper.CheckLastError();
127 + }
128 +
129 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
130 + private static extern void Windows_Kinect_LongExposureInfraredFrame_Dispose(RootSystem.IntPtr pNative);
131 + public void Dispose()
132 + {
133 + if (_pNative == RootSystem.IntPtr.Zero)
134 + {
135 + return;
136 + }
137 +
138 + Dispose(true);
139 + RootSystem.GC.SuppressFinalize(this);
140 + }
141 +
142 + private void __EventCleanup()
143 + {
144 + }
145 + }
146 +
147 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.LongExposureInfraredFrameArrivedEventArgs
8 + //
9 + public sealed partial class LongExposureInfraredFrameArrivedEventArgs : RootSystem.EventArgs, Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal LongExposureInfraredFrameArrivedEventArgs(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_LongExposureInfraredFrameArrivedEventArgs_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~LongExposureInfraredFrameArrivedEventArgs()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_LongExposureInfraredFrameArrivedEventArgs_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_LongExposureInfraredFrameArrivedEventArgs_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<LongExposureInfraredFrameArrivedEventArgs>(_pNative);
41 + Windows_Kinect_LongExposureInfraredFrameArrivedEventArgs_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern RootSystem.IntPtr Windows_Kinect_LongExposureInfraredFrameArrivedEventArgs_get_FrameReference(RootSystem.IntPtr pNative);
50 + public Windows.Kinect.LongExposureInfraredFrameReference FrameReference
51 + {
52 + get
53 + {
54 + if (_pNative == RootSystem.IntPtr.Zero)
55 + {
56 + throw new RootSystem.ObjectDisposedException("LongExposureInfraredFrameArrivedEventArgs");
57 + }
58 +
59 + RootSystem.IntPtr objectPointer = Windows_Kinect_LongExposureInfraredFrameArrivedEventArgs_get_FrameReference(_pNative);
60 + Helper.ExceptionHelper.CheckLastError();
61 + if (objectPointer == RootSystem.IntPtr.Zero)
62 + {
63 + return null;
64 + }
65 +
66 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.LongExposureInfraredFrameReference>(objectPointer, n => new Windows.Kinect.LongExposureInfraredFrameReference(n));
67 + }
68 + }
69 +
70 + private void __EventCleanup()
71 + {
72 + }
73 + }
74 +
75 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.LongExposureInfraredFrameReader
8 + //
9 + public sealed partial class LongExposureInfraredFrameReader : RootSystem.IDisposable, Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal LongExposureInfraredFrameReader(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_LongExposureInfraredFrameReader_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~LongExposureInfraredFrameReader()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_LongExposureInfraredFrameReader_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_LongExposureInfraredFrameReader_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<LongExposureInfraredFrameReader>(_pNative);
41 +
42 + if (disposing)
43 + {
44 + Windows_Kinect_LongExposureInfraredFrameReader_Dispose(_pNative);
45 + }
46 + Windows_Kinect_LongExposureInfraredFrameReader_ReleaseObject(ref _pNative);
47 +
48 + _pNative = RootSystem.IntPtr.Zero;
49 + }
50 +
51 +
52 + // Public Properties
53 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
54 + private static extern bool Windows_Kinect_LongExposureInfraredFrameReader_get_IsPaused(RootSystem.IntPtr pNative);
55 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
56 + private static extern void Windows_Kinect_LongExposureInfraredFrameReader_put_IsPaused(RootSystem.IntPtr pNative, bool isPaused);
57 + public bool IsPaused
58 + {
59 + get
60 + {
61 + if (_pNative == RootSystem.IntPtr.Zero)
62 + {
63 + throw new RootSystem.ObjectDisposedException("LongExposureInfraredFrameReader");
64 + }
65 +
66 + return Windows_Kinect_LongExposureInfraredFrameReader_get_IsPaused(_pNative);
67 + }
68 + set
69 + {
70 + if (_pNative == RootSystem.IntPtr.Zero)
71 + {
72 + throw new RootSystem.ObjectDisposedException("LongExposureInfraredFrameReader");
73 + }
74 +
75 + Windows_Kinect_LongExposureInfraredFrameReader_put_IsPaused(_pNative, value);
76 + Helper.ExceptionHelper.CheckLastError();
77 + }
78 + }
79 +
80 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
81 + private static extern RootSystem.IntPtr Windows_Kinect_LongExposureInfraredFrameReader_get_LongExposureInfraredFrameSource(RootSystem.IntPtr pNative);
82 + public Windows.Kinect.LongExposureInfraredFrameSource LongExposureInfraredFrameSource
83 + {
84 + get
85 + {
86 + if (_pNative == RootSystem.IntPtr.Zero)
87 + {
88 + throw new RootSystem.ObjectDisposedException("LongExposureInfraredFrameReader");
89 + }
90 +
91 + RootSystem.IntPtr objectPointer = Windows_Kinect_LongExposureInfraredFrameReader_get_LongExposureInfraredFrameSource(_pNative);
92 + Helper.ExceptionHelper.CheckLastError();
93 + if (objectPointer == RootSystem.IntPtr.Zero)
94 + {
95 + return null;
96 + }
97 +
98 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.LongExposureInfraredFrameSource>(objectPointer, n => new Windows.Kinect.LongExposureInfraredFrameSource(n));
99 + }
100 + }
101 +
102 +
103 + // Events
104 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Kinect_LongExposureInfraredFrameArrivedEventArgs_Delegate_Handle;
105 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
106 + private delegate void _Windows_Kinect_LongExposureInfraredFrameArrivedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
107 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.LongExposureInfraredFrameArrivedEventArgs>>> Windows_Kinect_LongExposureInfraredFrameArrivedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.LongExposureInfraredFrameArrivedEventArgs>>>();
108 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Kinect_LongExposureInfraredFrameArrivedEventArgs_Delegate))]
109 + private static void Windows_Kinect_LongExposureInfraredFrameArrivedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
110 + {
111 + List<RootSystem.EventHandler<Windows.Kinect.LongExposureInfraredFrameArrivedEventArgs>> callbackList = null;
112 + Windows_Kinect_LongExposureInfraredFrameArrivedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
113 + lock(callbackList)
114 + {
115 + var objThis = Helper.NativeObjectCache.GetObject<LongExposureInfraredFrameReader>(pNative);
116 + var args = new Windows.Kinect.LongExposureInfraredFrameArrivedEventArgs(result);
117 + foreach(var func in callbackList)
118 + {
119 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
120 + }
121 + }
122 + }
123 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
124 + private static extern void Windows_Kinect_LongExposureInfraredFrameReader_add_FrameArrived(RootSystem.IntPtr pNative, _Windows_Kinect_LongExposureInfraredFrameArrivedEventArgs_Delegate eventCallback, bool unsubscribe);
125 + public event RootSystem.EventHandler<Windows.Kinect.LongExposureInfraredFrameArrivedEventArgs> FrameArrived
126 + {
127 + add
128 + {
129 + Helper.EventPump.EnsureInitialized();
130 +
131 + Windows_Kinect_LongExposureInfraredFrameArrivedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
132 + var callbackList = Windows_Kinect_LongExposureInfraredFrameArrivedEventArgs_Delegate_callbacks[_pNative];
133 + lock (callbackList)
134 + {
135 + callbackList.Add(value);
136 + if(callbackList.Count == 1)
137 + {
138 + var del = new _Windows_Kinect_LongExposureInfraredFrameArrivedEventArgs_Delegate(Windows_Kinect_LongExposureInfraredFrameArrivedEventArgs_Delegate_Handler);
139 + _Windows_Kinect_LongExposureInfraredFrameArrivedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
140 + Windows_Kinect_LongExposureInfraredFrameReader_add_FrameArrived(_pNative, del, false);
141 + }
142 + }
143 + }
144 + remove
145 + {
146 + if (_pNative == RootSystem.IntPtr.Zero)
147 + {
148 + return;
149 + }
150 +
151 + Windows_Kinect_LongExposureInfraredFrameArrivedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
152 + var callbackList = Windows_Kinect_LongExposureInfraredFrameArrivedEventArgs_Delegate_callbacks[_pNative];
153 + lock (callbackList)
154 + {
155 + callbackList.Remove(value);
156 + if(callbackList.Count == 0)
157 + {
158 + Windows_Kinect_LongExposureInfraredFrameReader_add_FrameArrived(_pNative, Windows_Kinect_LongExposureInfraredFrameArrivedEventArgs_Delegate_Handler, true);
159 + _Windows_Kinect_LongExposureInfraredFrameArrivedEventArgs_Delegate_Handle.Free();
160 + }
161 + }
162 + }
163 + }
164 +
165 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Data_PropertyChangedEventArgs_Delegate_Handle;
166 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
167 + private delegate void _Windows_Data_PropertyChangedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
168 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>> Windows_Data_PropertyChangedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>>();
169 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Data_PropertyChangedEventArgs_Delegate))]
170 + private static void Windows_Data_PropertyChangedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
171 + {
172 + List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>> callbackList = null;
173 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
174 + lock(callbackList)
175 + {
176 + var objThis = Helper.NativeObjectCache.GetObject<LongExposureInfraredFrameReader>(pNative);
177 + var args = new Windows.Data.PropertyChangedEventArgs(result);
178 + foreach(var func in callbackList)
179 + {
180 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
181 + }
182 + }
183 + }
184 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
185 + private static extern void Windows_Kinect_LongExposureInfraredFrameReader_add_PropertyChanged(RootSystem.IntPtr pNative, _Windows_Data_PropertyChangedEventArgs_Delegate eventCallback, bool unsubscribe);
186 + public event RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs> PropertyChanged
187 + {
188 + add
189 + {
190 + Helper.EventPump.EnsureInitialized();
191 +
192 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
193 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
194 + lock (callbackList)
195 + {
196 + callbackList.Add(value);
197 + if(callbackList.Count == 1)
198 + {
199 + var del = new _Windows_Data_PropertyChangedEventArgs_Delegate(Windows_Data_PropertyChangedEventArgs_Delegate_Handler);
200 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
201 + Windows_Kinect_LongExposureInfraredFrameReader_add_PropertyChanged(_pNative, del, false);
202 + }
203 + }
204 + }
205 + remove
206 + {
207 + if (_pNative == RootSystem.IntPtr.Zero)
208 + {
209 + return;
210 + }
211 +
212 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
213 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
214 + lock (callbackList)
215 + {
216 + callbackList.Remove(value);
217 + if(callbackList.Count == 0)
218 + {
219 + Windows_Kinect_LongExposureInfraredFrameReader_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
220 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
221 + }
222 + }
223 + }
224 + }
225 +
226 +
227 + // Public Methods
228 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
229 + private static extern RootSystem.IntPtr Windows_Kinect_LongExposureInfraredFrameReader_AcquireLatestFrame(RootSystem.IntPtr pNative);
230 + public Windows.Kinect.LongExposureInfraredFrame AcquireLatestFrame()
231 + {
232 + if (_pNative == RootSystem.IntPtr.Zero)
233 + {
234 + throw new RootSystem.ObjectDisposedException("LongExposureInfraredFrameReader");
235 + }
236 +
237 + RootSystem.IntPtr objectPointer = Windows_Kinect_LongExposureInfraredFrameReader_AcquireLatestFrame(_pNative);
238 + Helper.ExceptionHelper.CheckLastError();
239 + if (objectPointer == RootSystem.IntPtr.Zero)
240 + {
241 + return null;
242 + }
243 +
244 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.LongExposureInfraredFrame>(objectPointer, n => new Windows.Kinect.LongExposureInfraredFrame(n));
245 + }
246 +
247 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
248 + private static extern void Windows_Kinect_LongExposureInfraredFrameReader_Dispose(RootSystem.IntPtr pNative);
249 + public void Dispose()
250 + {
251 + if (_pNative == RootSystem.IntPtr.Zero)
252 + {
253 + return;
254 + }
255 +
256 + Dispose(true);
257 + RootSystem.GC.SuppressFinalize(this);
258 + }
259 +
260 + private void __EventCleanup()
261 + {
262 + {
263 + Windows_Kinect_LongExposureInfraredFrameArrivedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
264 + var callbackList = Windows_Kinect_LongExposureInfraredFrameArrivedEventArgs_Delegate_callbacks[_pNative];
265 + lock (callbackList)
266 + {
267 + if (callbackList.Count > 0)
268 + {
269 + callbackList.Clear();
270 + if (_pNative != RootSystem.IntPtr.Zero)
271 + {
272 + Windows_Kinect_LongExposureInfraredFrameReader_add_FrameArrived(_pNative, Windows_Kinect_LongExposureInfraredFrameArrivedEventArgs_Delegate_Handler, true);
273 + }
274 + _Windows_Kinect_LongExposureInfraredFrameArrivedEventArgs_Delegate_Handle.Free();
275 + }
276 + }
277 + }
278 + {
279 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
280 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
281 + lock (callbackList)
282 + {
283 + if (callbackList.Count > 0)
284 + {
285 + callbackList.Clear();
286 + if (_pNative != RootSystem.IntPtr.Zero)
287 + {
288 + Windows_Kinect_LongExposureInfraredFrameReader_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
289 + }
290 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
291 + }
292 + }
293 + }
294 + }
295 + }
296 +
297 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.LongExposureInfraredFrameReference
8 + //
9 + public sealed partial class LongExposureInfraredFrameReference : Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal LongExposureInfraredFrameReference(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_LongExposureInfraredFrameReference_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~LongExposureInfraredFrameReference()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_LongExposureInfraredFrameReference_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_LongExposureInfraredFrameReference_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<LongExposureInfraredFrameReference>(_pNative);
41 + Windows_Kinect_LongExposureInfraredFrameReference_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern long Windows_Kinect_LongExposureInfraredFrameReference_get_RelativeTime(RootSystem.IntPtr pNative);
50 + public RootSystem.TimeSpan RelativeTime
51 + {
52 + get
53 + {
54 + if (_pNative == RootSystem.IntPtr.Zero)
55 + {
56 + throw new RootSystem.ObjectDisposedException("LongExposureInfraredFrameReference");
57 + }
58 +
59 + return RootSystem.TimeSpan.FromMilliseconds(Windows_Kinect_LongExposureInfraredFrameReference_get_RelativeTime(_pNative));
60 + }
61 + }
62 +
63 +
64 + // Public Methods
65 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
66 + private static extern RootSystem.IntPtr Windows_Kinect_LongExposureInfraredFrameReference_AcquireFrame(RootSystem.IntPtr pNative);
67 + public Windows.Kinect.LongExposureInfraredFrame AcquireFrame()
68 + {
69 + if (_pNative == RootSystem.IntPtr.Zero)
70 + {
71 + throw new RootSystem.ObjectDisposedException("LongExposureInfraredFrameReference");
72 + }
73 +
74 + RootSystem.IntPtr objectPointer = Windows_Kinect_LongExposureInfraredFrameReference_AcquireFrame(_pNative);
75 + Helper.ExceptionHelper.CheckLastError();
76 + if (objectPointer == RootSystem.IntPtr.Zero)
77 + {
78 + return null;
79 + }
80 +
81 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.LongExposureInfraredFrame>(objectPointer, n => new Windows.Kinect.LongExposureInfraredFrame(n));
82 + }
83 +
84 + private void __EventCleanup()
85 + {
86 + }
87 + }
88 +
89 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.LongExposureInfraredFrameSource
8 + //
9 + public sealed partial class LongExposureInfraredFrameSource : Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal LongExposureInfraredFrameSource(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_LongExposureInfraredFrameSource_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~LongExposureInfraredFrameSource()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_LongExposureInfraredFrameSource_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_LongExposureInfraredFrameSource_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<LongExposureInfraredFrameSource>(_pNative);
41 + Windows_Kinect_LongExposureInfraredFrameSource_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern RootSystem.IntPtr Windows_Kinect_LongExposureInfraredFrameSource_get_FrameDescription(RootSystem.IntPtr pNative);
50 + public Windows.Kinect.FrameDescription FrameDescription
51 + {
52 + get
53 + {
54 + if (_pNative == RootSystem.IntPtr.Zero)
55 + {
56 + throw new RootSystem.ObjectDisposedException("LongExposureInfraredFrameSource");
57 + }
58 +
59 + RootSystem.IntPtr objectPointer = Windows_Kinect_LongExposureInfraredFrameSource_get_FrameDescription(_pNative);
60 + Helper.ExceptionHelper.CheckLastError();
61 + if (objectPointer == RootSystem.IntPtr.Zero)
62 + {
63 + return null;
64 + }
65 +
66 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.FrameDescription>(objectPointer, n => new Windows.Kinect.FrameDescription(n));
67 + }
68 + }
69 +
70 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
71 + private static extern bool Windows_Kinect_LongExposureInfraredFrameSource_get_IsActive(RootSystem.IntPtr pNative);
72 + public bool IsActive
73 + {
74 + get
75 + {
76 + if (_pNative == RootSystem.IntPtr.Zero)
77 + {
78 + throw new RootSystem.ObjectDisposedException("LongExposureInfraredFrameSource");
79 + }
80 +
81 + return Windows_Kinect_LongExposureInfraredFrameSource_get_IsActive(_pNative);
82 + }
83 + }
84 +
85 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
86 + private static extern RootSystem.IntPtr Windows_Kinect_LongExposureInfraredFrameSource_get_KinectSensor(RootSystem.IntPtr pNative);
87 + public Windows.Kinect.KinectSensor KinectSensor
88 + {
89 + get
90 + {
91 + if (_pNative == RootSystem.IntPtr.Zero)
92 + {
93 + throw new RootSystem.ObjectDisposedException("LongExposureInfraredFrameSource");
94 + }
95 +
96 + RootSystem.IntPtr objectPointer = Windows_Kinect_LongExposureInfraredFrameSource_get_KinectSensor(_pNative);
97 + Helper.ExceptionHelper.CheckLastError();
98 + if (objectPointer == RootSystem.IntPtr.Zero)
99 + {
100 + return null;
101 + }
102 +
103 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.KinectSensor>(objectPointer, n => new Windows.Kinect.KinectSensor(n));
104 + }
105 + }
106 +
107 +
108 + // Events
109 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Kinect_FrameCapturedEventArgs_Delegate_Handle;
110 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
111 + private delegate void _Windows_Kinect_FrameCapturedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
112 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.FrameCapturedEventArgs>>> Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.FrameCapturedEventArgs>>>();
113 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Kinect_FrameCapturedEventArgs_Delegate))]
114 + private static void Windows_Kinect_FrameCapturedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
115 + {
116 + List<RootSystem.EventHandler<Windows.Kinect.FrameCapturedEventArgs>> callbackList = null;
117 + Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
118 + lock(callbackList)
119 + {
120 + var objThis = Helper.NativeObjectCache.GetObject<LongExposureInfraredFrameSource>(pNative);
121 + var args = new Windows.Kinect.FrameCapturedEventArgs(result);
122 + foreach(var func in callbackList)
123 + {
124 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
125 + }
126 + }
127 + }
128 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
129 + private static extern void Windows_Kinect_LongExposureInfraredFrameSource_add_FrameCaptured(RootSystem.IntPtr pNative, _Windows_Kinect_FrameCapturedEventArgs_Delegate eventCallback, bool unsubscribe);
130 + public event RootSystem.EventHandler<Windows.Kinect.FrameCapturedEventArgs> FrameCaptured
131 + {
132 + add
133 + {
134 + Helper.EventPump.EnsureInitialized();
135 +
136 + Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
137 + var callbackList = Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks[_pNative];
138 + lock (callbackList)
139 + {
140 + callbackList.Add(value);
141 + if(callbackList.Count == 1)
142 + {
143 + var del = new _Windows_Kinect_FrameCapturedEventArgs_Delegate(Windows_Kinect_FrameCapturedEventArgs_Delegate_Handler);
144 + _Windows_Kinect_FrameCapturedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
145 + Windows_Kinect_LongExposureInfraredFrameSource_add_FrameCaptured(_pNative, del, false);
146 + }
147 + }
148 + }
149 + remove
150 + {
151 + if (_pNative == RootSystem.IntPtr.Zero)
152 + {
153 + return;
154 + }
155 +
156 + Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
157 + var callbackList = Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks[_pNative];
158 + lock (callbackList)
159 + {
160 + callbackList.Remove(value);
161 + if(callbackList.Count == 0)
162 + {
163 + Windows_Kinect_LongExposureInfraredFrameSource_add_FrameCaptured(_pNative, Windows_Kinect_FrameCapturedEventArgs_Delegate_Handler, true);
164 + _Windows_Kinect_FrameCapturedEventArgs_Delegate_Handle.Free();
165 + }
166 + }
167 + }
168 + }
169 +
170 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Data_PropertyChangedEventArgs_Delegate_Handle;
171 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
172 + private delegate void _Windows_Data_PropertyChangedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
173 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>> Windows_Data_PropertyChangedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>>();
174 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Data_PropertyChangedEventArgs_Delegate))]
175 + private static void Windows_Data_PropertyChangedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
176 + {
177 + List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>> callbackList = null;
178 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
179 + lock(callbackList)
180 + {
181 + var objThis = Helper.NativeObjectCache.GetObject<LongExposureInfraredFrameSource>(pNative);
182 + var args = new Windows.Data.PropertyChangedEventArgs(result);
183 + foreach(var func in callbackList)
184 + {
185 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
186 + }
187 + }
188 + }
189 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
190 + private static extern void Windows_Kinect_LongExposureInfraredFrameSource_add_PropertyChanged(RootSystem.IntPtr pNative, _Windows_Data_PropertyChangedEventArgs_Delegate eventCallback, bool unsubscribe);
191 + public event RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs> PropertyChanged
192 + {
193 + add
194 + {
195 + Helper.EventPump.EnsureInitialized();
196 +
197 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
198 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
199 + lock (callbackList)
200 + {
201 + callbackList.Add(value);
202 + if(callbackList.Count == 1)
203 + {
204 + var del = new _Windows_Data_PropertyChangedEventArgs_Delegate(Windows_Data_PropertyChangedEventArgs_Delegate_Handler);
205 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
206 + Windows_Kinect_LongExposureInfraredFrameSource_add_PropertyChanged(_pNative, del, false);
207 + }
208 + }
209 + }
210 + remove
211 + {
212 + if (_pNative == RootSystem.IntPtr.Zero)
213 + {
214 + return;
215 + }
216 +
217 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
218 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
219 + lock (callbackList)
220 + {
221 + callbackList.Remove(value);
222 + if(callbackList.Count == 0)
223 + {
224 + Windows_Kinect_LongExposureInfraredFrameSource_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
225 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
226 + }
227 + }
228 + }
229 + }
230 +
231 +
232 + // Public Methods
233 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
234 + private static extern RootSystem.IntPtr Windows_Kinect_LongExposureInfraredFrameSource_OpenReader(RootSystem.IntPtr pNative);
235 + public Windows.Kinect.LongExposureInfraredFrameReader OpenReader()
236 + {
237 + if (_pNative == RootSystem.IntPtr.Zero)
238 + {
239 + throw new RootSystem.ObjectDisposedException("LongExposureInfraredFrameSource");
240 + }
241 +
242 + RootSystem.IntPtr objectPointer = Windows_Kinect_LongExposureInfraredFrameSource_OpenReader(_pNative);
243 + Helper.ExceptionHelper.CheckLastError();
244 + if (objectPointer == RootSystem.IntPtr.Zero)
245 + {
246 + return null;
247 + }
248 +
249 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.LongExposureInfraredFrameReader>(objectPointer, n => new Windows.Kinect.LongExposureInfraredFrameReader(n));
250 + }
251 +
252 + private void __EventCleanup()
253 + {
254 + {
255 + Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
256 + var callbackList = Windows_Kinect_FrameCapturedEventArgs_Delegate_callbacks[_pNative];
257 + lock (callbackList)
258 + {
259 + if (callbackList.Count > 0)
260 + {
261 + callbackList.Clear();
262 + if (_pNative != RootSystem.IntPtr.Zero)
263 + {
264 + Windows_Kinect_LongExposureInfraredFrameSource_add_FrameCaptured(_pNative, Windows_Kinect_FrameCapturedEventArgs_Delegate_Handler, true);
265 + }
266 + _Windows_Kinect_FrameCapturedEventArgs_Delegate_Handle.Free();
267 + }
268 + }
269 + }
270 + {
271 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
272 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
273 + lock (callbackList)
274 + {
275 + if (callbackList.Count > 0)
276 + {
277 + callbackList.Clear();
278 + if (_pNative != RootSystem.IntPtr.Zero)
279 + {
280 + Windows_Kinect_LongExposureInfraredFrameSource_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
281 + }
282 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
283 + }
284 + }
285 + }
286 + }
287 + }
288 +
289 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.MultiSourceFrame
8 + //
9 + public sealed partial class MultiSourceFrame : Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal MultiSourceFrame(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_MultiSourceFrame_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~MultiSourceFrame()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_MultiSourceFrame_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_MultiSourceFrame_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<MultiSourceFrame>(_pNative);
41 + Windows_Kinect_MultiSourceFrame_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern RootSystem.IntPtr Windows_Kinect_MultiSourceFrame_get_BodyFrameReference(RootSystem.IntPtr pNative);
50 + public Windows.Kinect.BodyFrameReference BodyFrameReference
51 + {
52 + get
53 + {
54 + if (_pNative == RootSystem.IntPtr.Zero)
55 + {
56 + throw new RootSystem.ObjectDisposedException("MultiSourceFrame");
57 + }
58 +
59 + RootSystem.IntPtr objectPointer = Windows_Kinect_MultiSourceFrame_get_BodyFrameReference(_pNative);
60 + Helper.ExceptionHelper.CheckLastError();
61 + if (objectPointer == RootSystem.IntPtr.Zero)
62 + {
63 + return null;
64 + }
65 +
66 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.BodyFrameReference>(objectPointer, n => new Windows.Kinect.BodyFrameReference(n));
67 + }
68 + }
69 +
70 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
71 + private static extern RootSystem.IntPtr Windows_Kinect_MultiSourceFrame_get_BodyIndexFrameReference(RootSystem.IntPtr pNative);
72 + public Windows.Kinect.BodyIndexFrameReference BodyIndexFrameReference
73 + {
74 + get
75 + {
76 + if (_pNative == RootSystem.IntPtr.Zero)
77 + {
78 + throw new RootSystem.ObjectDisposedException("MultiSourceFrame");
79 + }
80 +
81 + RootSystem.IntPtr objectPointer = Windows_Kinect_MultiSourceFrame_get_BodyIndexFrameReference(_pNative);
82 + Helper.ExceptionHelper.CheckLastError();
83 + if (objectPointer == RootSystem.IntPtr.Zero)
84 + {
85 + return null;
86 + }
87 +
88 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.BodyIndexFrameReference>(objectPointer, n => new Windows.Kinect.BodyIndexFrameReference(n));
89 + }
90 + }
91 +
92 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
93 + private static extern RootSystem.IntPtr Windows_Kinect_MultiSourceFrame_get_ColorFrameReference(RootSystem.IntPtr pNative);
94 + public Windows.Kinect.ColorFrameReference ColorFrameReference
95 + {
96 + get
97 + {
98 + if (_pNative == RootSystem.IntPtr.Zero)
99 + {
100 + throw new RootSystem.ObjectDisposedException("MultiSourceFrame");
101 + }
102 +
103 + RootSystem.IntPtr objectPointer = Windows_Kinect_MultiSourceFrame_get_ColorFrameReference(_pNative);
104 + Helper.ExceptionHelper.CheckLastError();
105 + if (objectPointer == RootSystem.IntPtr.Zero)
106 + {
107 + return null;
108 + }
109 +
110 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.ColorFrameReference>(objectPointer, n => new Windows.Kinect.ColorFrameReference(n));
111 + }
112 + }
113 +
114 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
115 + private static extern RootSystem.IntPtr Windows_Kinect_MultiSourceFrame_get_DepthFrameReference(RootSystem.IntPtr pNative);
116 + public Windows.Kinect.DepthFrameReference DepthFrameReference
117 + {
118 + get
119 + {
120 + if (_pNative == RootSystem.IntPtr.Zero)
121 + {
122 + throw new RootSystem.ObjectDisposedException("MultiSourceFrame");
123 + }
124 +
125 + RootSystem.IntPtr objectPointer = Windows_Kinect_MultiSourceFrame_get_DepthFrameReference(_pNative);
126 + Helper.ExceptionHelper.CheckLastError();
127 + if (objectPointer == RootSystem.IntPtr.Zero)
128 + {
129 + return null;
130 + }
131 +
132 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.DepthFrameReference>(objectPointer, n => new Windows.Kinect.DepthFrameReference(n));
133 + }
134 + }
135 +
136 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
137 + private static extern RootSystem.IntPtr Windows_Kinect_MultiSourceFrame_get_InfraredFrameReference(RootSystem.IntPtr pNative);
138 + public Windows.Kinect.InfraredFrameReference InfraredFrameReference
139 + {
140 + get
141 + {
142 + if (_pNative == RootSystem.IntPtr.Zero)
143 + {
144 + throw new RootSystem.ObjectDisposedException("MultiSourceFrame");
145 + }
146 +
147 + RootSystem.IntPtr objectPointer = Windows_Kinect_MultiSourceFrame_get_InfraredFrameReference(_pNative);
148 + Helper.ExceptionHelper.CheckLastError();
149 + if (objectPointer == RootSystem.IntPtr.Zero)
150 + {
151 + return null;
152 + }
153 +
154 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.InfraredFrameReference>(objectPointer, n => new Windows.Kinect.InfraredFrameReference(n));
155 + }
156 + }
157 +
158 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
159 + private static extern RootSystem.IntPtr Windows_Kinect_MultiSourceFrame_get_LongExposureInfraredFrameReference(RootSystem.IntPtr pNative);
160 + public Windows.Kinect.LongExposureInfraredFrameReference LongExposureInfraredFrameReference
161 + {
162 + get
163 + {
164 + if (_pNative == RootSystem.IntPtr.Zero)
165 + {
166 + throw new RootSystem.ObjectDisposedException("MultiSourceFrame");
167 + }
168 +
169 + RootSystem.IntPtr objectPointer = Windows_Kinect_MultiSourceFrame_get_LongExposureInfraredFrameReference(_pNative);
170 + Helper.ExceptionHelper.CheckLastError();
171 + if (objectPointer == RootSystem.IntPtr.Zero)
172 + {
173 + return null;
174 + }
175 +
176 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.LongExposureInfraredFrameReference>(objectPointer, n => new Windows.Kinect.LongExposureInfraredFrameReference(n));
177 + }
178 + }
179 +
180 +
181 + // Public Methods
182 + private void __EventCleanup()
183 + {
184 + }
185 + }
186 +
187 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.MultiSourceFrameArrivedEventArgs
8 + //
9 + public sealed partial class MultiSourceFrameArrivedEventArgs : RootSystem.EventArgs, Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal MultiSourceFrameArrivedEventArgs(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_MultiSourceFrameArrivedEventArgs_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~MultiSourceFrameArrivedEventArgs()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_MultiSourceFrameArrivedEventArgs_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_MultiSourceFrameArrivedEventArgs_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<MultiSourceFrameArrivedEventArgs>(_pNative);
41 + Windows_Kinect_MultiSourceFrameArrivedEventArgs_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Properties
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern RootSystem.IntPtr Windows_Kinect_MultiSourceFrameArrivedEventArgs_get_FrameReference(RootSystem.IntPtr pNative);
50 + public Windows.Kinect.MultiSourceFrameReference FrameReference
51 + {
52 + get
53 + {
54 + if (_pNative == RootSystem.IntPtr.Zero)
55 + {
56 + throw new RootSystem.ObjectDisposedException("MultiSourceFrameArrivedEventArgs");
57 + }
58 +
59 + RootSystem.IntPtr objectPointer = Windows_Kinect_MultiSourceFrameArrivedEventArgs_get_FrameReference(_pNative);
60 + Helper.ExceptionHelper.CheckLastError();
61 + if (objectPointer == RootSystem.IntPtr.Zero)
62 + {
63 + return null;
64 + }
65 +
66 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.MultiSourceFrameReference>(objectPointer, n => new Windows.Kinect.MultiSourceFrameReference(n));
67 + }
68 + }
69 +
70 + private void __EventCleanup()
71 + {
72 + }
73 + }
74 +
75 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.MultiSourceFrameReader
8 + //
9 + public sealed partial class MultiSourceFrameReader : RootSystem.IDisposable, Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal MultiSourceFrameReader(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_MultiSourceFrameReader_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~MultiSourceFrameReader()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_MultiSourceFrameReader_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_MultiSourceFrameReader_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<MultiSourceFrameReader>(_pNative);
41 +
42 + if (disposing)
43 + {
44 + Windows_Kinect_MultiSourceFrameReader_Dispose(_pNative);
45 + }
46 + Windows_Kinect_MultiSourceFrameReader_ReleaseObject(ref _pNative);
47 +
48 + _pNative = RootSystem.IntPtr.Zero;
49 + }
50 +
51 +
52 + // Public Properties
53 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
54 + private static extern Windows.Kinect.FrameSourceTypes Windows_Kinect_MultiSourceFrameReader_get_FrameSourceTypes(RootSystem.IntPtr pNative);
55 + public Windows.Kinect.FrameSourceTypes FrameSourceTypes
56 + {
57 + get
58 + {
59 + if (_pNative == RootSystem.IntPtr.Zero)
60 + {
61 + throw new RootSystem.ObjectDisposedException("MultiSourceFrameReader");
62 + }
63 +
64 + return Windows_Kinect_MultiSourceFrameReader_get_FrameSourceTypes(_pNative);
65 + }
66 + }
67 +
68 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
69 + private static extern bool Windows_Kinect_MultiSourceFrameReader_get_IsPaused(RootSystem.IntPtr pNative);
70 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
71 + private static extern void Windows_Kinect_MultiSourceFrameReader_put_IsPaused(RootSystem.IntPtr pNative, bool isPaused);
72 + public bool IsPaused
73 + {
74 + get
75 + {
76 + if (_pNative == RootSystem.IntPtr.Zero)
77 + {
78 + throw new RootSystem.ObjectDisposedException("MultiSourceFrameReader");
79 + }
80 +
81 + return Windows_Kinect_MultiSourceFrameReader_get_IsPaused(_pNative);
82 + }
83 + set
84 + {
85 + if (_pNative == RootSystem.IntPtr.Zero)
86 + {
87 + throw new RootSystem.ObjectDisposedException("MultiSourceFrameReader");
88 + }
89 +
90 + Windows_Kinect_MultiSourceFrameReader_put_IsPaused(_pNative, value);
91 + Helper.ExceptionHelper.CheckLastError();
92 + }
93 + }
94 +
95 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
96 + private static extern RootSystem.IntPtr Windows_Kinect_MultiSourceFrameReader_get_KinectSensor(RootSystem.IntPtr pNative);
97 + public Windows.Kinect.KinectSensor KinectSensor
98 + {
99 + get
100 + {
101 + if (_pNative == RootSystem.IntPtr.Zero)
102 + {
103 + throw new RootSystem.ObjectDisposedException("MultiSourceFrameReader");
104 + }
105 +
106 + RootSystem.IntPtr objectPointer = Windows_Kinect_MultiSourceFrameReader_get_KinectSensor(_pNative);
107 + Helper.ExceptionHelper.CheckLastError();
108 + if (objectPointer == RootSystem.IntPtr.Zero)
109 + {
110 + return null;
111 + }
112 +
113 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.KinectSensor>(objectPointer, n => new Windows.Kinect.KinectSensor(n));
114 + }
115 + }
116 +
117 +
118 + // Events
119 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Kinect_MultiSourceFrameArrivedEventArgs_Delegate_Handle;
120 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
121 + private delegate void _Windows_Kinect_MultiSourceFrameArrivedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
122 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.MultiSourceFrameArrivedEventArgs>>> Windows_Kinect_MultiSourceFrameArrivedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Kinect.MultiSourceFrameArrivedEventArgs>>>();
123 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Kinect_MultiSourceFrameArrivedEventArgs_Delegate))]
124 + private static void Windows_Kinect_MultiSourceFrameArrivedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
125 + {
126 + List<RootSystem.EventHandler<Windows.Kinect.MultiSourceFrameArrivedEventArgs>> callbackList = null;
127 + Windows_Kinect_MultiSourceFrameArrivedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
128 + lock(callbackList)
129 + {
130 + var objThis = Helper.NativeObjectCache.GetObject<MultiSourceFrameReader>(pNative);
131 + var args = new Windows.Kinect.MultiSourceFrameArrivedEventArgs(result);
132 + foreach(var func in callbackList)
133 + {
134 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
135 + }
136 + }
137 + }
138 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
139 + private static extern void Windows_Kinect_MultiSourceFrameReader_add_MultiSourceFrameArrived(RootSystem.IntPtr pNative, _Windows_Kinect_MultiSourceFrameArrivedEventArgs_Delegate eventCallback, bool unsubscribe);
140 + public event RootSystem.EventHandler<Windows.Kinect.MultiSourceFrameArrivedEventArgs> MultiSourceFrameArrived
141 + {
142 + add
143 + {
144 + Helper.EventPump.EnsureInitialized();
145 +
146 + Windows_Kinect_MultiSourceFrameArrivedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
147 + var callbackList = Windows_Kinect_MultiSourceFrameArrivedEventArgs_Delegate_callbacks[_pNative];
148 + lock (callbackList)
149 + {
150 + callbackList.Add(value);
151 + if(callbackList.Count == 1)
152 + {
153 + var del = new _Windows_Kinect_MultiSourceFrameArrivedEventArgs_Delegate(Windows_Kinect_MultiSourceFrameArrivedEventArgs_Delegate_Handler);
154 + _Windows_Kinect_MultiSourceFrameArrivedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
155 + Windows_Kinect_MultiSourceFrameReader_add_MultiSourceFrameArrived(_pNative, del, false);
156 + }
157 + }
158 + }
159 + remove
160 + {
161 + if (_pNative == RootSystem.IntPtr.Zero)
162 + {
163 + return;
164 + }
165 +
166 + Windows_Kinect_MultiSourceFrameArrivedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
167 + var callbackList = Windows_Kinect_MultiSourceFrameArrivedEventArgs_Delegate_callbacks[_pNative];
168 + lock (callbackList)
169 + {
170 + callbackList.Remove(value);
171 + if(callbackList.Count == 0)
172 + {
173 + Windows_Kinect_MultiSourceFrameReader_add_MultiSourceFrameArrived(_pNative, Windows_Kinect_MultiSourceFrameArrivedEventArgs_Delegate_Handler, true);
174 + _Windows_Kinect_MultiSourceFrameArrivedEventArgs_Delegate_Handle.Free();
175 + }
176 + }
177 + }
178 + }
179 +
180 + private static RootSystem.Runtime.InteropServices.GCHandle _Windows_Data_PropertyChangedEventArgs_Delegate_Handle;
181 + [RootSystem.Runtime.InteropServices.UnmanagedFunctionPointer(RootSystem.Runtime.InteropServices.CallingConvention.Cdecl)]
182 + private delegate void _Windows_Data_PropertyChangedEventArgs_Delegate(RootSystem.IntPtr args, RootSystem.IntPtr pNative);
183 + private static Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>> Windows_Data_PropertyChangedEventArgs_Delegate_callbacks = new Helper.CollectionMap<RootSystem.IntPtr, List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>>>();
184 + [AOT.MonoPInvokeCallbackAttribute(typeof(_Windows_Data_PropertyChangedEventArgs_Delegate))]
185 + private static void Windows_Data_PropertyChangedEventArgs_Delegate_Handler(RootSystem.IntPtr result, RootSystem.IntPtr pNative)
186 + {
187 + List<RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs>> callbackList = null;
188 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryGetValue(pNative, out callbackList);
189 + lock(callbackList)
190 + {
191 + var objThis = Helper.NativeObjectCache.GetObject<MultiSourceFrameReader>(pNative);
192 + var args = new Windows.Data.PropertyChangedEventArgs(result);
193 + foreach(var func in callbackList)
194 + {
195 + Helper.EventPump.Instance.Enqueue(() => { try { func(objThis, args); } catch { } });
196 + }
197 + }
198 + }
199 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
200 + private static extern void Windows_Kinect_MultiSourceFrameReader_add_PropertyChanged(RootSystem.IntPtr pNative, _Windows_Data_PropertyChangedEventArgs_Delegate eventCallback, bool unsubscribe);
201 + public event RootSystem.EventHandler<Windows.Data.PropertyChangedEventArgs> PropertyChanged
202 + {
203 + add
204 + {
205 + Helper.EventPump.EnsureInitialized();
206 +
207 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
208 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
209 + lock (callbackList)
210 + {
211 + callbackList.Add(value);
212 + if(callbackList.Count == 1)
213 + {
214 + var del = new _Windows_Data_PropertyChangedEventArgs_Delegate(Windows_Data_PropertyChangedEventArgs_Delegate_Handler);
215 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle = RootSystem.Runtime.InteropServices.GCHandle.Alloc(del);
216 + Windows_Kinect_MultiSourceFrameReader_add_PropertyChanged(_pNative, del, false);
217 + }
218 + }
219 + }
220 + remove
221 + {
222 + if (_pNative == RootSystem.IntPtr.Zero)
223 + {
224 + return;
225 + }
226 +
227 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
228 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
229 + lock (callbackList)
230 + {
231 + callbackList.Remove(value);
232 + if(callbackList.Count == 0)
233 + {
234 + Windows_Kinect_MultiSourceFrameReader_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
235 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
236 + }
237 + }
238 + }
239 + }
240 +
241 +
242 + // Public Methods
243 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
244 + private static extern RootSystem.IntPtr Windows_Kinect_MultiSourceFrameReader_AcquireLatestFrame(RootSystem.IntPtr pNative);
245 + public Windows.Kinect.MultiSourceFrame AcquireLatestFrame()
246 + {
247 + if (_pNative == RootSystem.IntPtr.Zero)
248 + {
249 + throw new RootSystem.ObjectDisposedException("MultiSourceFrameReader");
250 + }
251 +
252 + RootSystem.IntPtr objectPointer = Windows_Kinect_MultiSourceFrameReader_AcquireLatestFrame(_pNative);
253 + Helper.ExceptionHelper.CheckLastError();
254 + if (objectPointer == RootSystem.IntPtr.Zero)
255 + {
256 + return null;
257 + }
258 +
259 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.MultiSourceFrame>(objectPointer, n => new Windows.Kinect.MultiSourceFrame(n));
260 + }
261 +
262 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
263 + private static extern void Windows_Kinect_MultiSourceFrameReader_Dispose(RootSystem.IntPtr pNative);
264 + public void Dispose()
265 + {
266 + if (_pNative == RootSystem.IntPtr.Zero)
267 + {
268 + return;
269 + }
270 +
271 + Dispose(true);
272 + RootSystem.GC.SuppressFinalize(this);
273 + }
274 +
275 + private void __EventCleanup()
276 + {
277 + {
278 + Windows_Kinect_MultiSourceFrameArrivedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
279 + var callbackList = Windows_Kinect_MultiSourceFrameArrivedEventArgs_Delegate_callbacks[_pNative];
280 + lock (callbackList)
281 + {
282 + if (callbackList.Count > 0)
283 + {
284 + callbackList.Clear();
285 + if (_pNative != RootSystem.IntPtr.Zero)
286 + {
287 + Windows_Kinect_MultiSourceFrameReader_add_MultiSourceFrameArrived(_pNative, Windows_Kinect_MultiSourceFrameArrivedEventArgs_Delegate_Handler, true);
288 + }
289 + _Windows_Kinect_MultiSourceFrameArrivedEventArgs_Delegate_Handle.Free();
290 + }
291 + }
292 + }
293 + {
294 + Windows_Data_PropertyChangedEventArgs_Delegate_callbacks.TryAddDefault(_pNative);
295 + var callbackList = Windows_Data_PropertyChangedEventArgs_Delegate_callbacks[_pNative];
296 + lock (callbackList)
297 + {
298 + if (callbackList.Count > 0)
299 + {
300 + callbackList.Clear();
301 + if (_pNative != RootSystem.IntPtr.Zero)
302 + {
303 + Windows_Kinect_MultiSourceFrameReader_add_PropertyChanged(_pNative, Windows_Data_PropertyChangedEventArgs_Delegate_Handler, true);
304 + }
305 + _Windows_Data_PropertyChangedEventArgs_Delegate_Handle.Free();
306 + }
307 + }
308 + }
309 + }
310 + }
311 +
312 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.MultiSourceFrameReference
8 + //
9 + public sealed partial class MultiSourceFrameReference : Helper.INativeWrapper
10 +
11 + {
12 + internal RootSystem.IntPtr _pNative;
13 + RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } }
14 +
15 + // Constructors and Finalizers
16 + internal MultiSourceFrameReference(RootSystem.IntPtr pNative)
17 + {
18 + _pNative = pNative;
19 + Windows_Kinect_MultiSourceFrameReference_AddRefObject(ref _pNative);
20 + }
21 +
22 + ~MultiSourceFrameReference()
23 + {
24 + Dispose(false);
25 + }
26 +
27 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
28 + private static extern void Windows_Kinect_MultiSourceFrameReference_ReleaseObject(ref RootSystem.IntPtr pNative);
29 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
30 + private static extern void Windows_Kinect_MultiSourceFrameReference_AddRefObject(ref RootSystem.IntPtr pNative);
31 + private void Dispose(bool disposing)
32 + {
33 + if (_pNative == RootSystem.IntPtr.Zero)
34 + {
35 + return;
36 + }
37 +
38 + __EventCleanup();
39 +
40 + Helper.NativeObjectCache.RemoveObject<MultiSourceFrameReference>(_pNative);
41 + Windows_Kinect_MultiSourceFrameReference_ReleaseObject(ref _pNative);
42 +
43 + _pNative = RootSystem.IntPtr.Zero;
44 + }
45 +
46 +
47 + // Public Methods
48 + [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)]
49 + private static extern RootSystem.IntPtr Windows_Kinect_MultiSourceFrameReference_AcquireFrame(RootSystem.IntPtr pNative);
50 + public Windows.Kinect.MultiSourceFrame AcquireFrame()
51 + {
52 + if (_pNative == RootSystem.IntPtr.Zero)
53 + {
54 + throw new RootSystem.ObjectDisposedException("MultiSourceFrameReference");
55 + }
56 +
57 + RootSystem.IntPtr objectPointer = Windows_Kinect_MultiSourceFrameReference_AcquireFrame(_pNative);
58 + Helper.ExceptionHelper.CheckLastError();
59 + if (objectPointer == RootSystem.IntPtr.Zero)
60 + {
61 + return null;
62 + }
63 +
64 + return Helper.NativeObjectCache.CreateOrGetObject<Windows.Kinect.MultiSourceFrame>(objectPointer, n => new Windows.Kinect.MultiSourceFrame(n));
65 + }
66 +
67 + private void __EventCleanup()
68 + {
69 + }
70 + }
71 +
72 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.TrackingConfidence
8 + //
9 + public enum TrackingConfidence : int
10 + {
11 + Low =0,
12 + High =1,
13 + }
14 +
15 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.TrackingState
8 + //
9 + public enum TrackingState : int
10 + {
11 + NotTracked =0,
12 + Inferred =1,
13 + Tracked =2,
14 + }
15 +
16 +}
1 +using RootSystem = System;
2 +using System.Linq;
3 +using System.Collections.Generic;
4 +namespace Windows.Kinect
5 +{
6 + //
7 + // Windows.Kinect.Vector4
8 + //
9 + [RootSystem.Runtime.InteropServices.StructLayout(RootSystem.Runtime.InteropServices.LayoutKind.Sequential)]
10 + public struct Vector4
11 + {
12 + public float X { get; set; }
13 + public float Y { get; set; }
14 + public float Z { get; set; }
15 + public float W { get; set; }
16 +
17 + public override int GetHashCode()
18 + {
19 + return X.GetHashCode() ^ Y.GetHashCode() ^ Z.GetHashCode() ^ W.GetHashCode();
20 + }
21 +
22 + public override bool Equals(object obj)
23 + {
24 + if (!(obj is Vector4))
25 + {
26 + return false;
27 + }
28 +
29 + return this.Equals((Vector4)obj);
30 + }
31 +
32 + public bool Equals(Vector4 obj)
33 + {
34 + return X.Equals(obj.X) && Y.Equals(obj.Y) && Z.Equals(obj.Z) && W.Equals(obj.W);
35 + }
36 +
37 + public static bool operator ==(Vector4 a, Vector4 b)
38 + {
39 + return a.Equals(b);
40 + }
41 +
42 + public static bool operator !=(Vector4 a, Vector4 b)
43 + {
44 + return !(a.Equals(b));
45 + }
46 + }
47 +
48 +}
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!1107 &-3831123534373382056
4 +AnimatorStateMachine:
5 + serializedVersion: 5
6 + m_ObjectHideFlags: 1
7 + m_CorrespondingSourceObject: {fileID: 0}
8 + m_PrefabInstance: {fileID: 0}
9 + m_PrefabAsset: {fileID: 0}
10 + m_Name: Base Layer
11 + m_ChildStates: []
12 + m_ChildStateMachines: []
13 + m_AnyStateTransitions: []
14 + m_EntryTransitions: []
15 + m_StateMachineTransitions: {}
16 + m_StateMachineBehaviours:
17 + - {fileID: 7076032577301773451}
18 + m_AnyStatePosition: {x: 50, y: 20, z: 0}
19 + m_EntryPosition: {x: 50, y: 120, z: 0}
20 + m_ExitPosition: {x: 800, y: 120, z: 0}
21 + m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
22 + m_DefaultState: {fileID: 0}
23 +--- !u!91 &9100000
24 +AnimatorController:
25 + m_ObjectHideFlags: 0
26 + m_CorrespondingSourceObject: {fileID: 0}
27 + m_PrefabInstance: {fileID: 0}
28 + m_PrefabAsset: {fileID: 0}
29 + m_Name: TestRun
30 + serializedVersion: 5
31 + m_AnimatorParameters: []
32 + m_AnimatorLayers:
33 + - serializedVersion: 5
34 + m_Name: Base Layer
35 + m_StateMachine: {fileID: -3831123534373382056}
36 + m_Mask: {fileID: 0}
37 + m_Motions: []
38 + m_Behaviours: []
39 + m_BlendingMode: 0
40 + m_SyncedLayerIndex: -1
41 + m_DefaultWeight: 0
42 + m_IKPass: 0
43 + m_SyncedLayerAffectsTiming: 0
44 + m_Controller: {fileID: 9100000}
45 +--- !u!114 &7076032577301773451
46 +MonoBehaviour:
47 + m_ObjectHideFlags: 1
48 + m_CorrespondingSourceObject: {fileID: 0}
49 + m_PrefabInstance: {fileID: 0}
50 + m_PrefabAsset: {fileID: 0}
51 + m_GameObject: {fileID: 0}
52 + m_Enabled: 1
53 + m_EditorHideFlags: 0
54 + m_Script: {fileID: 11500000, guid: 3709b75a3e1f5724090fd84e57d011b9, type: 3}
55 + m_Name:
56 + m_EditorClassIdentifier:
No preview for this file type
1 +{
2 + "dependencies": {
3 + "com.unity.2d.sprite": "1.0.0",
4 + "com.unity.collab-proxy": "1.2.16",
5 + "com.unity.ide.rider": "1.1.4",
6 + "com.unity.ide.vscode": "1.1.4",
7 + "com.unity.quicksearch": "1.6.0-preview.7",
8 + "com.unity.test-framework": "1.1.13",
9 + "com.unity.textmeshpro": "2.0.1",
10 + "com.unity.timeline": "1.2.14",
11 + "com.unity.ugui": "1.0.0",
12 + "com.unity.modules.ai": "1.0.0",
13 + "com.unity.modules.androidjni": "1.0.0",
14 + "com.unity.modules.animation": "1.0.0",
15 + "com.unity.modules.assetbundle": "1.0.0",
16 + "com.unity.modules.audio": "1.0.0",
17 + "com.unity.modules.cloth": "1.0.0",
18 + "com.unity.modules.director": "1.0.0",
19 + "com.unity.modules.imageconversion": "1.0.0",
20 + "com.unity.modules.imgui": "1.0.0",
21 + "com.unity.modules.jsonserialize": "1.0.0",
22 + "com.unity.modules.particlesystem": "1.0.0",
23 + "com.unity.modules.physics": "1.0.0",
24 + "com.unity.modules.physics2d": "1.0.0",
25 + "com.unity.modules.screencapture": "1.0.0",
26 + "com.unity.modules.terrain": "1.0.0",
27 + "com.unity.modules.terrainphysics": "1.0.0",
28 + "com.unity.modules.tilemap": "1.0.0",
29 + "com.unity.modules.ui": "1.0.0",
30 + "com.unity.modules.uielements": "1.0.0",
31 + "com.unity.modules.umbra": "1.0.0",
32 + "com.unity.modules.unityanalytics": "1.0.0",
33 + "com.unity.modules.unitywebrequest": "1.0.0",
34 + "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
35 + "com.unity.modules.unitywebrequestaudio": "1.0.0",
36 + "com.unity.modules.unitywebrequesttexture": "1.0.0",
37 + "com.unity.modules.unitywebrequestwww": "1.0.0",
38 + "com.unity.modules.vehicles": "1.0.0",
39 + "com.unity.modules.video": "1.0.0",
40 + "com.unity.modules.vr": "1.0.0",
41 + "com.unity.modules.wind": "1.0.0",
42 + "com.unity.modules.xr": "1.0.0"
43 + }
44 +}
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!11 &1
4 +AudioManager:
5 + m_ObjectHideFlags: 0
6 + serializedVersion: 2
7 + m_Volume: 1
8 + Rolloff Scale: 1
9 + Doppler Factor: 1
10 + Default Speaker Mode: 2
11 + m_SampleRate: 0
12 + m_DSPBufferSize: 1024
13 + m_VirtualVoiceCount: 512
14 + m_RealVoiceCount: 32
15 + m_SpatializerPlugin:
16 + m_AmbisonicDecoderPlugin:
17 + m_DisableAudio: 0
18 + m_VirtualizeEffects: 1
19 + m_RequestedDSPBufferSize: 1024
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!236 &1
4 +ClusterInputManager:
5 + m_ObjectHideFlags: 0
6 + m_Inputs: []
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!55 &1
4 +PhysicsManager:
5 + m_ObjectHideFlags: 0
6 + serializedVersion: 11
7 + m_Gravity: {x: 0, y: -9.81, z: 0}
8 + m_DefaultMaterial: {fileID: 0}
9 + m_BounceThreshold: 2
10 + m_SleepThreshold: 0.005
11 + m_DefaultContactOffset: 0.01
12 + m_DefaultSolverIterations: 6
13 + m_DefaultSolverVelocityIterations: 1
14 + m_QueriesHitBackfaces: 0
15 + m_QueriesHitTriggers: 1
16 + m_EnableAdaptiveForce: 0
17 + m_ClothInterCollisionDistance: 0
18 + m_ClothInterCollisionStiffness: 0
19 + m_ContactsGeneration: 1
20 + m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
21 + m_AutoSimulation: 1
22 + m_AutoSyncTransforms: 0
23 + m_ReuseCollisionCallbacks: 1
24 + m_ClothInterCollisionSettingsToggle: 0
25 + m_ContactPairsMode: 0
26 + m_BroadphaseType: 0
27 + m_WorldBounds:
28 + m_Center: {x: 0, y: 0, z: 0}
29 + m_Extent: {x: 250, y: 250, z: 250}
30 + m_WorldSubdivisions: 8
31 + m_FrictionType: 0
32 + m_EnableEnhancedDeterminism: 0
33 + m_EnableUnifiedHeightmaps: 1
34 + m_DefaultMaxAngluarSpeed: 7
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!1045 &1
4 +EditorBuildSettings:
5 + m_ObjectHideFlags: 0
6 + serializedVersion: 2
7 + m_Scenes: []
8 + m_configObjects: {}
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!159 &1
4 +EditorSettings:
5 + m_ObjectHideFlags: 0
6 + serializedVersion: 9
7 + m_ExternalVersionControlSupport: Visible Meta Files
8 + m_SerializationMode: 2
9 + m_LineEndingsForNewScripts: 0
10 + m_DefaultBehaviorMode: 0
11 + m_PrefabRegularEnvironment: {fileID: 0}
12 + m_PrefabUIEnvironment: {fileID: 0}
13 + m_SpritePackerMode: 0
14 + m_SpritePackerPaddingPower: 1
15 + m_EtcTextureCompressorBehavior: 1
16 + m_EtcTextureFastCompressor: 1
17 + m_EtcTextureNormalCompressor: 2
18 + m_EtcTextureBestCompressor: 4
19 + m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp;asmref
20 + m_ProjectGenerationRootNamespace:
21 + m_CollabEditorSettings:
22 + inProgressEnabled: 1
23 + m_EnableTextureStreamingInEditMode: 1
24 + m_EnableTextureStreamingInPlayMode: 1
25 + m_AsyncShaderCompilation: 1
26 + m_EnterPlayModeOptionsEnabled: 0
27 + m_EnterPlayModeOptions: 3
28 + m_ShowLightmapResolutionOverlay: 1
29 + m_UseLegacyProbeSampleCount: 0
30 + m_AssetPipelineMode: 1
31 + m_CacheServerMode: 0
32 + m_CacheServerEndpoint:
33 + m_CacheServerNamespacePrefix: default
34 + m_CacheServerEnableDownload: 1
35 + m_CacheServerEnableUpload: 1
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!30 &1
4 +GraphicsSettings:
5 + m_ObjectHideFlags: 0
6 + serializedVersion: 13
7 + m_Deferred:
8 + m_Mode: 1
9 + m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0}
10 + m_DeferredReflections:
11 + m_Mode: 1
12 + m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0}
13 + m_ScreenSpaceShadows:
14 + m_Mode: 1
15 + m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0}
16 + m_LegacyDeferred:
17 + m_Mode: 1
18 + m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0}
19 + m_DepthNormals:
20 + m_Mode: 1
21 + m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0}
22 + m_MotionVectors:
23 + m_Mode: 1
24 + m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0}
25 + m_LightHalo:
26 + m_Mode: 1
27 + m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0}
28 + m_LensFlare:
29 + m_Mode: 1
30 + m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0}
31 + m_AlwaysIncludedShaders:
32 + - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0}
33 + - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0}
34 + - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0}
35 + - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0}
36 + - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0}
37 + - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0}
38 + m_PreloadedShaders: []
39 + m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000,
40 + type: 0}
41 + m_CustomRenderPipeline: {fileID: 0}
42 + m_TransparencySortMode: 0
43 + m_TransparencySortAxis: {x: 0, y: 0, z: 1}
44 + m_DefaultRenderingPath: 1
45 + m_DefaultMobileRenderingPath: 1
46 + m_TierSettings: []
47 + m_LightmapStripping: 0
48 + m_FogStripping: 0
49 + m_InstancingStripping: 0
50 + m_LightmapKeepPlain: 1
51 + m_LightmapKeepDirCombined: 1
52 + m_LightmapKeepDynamicPlain: 1
53 + m_LightmapKeepDynamicDirCombined: 1
54 + m_LightmapKeepShadowMask: 1
55 + m_LightmapKeepSubtractive: 1
56 + m_FogKeepLinear: 1
57 + m_FogKeepExp: 1
58 + m_FogKeepExp2: 1
59 + m_AlbedoSwatchInfos: []
60 + m_LightsUseLinearIntensity: 0
61 + m_LightsUseColorTemperature: 0
62 + m_LogWhenShaderIsCompiled: 0
63 + m_AllowEnlightenSupportForUpgradedProject: 0
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!13 &1
4 +InputManager:
5 + m_ObjectHideFlags: 0
6 + serializedVersion: 2
7 + m_Axes:
8 + - serializedVersion: 3
9 + m_Name: Horizontal
10 + descriptiveName:
11 + descriptiveNegativeName:
12 + negativeButton: left
13 + positiveButton: right
14 + altNegativeButton: a
15 + altPositiveButton: d
16 + gravity: 3
17 + dead: 0.001
18 + sensitivity: 3
19 + snap: 1
20 + invert: 0
21 + type: 0
22 + axis: 0
23 + joyNum: 0
24 + - serializedVersion: 3
25 + m_Name: Vertical
26 + descriptiveName:
27 + descriptiveNegativeName:
28 + negativeButton: down
29 + positiveButton: up
30 + altNegativeButton: s
31 + altPositiveButton: w
32 + gravity: 3
33 + dead: 0.001
34 + sensitivity: 3
35 + snap: 1
36 + invert: 0
37 + type: 0
38 + axis: 0
39 + joyNum: 0
40 + - serializedVersion: 3
41 + m_Name: Fire1
42 + descriptiveName:
43 + descriptiveNegativeName:
44 + negativeButton:
45 + positiveButton: left ctrl
46 + altNegativeButton:
47 + altPositiveButton: mouse 0
48 + gravity: 1000
49 + dead: 0.001
50 + sensitivity: 1000
51 + snap: 0
52 + invert: 0
53 + type: 0
54 + axis: 0
55 + joyNum: 0
56 + - serializedVersion: 3
57 + m_Name: Fire2
58 + descriptiveName:
59 + descriptiveNegativeName:
60 + negativeButton:
61 + positiveButton: left alt
62 + altNegativeButton:
63 + altPositiveButton: mouse 1
64 + gravity: 1000
65 + dead: 0.001
66 + sensitivity: 1000
67 + snap: 0
68 + invert: 0
69 + type: 0
70 + axis: 0
71 + joyNum: 0
72 + - serializedVersion: 3
73 + m_Name: Fire3
74 + descriptiveName:
75 + descriptiveNegativeName:
76 + negativeButton:
77 + positiveButton: left shift
78 + altNegativeButton:
79 + altPositiveButton: mouse 2
80 + gravity: 1000
81 + dead: 0.001
82 + sensitivity: 1000
83 + snap: 0
84 + invert: 0
85 + type: 0
86 + axis: 0
87 + joyNum: 0
88 + - serializedVersion: 3
89 + m_Name: Jump
90 + descriptiveName:
91 + descriptiveNegativeName:
92 + negativeButton:
93 + positiveButton: space
94 + altNegativeButton:
95 + altPositiveButton:
96 + gravity: 1000
97 + dead: 0.001
98 + sensitivity: 1000
99 + snap: 0
100 + invert: 0
101 + type: 0
102 + axis: 0
103 + joyNum: 0
104 + - serializedVersion: 3
105 + m_Name: Mouse X
106 + descriptiveName:
107 + descriptiveNegativeName:
108 + negativeButton:
109 + positiveButton:
110 + altNegativeButton:
111 + altPositiveButton:
112 + gravity: 0
113 + dead: 0
114 + sensitivity: 0.1
115 + snap: 0
116 + invert: 0
117 + type: 1
118 + axis: 0
119 + joyNum: 0
120 + - serializedVersion: 3
121 + m_Name: Mouse Y
122 + descriptiveName:
123 + descriptiveNegativeName:
124 + negativeButton:
125 + positiveButton:
126 + altNegativeButton:
127 + altPositiveButton:
128 + gravity: 0
129 + dead: 0
130 + sensitivity: 0.1
131 + snap: 0
132 + invert: 0
133 + type: 1
134 + axis: 1
135 + joyNum: 0
136 + - serializedVersion: 3
137 + m_Name: Mouse ScrollWheel
138 + descriptiveName:
139 + descriptiveNegativeName:
140 + negativeButton:
141 + positiveButton:
142 + altNegativeButton:
143 + altPositiveButton:
144 + gravity: 0
145 + dead: 0
146 + sensitivity: 0.1
147 + snap: 0
148 + invert: 0
149 + type: 1
150 + axis: 2
151 + joyNum: 0
152 + - serializedVersion: 3
153 + m_Name: Horizontal
154 + descriptiveName:
155 + descriptiveNegativeName:
156 + negativeButton:
157 + positiveButton:
158 + altNegativeButton:
159 + altPositiveButton:
160 + gravity: 0
161 + dead: 0.19
162 + sensitivity: 1
163 + snap: 0
164 + invert: 0
165 + type: 2
166 + axis: 0
167 + joyNum: 0
168 + - serializedVersion: 3
169 + m_Name: Vertical
170 + descriptiveName:
171 + descriptiveNegativeName:
172 + negativeButton:
173 + positiveButton:
174 + altNegativeButton:
175 + altPositiveButton:
176 + gravity: 0
177 + dead: 0.19
178 + sensitivity: 1
179 + snap: 0
180 + invert: 1
181 + type: 2
182 + axis: 1
183 + joyNum: 0
184 + - serializedVersion: 3
185 + m_Name: Fire1
186 + descriptiveName:
187 + descriptiveNegativeName:
188 + negativeButton:
189 + positiveButton: joystick button 0
190 + altNegativeButton:
191 + altPositiveButton:
192 + gravity: 1000
193 + dead: 0.001
194 + sensitivity: 1000
195 + snap: 0
196 + invert: 0
197 + type: 0
198 + axis: 0
199 + joyNum: 0
200 + - serializedVersion: 3
201 + m_Name: Fire2
202 + descriptiveName:
203 + descriptiveNegativeName:
204 + negativeButton:
205 + positiveButton: joystick button 1
206 + altNegativeButton:
207 + altPositiveButton:
208 + gravity: 1000
209 + dead: 0.001
210 + sensitivity: 1000
211 + snap: 0
212 + invert: 0
213 + type: 0
214 + axis: 0
215 + joyNum: 0
216 + - serializedVersion: 3
217 + m_Name: Fire3
218 + descriptiveName:
219 + descriptiveNegativeName:
220 + negativeButton:
221 + positiveButton: joystick button 2
222 + altNegativeButton:
223 + altPositiveButton:
224 + gravity: 1000
225 + dead: 0.001
226 + sensitivity: 1000
227 + snap: 0
228 + invert: 0
229 + type: 0
230 + axis: 0
231 + joyNum: 0
232 + - serializedVersion: 3
233 + m_Name: Jump
234 + descriptiveName:
235 + descriptiveNegativeName:
236 + negativeButton:
237 + positiveButton: joystick button 3
238 + altNegativeButton:
239 + altPositiveButton:
240 + gravity: 1000
241 + dead: 0.001
242 + sensitivity: 1000
243 + snap: 0
244 + invert: 0
245 + type: 0
246 + axis: 0
247 + joyNum: 0
248 + - serializedVersion: 3
249 + m_Name: Submit
250 + descriptiveName:
251 + descriptiveNegativeName:
252 + negativeButton:
253 + positiveButton: return
254 + altNegativeButton:
255 + altPositiveButton: joystick button 0
256 + gravity: 1000
257 + dead: 0.001
258 + sensitivity: 1000
259 + snap: 0
260 + invert: 0
261 + type: 0
262 + axis: 0
263 + joyNum: 0
264 + - serializedVersion: 3
265 + m_Name: Submit
266 + descriptiveName:
267 + descriptiveNegativeName:
268 + negativeButton:
269 + positiveButton: enter
270 + altNegativeButton:
271 + altPositiveButton: space
272 + gravity: 1000
273 + dead: 0.001
274 + sensitivity: 1000
275 + snap: 0
276 + invert: 0
277 + type: 0
278 + axis: 0
279 + joyNum: 0
280 + - serializedVersion: 3
281 + m_Name: Cancel
282 + descriptiveName:
283 + descriptiveNegativeName:
284 + negativeButton:
285 + positiveButton: escape
286 + altNegativeButton:
287 + altPositiveButton: joystick button 1
288 + gravity: 1000
289 + dead: 0.001
290 + sensitivity: 1000
291 + snap: 0
292 + invert: 0
293 + type: 0
294 + axis: 0
295 + joyNum: 0
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!126 &1
4 +NavMeshProjectSettings:
5 + m_ObjectHideFlags: 0
6 + serializedVersion: 2
7 + areas:
8 + - name: Walkable
9 + cost: 1
10 + - name: Not Walkable
11 + cost: 1
12 + - name: Jump
13 + cost: 2
14 + - name:
15 + cost: 1
16 + - name:
17 + cost: 1
18 + - name:
19 + cost: 1
20 + - name:
21 + cost: 1
22 + - name:
23 + cost: 1
24 + - name:
25 + cost: 1
26 + - name:
27 + cost: 1
28 + - name:
29 + cost: 1
30 + - name:
31 + cost: 1
32 + - name:
33 + cost: 1
34 + - name:
35 + cost: 1
36 + - name:
37 + cost: 1
38 + - name:
39 + cost: 1
40 + - name:
41 + cost: 1
42 + - name:
43 + cost: 1
44 + - name:
45 + cost: 1
46 + - name:
47 + cost: 1
48 + - name:
49 + cost: 1
50 + - name:
51 + cost: 1
52 + - name:
53 + cost: 1
54 + - name:
55 + cost: 1
56 + - name:
57 + cost: 1
58 + - name:
59 + cost: 1
60 + - name:
61 + cost: 1
62 + - name:
63 + cost: 1
64 + - name:
65 + cost: 1
66 + - name:
67 + cost: 1
68 + - name:
69 + cost: 1
70 + - name:
71 + cost: 1
72 + m_LastAgentTypeID: -887442657
73 + m_Settings:
74 + - serializedVersion: 2
75 + agentTypeID: 0
76 + agentRadius: 0.5
77 + agentHeight: 2
78 + agentSlope: 45
79 + agentClimb: 0.75
80 + ledgeDropHeight: 0
81 + maxJumpAcrossDistance: 0
82 + minRegionArea: 2
83 + manualCellSize: 0
84 + cellSize: 0.16666667
85 + manualTileSize: 0
86 + tileSize: 256
87 + accuratePlacement: 0
88 + debug:
89 + m_Flags: 0
90 + m_SettingNames:
91 + - Humanoid
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!19 &1
4 +Physics2DSettings:
5 + m_ObjectHideFlags: 0
6 + serializedVersion: 4
7 + m_Gravity: {x: 0, y: -9.81}
8 + m_DefaultMaterial: {fileID: 0}
9 + m_VelocityIterations: 8
10 + m_PositionIterations: 3
11 + m_VelocityThreshold: 1
12 + m_MaxLinearCorrection: 0.2
13 + m_MaxAngularCorrection: 8
14 + m_MaxTranslationSpeed: 100
15 + m_MaxRotationSpeed: 360
16 + m_BaumgarteScale: 0.2
17 + m_BaumgarteTimeOfImpactScale: 0.75
18 + m_TimeToSleep: 0.5
19 + m_LinearSleepTolerance: 0.01
20 + m_AngularSleepTolerance: 2
21 + m_DefaultContactOffset: 0.01
22 + m_JobOptions:
23 + serializedVersion: 2
24 + useMultithreading: 0
25 + useConsistencySorting: 0
26 + m_InterpolationPosesPerJob: 100
27 + m_NewContactsPerJob: 30
28 + m_CollideContactsPerJob: 100
29 + m_ClearFlagsPerJob: 200
30 + m_ClearBodyForcesPerJob: 200
31 + m_SyncDiscreteFixturesPerJob: 50
32 + m_SyncContinuousFixturesPerJob: 50
33 + m_FindNearestContactsPerJob: 100
34 + m_UpdateTriggerContactsPerJob: 100
35 + m_IslandSolverCostThreshold: 100
36 + m_IslandSolverBodyCostScale: 1
37 + m_IslandSolverContactCostScale: 10
38 + m_IslandSolverJointCostScale: 10
39 + m_IslandSolverBodiesPerJob: 50
40 + m_IslandSolverContactsPerJob: 50
41 + m_AutoSimulation: 1
42 + m_QueriesHitTriggers: 1
43 + m_QueriesStartInColliders: 1
44 + m_CallbacksOnDisable: 1
45 + m_ReuseCollisionCallbacks: 1
46 + m_AutoSyncTransforms: 0
47 + m_AlwaysShowColliders: 0
48 + m_ShowColliderSleep: 1
49 + m_ShowColliderContacts: 0
50 + m_ShowColliderAABB: 0
51 + m_ContactArrowScale: 0.2
52 + m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412}
53 + m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432}
54 + m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745}
55 + m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804}
56 + m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!1386491679 &1
4 +PresetManager:
5 + m_ObjectHideFlags: 0
6 + serializedVersion: 2
7 + m_DefaultPresets: {}
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!129 &1
4 +PlayerSettings:
5 + m_ObjectHideFlags: 0
6 + serializedVersion: 20
7 + productGUID: 639be6b48c1dd9b4b92b0b271a06260a
8 + AndroidProfiler: 0
9 + AndroidFilterTouchesWhenObscured: 0
10 + AndroidEnableSustainedPerformanceMode: 0
11 + defaultScreenOrientation: 4
12 + targetDevice: 2
13 + useOnDemandResources: 0
14 + accelerometerFrequency: 60
15 + companyName: DefaultCompany
16 + productName: capstone
17 + defaultCursor: {fileID: 0}
18 + cursorHotspot: {x: 0, y: 0}
19 + m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1}
20 + m_ShowUnitySplashScreen: 1
21 + m_ShowUnitySplashLogo: 1
22 + m_SplashScreenOverlayOpacity: 1
23 + m_SplashScreenAnimation: 1
24 + m_SplashScreenLogoStyle: 1
25 + m_SplashScreenDrawMode: 0
26 + m_SplashScreenBackgroundAnimationZoom: 1
27 + m_SplashScreenLogoAnimationZoom: 1
28 + m_SplashScreenBackgroundLandscapeAspect: 1
29 + m_SplashScreenBackgroundPortraitAspect: 1
30 + m_SplashScreenBackgroundLandscapeUvs:
31 + serializedVersion: 2
32 + x: 0
33 + y: 0
34 + width: 1
35 + height: 1
36 + m_SplashScreenBackgroundPortraitUvs:
37 + serializedVersion: 2
38 + x: 0
39 + y: 0
40 + width: 1
41 + height: 1
42 + m_SplashScreenLogos: []
43 + m_VirtualRealitySplashScreen: {fileID: 0}
44 + m_HolographicTrackingLossScreen: {fileID: 0}
45 + defaultScreenWidth: 1024
46 + defaultScreenHeight: 768
47 + defaultScreenWidthWeb: 960
48 + defaultScreenHeightWeb: 600
49 + m_StereoRenderingPath: 0
50 + m_ActiveColorSpace: 0
51 + m_MTRendering: 1
52 + m_StackTraceTypes: 010000000100000001000000010000000100000001000000
53 + iosShowActivityIndicatorOnLoading: -1
54 + androidShowActivityIndicatorOnLoading: -1
55 + iosUseCustomAppBackgroundBehavior: 0
56 + iosAllowHTTPDownload: 1
57 + allowedAutorotateToPortrait: 1
58 + allowedAutorotateToPortraitUpsideDown: 1
59 + allowedAutorotateToLandscapeRight: 1
60 + allowedAutorotateToLandscapeLeft: 1
61 + useOSAutorotation: 1
62 + use32BitDisplayBuffer: 1
63 + preserveFramebufferAlpha: 0
64 + disableDepthAndStencilBuffers: 0
65 + androidStartInFullscreen: 1
66 + androidRenderOutsideSafeArea: 1
67 + androidUseSwappy: 0
68 + androidBlitType: 0
69 + defaultIsNativeResolution: 1
70 + macRetinaSupport: 1
71 + runInBackground: 1
72 + captureSingleScreen: 0
73 + muteOtherAudioSources: 0
74 + Prepare IOS For Recording: 0
75 + Force IOS Speakers When Recording: 0
76 + deferSystemGesturesMode: 0
77 + hideHomeButton: 0
78 + submitAnalytics: 1
79 + usePlayerLog: 1
80 + bakeCollisionMeshes: 0
81 + forceSingleInstance: 0
82 + useFlipModelSwapchain: 1
83 + resizableWindow: 0
84 + useMacAppStoreValidation: 0
85 + macAppStoreCategory: public.app-category.games
86 + gpuSkinning: 1
87 + xboxPIXTextureCapture: 0
88 + xboxEnableAvatar: 0
89 + xboxEnableKinect: 0
90 + xboxEnableKinectAutoTracking: 0
91 + xboxEnableFitness: 0
92 + visibleInBackground: 1
93 + allowFullscreenSwitch: 1
94 + fullscreenMode: 1
95 + xboxSpeechDB: 0
96 + xboxEnableHeadOrientation: 0
97 + xboxEnableGuest: 0
98 + xboxEnablePIXSampling: 0
99 + metalFramebufferOnly: 0
100 + xboxOneResolution: 0
101 + xboxOneSResolution: 0
102 + xboxOneXResolution: 3
103 + xboxOneMonoLoggingLevel: 0
104 + xboxOneLoggingLevel: 1
105 + xboxOneDisableEsram: 0
106 + xboxOneEnableTypeOptimization: 0
107 + xboxOnePresentImmediateThreshold: 0
108 + switchQueueCommandMemory: 0
109 + switchQueueControlMemory: 16384
110 + switchQueueComputeMemory: 262144
111 + switchNVNShaderPoolsGranularity: 33554432
112 + switchNVNDefaultPoolsGranularity: 16777216
113 + switchNVNOtherPoolsGranularity: 16777216
114 + vulkanNumSwapchainBuffers: 3
115 + vulkanEnableSetSRGBWrite: 0
116 + m_SupportedAspectRatios:
117 + 4:3: 1
118 + 5:4: 1
119 + 16:10: 1
120 + 16:9: 1
121 + Others: 1
122 + bundleVersion: 0.1
123 + preloadedAssets: []
124 + metroInputSource: 0
125 + wsaTransparentSwapchain: 0
126 + m_HolographicPauseOnTrackingLoss: 1
127 + xboxOneDisableKinectGpuReservation: 1
128 + xboxOneEnable7thCore: 1
129 + vrSettings:
130 + cardboard:
131 + depthFormat: 0
132 + enableTransitionView: 0
133 + daydream:
134 + depthFormat: 0
135 + useSustainedPerformanceMode: 0
136 + enableVideoLayer: 0
137 + useProtectedVideoMemory: 0
138 + minimumSupportedHeadTracking: 0
139 + maximumSupportedHeadTracking: 1
140 + hololens:
141 + depthFormat: 1
142 + depthBufferSharingEnabled: 1
143 + lumin:
144 + depthFormat: 0
145 + frameTiming: 2
146 + enableGLCache: 0
147 + glCacheMaxBlobSize: 524288
148 + glCacheMaxFileSize: 8388608
149 + oculus:
150 + sharedDepthBuffer: 1
151 + dashSupport: 1
152 + lowOverheadMode: 0
153 + protectedContext: 0
154 + v2Signing: 1
155 + enable360StereoCapture: 0
156 + isWsaHolographicRemotingEnabled: 0
157 + enableFrameTimingStats: 0
158 + useHDRDisplay: 0
159 + D3DHDRBitDepth: 0
160 + m_ColorGamuts: 00000000
161 + targetPixelDensity: 30
162 + resolutionScalingMode: 0
163 + androidSupportedAspectRatio: 1
164 + androidMaxAspectRatio: 2.1
165 + applicationIdentifier: {}
166 + buildNumber: {}
167 + AndroidBundleVersionCode: 1
168 + AndroidMinSdkVersion: 19
169 + AndroidTargetSdkVersion: 0
170 + AndroidPreferredInstallLocation: 1
171 + aotOptions:
172 + stripEngineCode: 1
173 + iPhoneStrippingLevel: 0
174 + iPhoneScriptCallOptimization: 0
175 + ForceInternetPermission: 0
176 + ForceSDCardPermission: 0
177 + CreateWallpaper: 0
178 + APKExpansionFiles: 0
179 + keepLoadedShadersAlive: 0
180 + StripUnusedMeshComponents: 1
181 + VertexChannelCompressionMask: 4054
182 + iPhoneSdkVersion: 988
183 + iOSTargetOSVersionString: 10.0
184 + tvOSSdkVersion: 0
185 + tvOSRequireExtendedGameController: 0
186 + tvOSTargetOSVersionString: 10.0
187 + uIPrerenderedIcon: 0
188 + uIRequiresPersistentWiFi: 0
189 + uIRequiresFullScreen: 1
190 + uIStatusBarHidden: 1
191 + uIExitOnSuspend: 0
192 + uIStatusBarStyle: 0
193 + iPhoneSplashScreen: {fileID: 0}
194 + iPhoneHighResSplashScreen: {fileID: 0}
195 + iPhoneTallHighResSplashScreen: {fileID: 0}
196 + iPhone47inSplashScreen: {fileID: 0}
197 + iPhone55inPortraitSplashScreen: {fileID: 0}
198 + iPhone55inLandscapeSplashScreen: {fileID: 0}
199 + iPhone58inPortraitSplashScreen: {fileID: 0}
200 + iPhone58inLandscapeSplashScreen: {fileID: 0}
201 + iPadPortraitSplashScreen: {fileID: 0}
202 + iPadHighResPortraitSplashScreen: {fileID: 0}
203 + iPadLandscapeSplashScreen: {fileID: 0}
204 + iPadHighResLandscapeSplashScreen: {fileID: 0}
205 + iPhone65inPortraitSplashScreen: {fileID: 0}
206 + iPhone65inLandscapeSplashScreen: {fileID: 0}
207 + iPhone61inPortraitSplashScreen: {fileID: 0}
208 + iPhone61inLandscapeSplashScreen: {fileID: 0}
209 + appleTVSplashScreen: {fileID: 0}
210 + appleTVSplashScreen2x: {fileID: 0}
211 + tvOSSmallIconLayers: []
212 + tvOSSmallIconLayers2x: []
213 + tvOSLargeIconLayers: []
214 + tvOSLargeIconLayers2x: []
215 + tvOSTopShelfImageLayers: []
216 + tvOSTopShelfImageLayers2x: []
217 + tvOSTopShelfImageWideLayers: []
218 + tvOSTopShelfImageWideLayers2x: []
219 + iOSLaunchScreenType: 0
220 + iOSLaunchScreenPortrait: {fileID: 0}
221 + iOSLaunchScreenLandscape: {fileID: 0}
222 + iOSLaunchScreenBackgroundColor:
223 + serializedVersion: 2
224 + rgba: 0
225 + iOSLaunchScreenFillPct: 100
226 + iOSLaunchScreenSize: 100
227 + iOSLaunchScreenCustomXibPath:
228 + iOSLaunchScreeniPadType: 0
229 + iOSLaunchScreeniPadImage: {fileID: 0}
230 + iOSLaunchScreeniPadBackgroundColor:
231 + serializedVersion: 2
232 + rgba: 0
233 + iOSLaunchScreeniPadFillPct: 100
234 + iOSLaunchScreeniPadSize: 100
235 + iOSLaunchScreeniPadCustomXibPath:
236 + iOSUseLaunchScreenStoryboard: 0
237 + iOSLaunchScreenCustomStoryboardPath:
238 + iOSDeviceRequirements: []
239 + iOSURLSchemes: []
240 + iOSBackgroundModes: 0
241 + iOSMetalForceHardShadows: 0
242 + metalEditorSupport: 1
243 + metalAPIValidation: 1
244 + iOSRenderExtraFrameOnPause: 0
245 + appleDeveloperTeamID:
246 + iOSManualSigningProvisioningProfileID:
247 + tvOSManualSigningProvisioningProfileID:
248 + iOSManualSigningProvisioningProfileType: 0
249 + tvOSManualSigningProvisioningProfileType: 0
250 + appleEnableAutomaticSigning: 0
251 + iOSRequireARKit: 0
252 + iOSAutomaticallyDetectAndAddCapabilities: 1
253 + appleEnableProMotion: 0
254 + clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea
255 + templatePackageId: com.unity.template.3d@4.2.8
256 + templateDefaultScene: Assets/Scenes/SampleScene.unity
257 + AndroidTargetArchitectures: 1
258 + AndroidSplashScreenScale: 0
259 + androidSplashScreen: {fileID: 0}
260 + AndroidKeystoreName:
261 + AndroidKeyaliasName:
262 + AndroidBuildApkPerCpuArchitecture: 0
263 + AndroidTVCompatibility: 0
264 + AndroidIsGame: 1
265 + AndroidEnableTango: 0
266 + androidEnableBanner: 1
267 + androidUseLowAccuracyLocation: 0
268 + androidUseCustomKeystore: 0
269 + m_AndroidBanners:
270 + - width: 320
271 + height: 180
272 + banner: {fileID: 0}
273 + androidGamepadSupportLevel: 0
274 + AndroidValidateAppBundleSize: 1
275 + AndroidAppBundleSizeToValidate: 150
276 + m_BuildTargetIcons: []
277 + m_BuildTargetPlatformIcons: []
278 + m_BuildTargetBatching:
279 + - m_BuildTarget: Standalone
280 + m_StaticBatching: 1
281 + m_DynamicBatching: 0
282 + - m_BuildTarget: tvOS
283 + m_StaticBatching: 1
284 + m_DynamicBatching: 0
285 + - m_BuildTarget: Android
286 + m_StaticBatching: 1
287 + m_DynamicBatching: 0
288 + - m_BuildTarget: iPhone
289 + m_StaticBatching: 1
290 + m_DynamicBatching: 0
291 + - m_BuildTarget: WebGL
292 + m_StaticBatching: 0
293 + m_DynamicBatching: 0
294 + m_BuildTargetGraphicsJobs:
295 + - m_BuildTarget: MacStandaloneSupport
296 + m_GraphicsJobs: 0
297 + - m_BuildTarget: Switch
298 + m_GraphicsJobs: 1
299 + - m_BuildTarget: MetroSupport
300 + m_GraphicsJobs: 1
301 + - m_BuildTarget: AppleTVSupport
302 + m_GraphicsJobs: 0
303 + - m_BuildTarget: BJMSupport
304 + m_GraphicsJobs: 1
305 + - m_BuildTarget: LinuxStandaloneSupport
306 + m_GraphicsJobs: 1
307 + - m_BuildTarget: PS4Player
308 + m_GraphicsJobs: 1
309 + - m_BuildTarget: iOSSupport
310 + m_GraphicsJobs: 0
311 + - m_BuildTarget: WindowsStandaloneSupport
312 + m_GraphicsJobs: 1
313 + - m_BuildTarget: XboxOnePlayer
314 + m_GraphicsJobs: 1
315 + - m_BuildTarget: LuminSupport
316 + m_GraphicsJobs: 0
317 + - m_BuildTarget: AndroidPlayer
318 + m_GraphicsJobs: 0
319 + - m_BuildTarget: WebGLSupport
320 + m_GraphicsJobs: 0
321 + m_BuildTargetGraphicsJobMode:
322 + - m_BuildTarget: PS4Player
323 + m_GraphicsJobMode: 0
324 + - m_BuildTarget: XboxOnePlayer
325 + m_GraphicsJobMode: 0
326 + m_BuildTargetGraphicsAPIs:
327 + - m_BuildTarget: AndroidPlayer
328 + m_APIs: 150000000b000000
329 + m_Automatic: 0
330 + - m_BuildTarget: iOSSupport
331 + m_APIs: 10000000
332 + m_Automatic: 1
333 + - m_BuildTarget: AppleTVSupport
334 + m_APIs: 10000000
335 + m_Automatic: 0
336 + - m_BuildTarget: WebGLSupport
337 + m_APIs: 0b000000
338 + m_Automatic: 1
339 + m_BuildTargetVRSettings:
340 + - m_BuildTarget: Standalone
341 + m_Enabled: 0
342 + m_Devices:
343 + - Oculus
344 + - OpenVR
345 + openGLRequireES31: 0
346 + openGLRequireES31AEP: 0
347 + openGLRequireES32: 0
348 + m_TemplateCustomTags: {}
349 + mobileMTRendering:
350 + Android: 1
351 + iPhone: 1
352 + tvOS: 1
353 + m_BuildTargetGroupLightmapEncodingQuality: []
354 + m_BuildTargetGroupLightmapSettings: []
355 + playModeTestRunnerEnabled: 0
356 + runPlayModeTestAsEditModeTest: 0
357 + actionOnDotNetUnhandledException: 1
358 + enableInternalProfiler: 0
359 + logObjCUncaughtExceptions: 1
360 + enableCrashReportAPI: 0
361 + cameraUsageDescription:
362 + locationUsageDescription:
363 + microphoneUsageDescription:
364 + switchNetLibKey:
365 + switchSocketMemoryPoolSize: 6144
366 + switchSocketAllocatorPoolSize: 128
367 + switchSocketConcurrencyLimit: 14
368 + switchScreenResolutionBehavior: 2
369 + switchUseCPUProfiler: 0
370 + switchApplicationID: 0x01004b9000490000
371 + switchNSODependencies:
372 + switchTitleNames_0:
373 + switchTitleNames_1:
374 + switchTitleNames_2:
375 + switchTitleNames_3:
376 + switchTitleNames_4:
377 + switchTitleNames_5:
378 + switchTitleNames_6:
379 + switchTitleNames_7:
380 + switchTitleNames_8:
381 + switchTitleNames_9:
382 + switchTitleNames_10:
383 + switchTitleNames_11:
384 + switchTitleNames_12:
385 + switchTitleNames_13:
386 + switchTitleNames_14:
387 + switchPublisherNames_0:
388 + switchPublisherNames_1:
389 + switchPublisherNames_2:
390 + switchPublisherNames_3:
391 + switchPublisherNames_4:
392 + switchPublisherNames_5:
393 + switchPublisherNames_6:
394 + switchPublisherNames_7:
395 + switchPublisherNames_8:
396 + switchPublisherNames_9:
397 + switchPublisherNames_10:
398 + switchPublisherNames_11:
399 + switchPublisherNames_12:
400 + switchPublisherNames_13:
401 + switchPublisherNames_14:
402 + switchIcons_0: {fileID: 0}
403 + switchIcons_1: {fileID: 0}
404 + switchIcons_2: {fileID: 0}
405 + switchIcons_3: {fileID: 0}
406 + switchIcons_4: {fileID: 0}
407 + switchIcons_5: {fileID: 0}
408 + switchIcons_6: {fileID: 0}
409 + switchIcons_7: {fileID: 0}
410 + switchIcons_8: {fileID: 0}
411 + switchIcons_9: {fileID: 0}
412 + switchIcons_10: {fileID: 0}
413 + switchIcons_11: {fileID: 0}
414 + switchIcons_12: {fileID: 0}
415 + switchIcons_13: {fileID: 0}
416 + switchIcons_14: {fileID: 0}
417 + switchSmallIcons_0: {fileID: 0}
418 + switchSmallIcons_1: {fileID: 0}
419 + switchSmallIcons_2: {fileID: 0}
420 + switchSmallIcons_3: {fileID: 0}
421 + switchSmallIcons_4: {fileID: 0}
422 + switchSmallIcons_5: {fileID: 0}
423 + switchSmallIcons_6: {fileID: 0}
424 + switchSmallIcons_7: {fileID: 0}
425 + switchSmallIcons_8: {fileID: 0}
426 + switchSmallIcons_9: {fileID: 0}
427 + switchSmallIcons_10: {fileID: 0}
428 + switchSmallIcons_11: {fileID: 0}
429 + switchSmallIcons_12: {fileID: 0}
430 + switchSmallIcons_13: {fileID: 0}
431 + switchSmallIcons_14: {fileID: 0}
432 + switchManualHTML:
433 + switchAccessibleURLs:
434 + switchLegalInformation:
435 + switchMainThreadStackSize: 1048576
436 + switchPresenceGroupId:
437 + switchLogoHandling: 0
438 + switchReleaseVersion: 0
439 + switchDisplayVersion: 1.0.0
440 + switchStartupUserAccount: 0
441 + switchTouchScreenUsage: 0
442 + switchSupportedLanguagesMask: 0
443 + switchLogoType: 0
444 + switchApplicationErrorCodeCategory:
445 + switchUserAccountSaveDataSize: 0
446 + switchUserAccountSaveDataJournalSize: 0
447 + switchApplicationAttribute: 0
448 + switchCardSpecSize: -1
449 + switchCardSpecClock: -1
450 + switchRatingsMask: 0
451 + switchRatingsInt_0: 0
452 + switchRatingsInt_1: 0
453 + switchRatingsInt_2: 0
454 + switchRatingsInt_3: 0
455 + switchRatingsInt_4: 0
456 + switchRatingsInt_5: 0
457 + switchRatingsInt_6: 0
458 + switchRatingsInt_7: 0
459 + switchRatingsInt_8: 0
460 + switchRatingsInt_9: 0
461 + switchRatingsInt_10: 0
462 + switchRatingsInt_11: 0
463 + switchRatingsInt_12: 0
464 + switchLocalCommunicationIds_0:
465 + switchLocalCommunicationIds_1:
466 + switchLocalCommunicationIds_2:
467 + switchLocalCommunicationIds_3:
468 + switchLocalCommunicationIds_4:
469 + switchLocalCommunicationIds_5:
470 + switchLocalCommunicationIds_6:
471 + switchLocalCommunicationIds_7:
472 + switchParentalControl: 0
473 + switchAllowsScreenshot: 1
474 + switchAllowsVideoCapturing: 1
475 + switchAllowsRuntimeAddOnContentInstall: 0
476 + switchDataLossConfirmation: 0
477 + switchUserAccountLockEnabled: 0
478 + switchSystemResourceMemory: 16777216
479 + switchSupportedNpadStyles: 22
480 + switchNativeFsCacheSize: 32
481 + switchIsHoldTypeHorizontal: 0
482 + switchSupportedNpadCount: 8
483 + switchSocketConfigEnabled: 0
484 + switchTcpInitialSendBufferSize: 32
485 + switchTcpInitialReceiveBufferSize: 64
486 + switchTcpAutoSendBufferSizeMax: 256
487 + switchTcpAutoReceiveBufferSizeMax: 256
488 + switchUdpSendBufferSize: 9
489 + switchUdpReceiveBufferSize: 42
490 + switchSocketBufferEfficiency: 4
491 + switchSocketInitializeEnabled: 1
492 + switchNetworkInterfaceManagerInitializeEnabled: 1
493 + switchPlayerConnectionEnabled: 1
494 + ps4NPAgeRating: 12
495 + ps4NPTitleSecret:
496 + ps4NPTrophyPackPath:
497 + ps4ParentalLevel: 11
498 + ps4ContentID: ED1633-NPXX51362_00-0000000000000000
499 + ps4Category: 0
500 + ps4MasterVersion: 01.00
501 + ps4AppVersion: 01.00
502 + ps4AppType: 0
503 + ps4ParamSfxPath:
504 + ps4VideoOutPixelFormat: 0
505 + ps4VideoOutInitialWidth: 1920
506 + ps4VideoOutBaseModeInitialWidth: 1920
507 + ps4VideoOutReprojectionRate: 60
508 + ps4PronunciationXMLPath:
509 + ps4PronunciationSIGPath:
510 + ps4BackgroundImagePath:
511 + ps4StartupImagePath:
512 + ps4StartupImagesFolder:
513 + ps4IconImagesFolder:
514 + ps4SaveDataImagePath:
515 + ps4SdkOverride:
516 + ps4BGMPath:
517 + ps4ShareFilePath:
518 + ps4ShareOverlayImagePath:
519 + ps4PrivacyGuardImagePath:
520 + ps4NPtitleDatPath:
521 + ps4RemotePlayKeyAssignment: -1
522 + ps4RemotePlayKeyMappingDir:
523 + ps4PlayTogetherPlayerCount: 0
524 + ps4EnterButtonAssignment: 1
525 + ps4ApplicationParam1: 0
526 + ps4ApplicationParam2: 0
527 + ps4ApplicationParam3: 0
528 + ps4ApplicationParam4: 0
529 + ps4DownloadDataSize: 0
530 + ps4GarlicHeapSize: 2048
531 + ps4ProGarlicHeapSize: 2560
532 + playerPrefsMaxSize: 32768
533 + ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ
534 + ps4pnSessions: 1
535 + ps4pnPresence: 1
536 + ps4pnFriends: 1
537 + ps4pnGameCustomData: 1
538 + playerPrefsSupport: 0
539 + enableApplicationExit: 0
540 + resetTempFolder: 1
541 + restrictedAudioUsageRights: 0
542 + ps4UseResolutionFallback: 0
543 + ps4ReprojectionSupport: 0
544 + ps4UseAudio3dBackend: 0
545 + ps4UseLowGarlicFragmentationMode: 1
546 + ps4SocialScreenEnabled: 0
547 + ps4ScriptOptimizationLevel: 0
548 + ps4Audio3dVirtualSpeakerCount: 14
549 + ps4attribCpuUsage: 0
550 + ps4PatchPkgPath:
551 + ps4PatchLatestPkgPath:
552 + ps4PatchChangeinfoPath:
553 + ps4PatchDayOne: 0
554 + ps4attribUserManagement: 0
555 + ps4attribMoveSupport: 0
556 + ps4attrib3DSupport: 0
557 + ps4attribShareSupport: 0
558 + ps4attribExclusiveVR: 0
559 + ps4disableAutoHideSplash: 0
560 + ps4videoRecordingFeaturesUsed: 0
561 + ps4contentSearchFeaturesUsed: 0
562 + ps4attribEyeToEyeDistanceSettingVR: 0
563 + ps4IncludedModules: []
564 + ps4attribVROutputEnabled: 0
565 + monoEnv:
566 + splashScreenBackgroundSourceLandscape: {fileID: 0}
567 + splashScreenBackgroundSourcePortrait: {fileID: 0}
568 + blurSplashScreenBackground: 1
569 + spritePackerPolicy:
570 + webGLMemorySize: 16
571 + webGLExceptionSupport: 1
572 + webGLNameFilesAsHashes: 0
573 + webGLDataCaching: 1
574 + webGLDebugSymbols: 0
575 + webGLEmscriptenArgs:
576 + webGLModulesDirectory:
577 + webGLTemplate: APPLICATION:Default
578 + webGLAnalyzeBuildSize: 0
579 + webGLUseEmbeddedResources: 0
580 + webGLCompressionFormat: 1
581 + webGLLinkerTarget: 1
582 + webGLThreadsSupport: 0
583 + webGLWasmStreaming: 0
584 + scriptingDefineSymbols: {}
585 + platformArchitecture: {}
586 + scriptingBackend: {}
587 + il2cppCompilerConfiguration: {}
588 + managedStrippingLevel: {}
589 + incrementalIl2cppBuild: {}
590 + allowUnsafeCode: 0
591 + additionalIl2CppArgs:
592 + scriptingRuntimeVersion: 1
593 + gcIncremental: 0
594 + gcWBarrierValidation: 0
595 + apiCompatibilityLevelPerPlatform: {}
596 + m_RenderingPath: 1
597 + m_MobileRenderingPath: 1
598 + metroPackageName: Template_3D
599 + metroPackageVersion:
600 + metroCertificatePath:
601 + metroCertificatePassword:
602 + metroCertificateSubject:
603 + metroCertificateIssuer:
604 + metroCertificateNotAfter: 0000000000000000
605 + metroApplicationDescription: Template_3D
606 + wsaImages: {}
607 + metroTileShortName:
608 + metroTileShowName: 0
609 + metroMediumTileShowName: 0
610 + metroLargeTileShowName: 0
611 + metroWideTileShowName: 0
612 + metroSupportStreamingInstall: 0
613 + metroLastRequiredScene: 0
614 + metroDefaultTileSize: 1
615 + metroTileForegroundText: 2
616 + metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0}
617 + metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628,
618 + a: 1}
619 + metroSplashScreenUseBackgroundColor: 0
620 + platformCapabilities: {}
621 + metroTargetDeviceFamilies: {}
622 + metroFTAName:
623 + metroFTAFileTypes: []
624 + metroProtocolName:
625 + XboxOneProductId:
626 + XboxOneUpdateKey:
627 + XboxOneSandboxId:
628 + XboxOneContentId:
629 + XboxOneTitleId:
630 + XboxOneSCId:
631 + XboxOneGameOsOverridePath:
632 + XboxOnePackagingOverridePath:
633 + XboxOneAppManifestOverridePath:
634 + XboxOneVersion: 1.0.0.0
635 + XboxOnePackageEncryption: 0
636 + XboxOnePackageUpdateGranularity: 2
637 + XboxOneDescription:
638 + XboxOneLanguage:
639 + - enus
640 + XboxOneCapability: []
641 + XboxOneGameRating: {}
642 + XboxOneIsContentPackage: 0
643 + XboxOneEnableGPUVariability: 1
644 + XboxOneSockets: {}
645 + XboxOneSplashScreen: {fileID: 0}
646 + XboxOneAllowedProductIds: []
647 + XboxOnePersistentLocalStorageSize: 0
648 + XboxOneXTitleMemory: 8
649 + XboxOneOverrideIdentityName:
650 + XboxOneOverrideIdentityPublisher:
651 + vrEditorSettings:
652 + daydream:
653 + daydreamIconForeground: {fileID: 0}
654 + daydreamIconBackground: {fileID: 0}
655 + cloudServicesEnabled:
656 + UNet: 1
657 + luminIcon:
658 + m_Name:
659 + m_ModelFolderPath:
660 + m_PortalFolderPath:
661 + luminCert:
662 + m_CertPath:
663 + m_SignPackage: 1
664 + luminIsChannelApp: 0
665 + luminVersion:
666 + m_VersionCode: 1
667 + m_VersionName:
668 + apiCompatibilityLevel: 6
669 + cloudProjectId:
670 + framebufferDepthMemorylessMode: 0
671 + projectName:
672 + organizationId:
673 + cloudEnabled: 0
674 + enableNativePlatformBackendsForNewInputSystem: 0
675 + disableOldInputManagerSupport: 0
676 + legacyClampBlendShapeWeights: 0
1 +m_EditorVersion: 2019.3.11f1
2 +m_EditorVersionWithRevision: 2019.3.11f1 (ceef2d848e70)
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!47 &1
4 +QualitySettings:
5 + m_ObjectHideFlags: 0
6 + serializedVersion: 5
7 + m_CurrentQuality: 5
8 + m_QualitySettings:
9 + - serializedVersion: 2
10 + name: Very Low
11 + pixelLightCount: 0
12 + shadows: 0
13 + shadowResolution: 0
14 + shadowProjection: 1
15 + shadowCascades: 1
16 + shadowDistance: 15
17 + shadowNearPlaneOffset: 3
18 + shadowCascade2Split: 0.33333334
19 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
20 + shadowmaskMode: 0
21 + blendWeights: 1
22 + textureQuality: 1
23 + anisotropicTextures: 0
24 + antiAliasing: 0
25 + softParticles: 0
26 + softVegetation: 0
27 + realtimeReflectionProbes: 0
28 + billboardsFaceCameraPosition: 0
29 + vSyncCount: 0
30 + lodBias: 0.3
31 + maximumLODLevel: 0
32 + streamingMipmapsActive: 0
33 + streamingMipmapsAddAllCameras: 1
34 + streamingMipmapsMemoryBudget: 512
35 + streamingMipmapsRenderersPerFrame: 512
36 + streamingMipmapsMaxLevelReduction: 2
37 + streamingMipmapsMaxFileIORequests: 1024
38 + particleRaycastBudget: 4
39 + asyncUploadTimeSlice: 2
40 + asyncUploadBufferSize: 16
41 + asyncUploadPersistentBuffer: 1
42 + resolutionScalingFixedDPIFactor: 1
43 + excludedTargetPlatforms: []
44 + - serializedVersion: 2
45 + name: Low
46 + pixelLightCount: 0
47 + shadows: 0
48 + shadowResolution: 0
49 + shadowProjection: 1
50 + shadowCascades: 1
51 + shadowDistance: 20
52 + shadowNearPlaneOffset: 3
53 + shadowCascade2Split: 0.33333334
54 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
55 + shadowmaskMode: 0
56 + blendWeights: 2
57 + textureQuality: 0
58 + anisotropicTextures: 0
59 + antiAliasing: 0
60 + softParticles: 0
61 + softVegetation: 0
62 + realtimeReflectionProbes: 0
63 + billboardsFaceCameraPosition: 0
64 + vSyncCount: 0
65 + lodBias: 0.4
66 + maximumLODLevel: 0
67 + streamingMipmapsActive: 0
68 + streamingMipmapsAddAllCameras: 1
69 + streamingMipmapsMemoryBudget: 512
70 + streamingMipmapsRenderersPerFrame: 512
71 + streamingMipmapsMaxLevelReduction: 2
72 + streamingMipmapsMaxFileIORequests: 1024
73 + particleRaycastBudget: 16
74 + asyncUploadTimeSlice: 2
75 + asyncUploadBufferSize: 16
76 + asyncUploadPersistentBuffer: 1
77 + resolutionScalingFixedDPIFactor: 1
78 + excludedTargetPlatforms: []
79 + - serializedVersion: 2
80 + name: Medium
81 + pixelLightCount: 1
82 + shadows: 1
83 + shadowResolution: 0
84 + shadowProjection: 1
85 + shadowCascades: 1
86 + shadowDistance: 20
87 + shadowNearPlaneOffset: 3
88 + shadowCascade2Split: 0.33333334
89 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
90 + shadowmaskMode: 0
91 + blendWeights: 2
92 + textureQuality: 0
93 + anisotropicTextures: 1
94 + antiAliasing: 0
95 + softParticles: 0
96 + softVegetation: 0
97 + realtimeReflectionProbes: 0
98 + billboardsFaceCameraPosition: 0
99 + vSyncCount: 1
100 + lodBias: 0.7
101 + maximumLODLevel: 0
102 + streamingMipmapsActive: 0
103 + streamingMipmapsAddAllCameras: 1
104 + streamingMipmapsMemoryBudget: 512
105 + streamingMipmapsRenderersPerFrame: 512
106 + streamingMipmapsMaxLevelReduction: 2
107 + streamingMipmapsMaxFileIORequests: 1024
108 + particleRaycastBudget: 64
109 + asyncUploadTimeSlice: 2
110 + asyncUploadBufferSize: 16
111 + asyncUploadPersistentBuffer: 1
112 + resolutionScalingFixedDPIFactor: 1
113 + excludedTargetPlatforms: []
114 + - serializedVersion: 2
115 + name: High
116 + pixelLightCount: 2
117 + shadows: 2
118 + shadowResolution: 1
119 + shadowProjection: 1
120 + shadowCascades: 2
121 + shadowDistance: 40
122 + shadowNearPlaneOffset: 3
123 + shadowCascade2Split: 0.33333334
124 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
125 + shadowmaskMode: 1
126 + blendWeights: 2
127 + textureQuality: 0
128 + anisotropicTextures: 1
129 + antiAliasing: 0
130 + softParticles: 0
131 + softVegetation: 1
132 + realtimeReflectionProbes: 1
133 + billboardsFaceCameraPosition: 1
134 + vSyncCount: 1
135 + lodBias: 1
136 + maximumLODLevel: 0
137 + streamingMipmapsActive: 0
138 + streamingMipmapsAddAllCameras: 1
139 + streamingMipmapsMemoryBudget: 512
140 + streamingMipmapsRenderersPerFrame: 512
141 + streamingMipmapsMaxLevelReduction: 2
142 + streamingMipmapsMaxFileIORequests: 1024
143 + particleRaycastBudget: 256
144 + asyncUploadTimeSlice: 2
145 + asyncUploadBufferSize: 16
146 + asyncUploadPersistentBuffer: 1
147 + resolutionScalingFixedDPIFactor: 1
148 + excludedTargetPlatforms: []
149 + - serializedVersion: 2
150 + name: Very High
151 + pixelLightCount: 3
152 + shadows: 2
153 + shadowResolution: 2
154 + shadowProjection: 1
155 + shadowCascades: 2
156 + shadowDistance: 70
157 + shadowNearPlaneOffset: 3
158 + shadowCascade2Split: 0.33333334
159 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
160 + shadowmaskMode: 1
161 + blendWeights: 4
162 + textureQuality: 0
163 + anisotropicTextures: 2
164 + antiAliasing: 2
165 + softParticles: 1
166 + softVegetation: 1
167 + realtimeReflectionProbes: 1
168 + billboardsFaceCameraPosition: 1
169 + vSyncCount: 1
170 + lodBias: 1.5
171 + maximumLODLevel: 0
172 + streamingMipmapsActive: 0
173 + streamingMipmapsAddAllCameras: 1
174 + streamingMipmapsMemoryBudget: 512
175 + streamingMipmapsRenderersPerFrame: 512
176 + streamingMipmapsMaxLevelReduction: 2
177 + streamingMipmapsMaxFileIORequests: 1024
178 + particleRaycastBudget: 1024
179 + asyncUploadTimeSlice: 2
180 + asyncUploadBufferSize: 16
181 + asyncUploadPersistentBuffer: 1
182 + resolutionScalingFixedDPIFactor: 1
183 + excludedTargetPlatforms: []
184 + - serializedVersion: 2
185 + name: Ultra
186 + pixelLightCount: 4
187 + shadows: 2
188 + shadowResolution: 2
189 + shadowProjection: 1
190 + shadowCascades: 4
191 + shadowDistance: 150
192 + shadowNearPlaneOffset: 3
193 + shadowCascade2Split: 0.33333334
194 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667}
195 + shadowmaskMode: 1
196 + blendWeights: 4
197 + textureQuality: 0
198 + anisotropicTextures: 2
199 + antiAliasing: 2
200 + softParticles: 1
201 + softVegetation: 1
202 + realtimeReflectionProbes: 1
203 + billboardsFaceCameraPosition: 1
204 + vSyncCount: 1
205 + lodBias: 2
206 + maximumLODLevel: 0
207 + streamingMipmapsActive: 0
208 + streamingMipmapsAddAllCameras: 1
209 + streamingMipmapsMemoryBudget: 512
210 + streamingMipmapsRenderersPerFrame: 512
211 + streamingMipmapsMaxLevelReduction: 2
212 + streamingMipmapsMaxFileIORequests: 1024
213 + particleRaycastBudget: 4096
214 + asyncUploadTimeSlice: 2
215 + asyncUploadBufferSize: 16
216 + asyncUploadPersistentBuffer: 1
217 + resolutionScalingFixedDPIFactor: 1
218 + excludedTargetPlatforms: []
219 + m_PerPlatformDefaultQuality:
220 + Android: 2
221 + Lumin: 5
222 + Nintendo 3DS: 5
223 + Nintendo Switch: 5
224 + PS4: 5
225 + PSP2: 2
226 + Stadia: 5
227 + Standalone: 5
228 + WebGL: 3
229 + Windows Store Apps: 5
230 + XboxOne: 5
231 + iPhone: 2
232 + tvOS: 2
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!78 &1
4 +TagManager:
5 + serializedVersion: 2
6 + tags: []
7 + layers:
8 + - Default
9 + - TransparentFX
10 + - Ignore Raycast
11 + -
12 + - Water
13 + - UI
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 + m_SortingLayers:
41 + - name: Default
42 + uniqueID: 0
43 + locked: 0
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!5 &1
4 +TimeManager:
5 + m_ObjectHideFlags: 0
6 + Fixed Timestep: 0.02
7 + Maximum Allowed Timestep: 0.33333334
8 + m_TimeScale: 1
9 + Maximum Particle Timestep: 0.03
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!310 &1
4 +UnityConnectSettings:
5 + m_ObjectHideFlags: 0
6 + serializedVersion: 1
7 + m_Enabled: 0
8 + m_TestMode: 0
9 + m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events
10 + m_EventUrl: https://cdp.cloud.unity3d.com/v1/events
11 + m_ConfigUrl: https://config.uca.cloud.unity3d.com
12 + m_TestInitMode: 0
13 + CrashReportingSettings:
14 + m_EventUrl: https://perf-events.cloud.unity3d.com
15 + m_Enabled: 0
16 + m_LogBufferSize: 10
17 + m_CaptureEditorExceptions: 1
18 + UnityPurchasingSettings:
19 + m_Enabled: 0
20 + m_TestMode: 0
21 + UnityAnalyticsSettings:
22 + m_Enabled: 0
23 + m_TestMode: 0
24 + m_InitializeOnStartup: 1
25 + UnityAdsSettings:
26 + m_Enabled: 0
27 + m_InitializeOnStartup: 1
28 + m_TestMode: 0
29 + m_IosGameId:
30 + m_AndroidGameId:
31 + m_GameIds: {}
32 + m_GameId:
33 + PerformanceReportingSettings:
34 + m_Enabled: 0
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!937362698 &1
4 +VFXManager:
5 + m_ObjectHideFlags: 0
6 + m_IndirectShader: {fileID: 0}
7 + m_CopyBufferShader: {fileID: 0}
8 + m_SortShader: {fileID: 0}
9 + m_StripUpdateShader: {fileID: 0}
10 + m_RenderPipeSettingsPath:
11 + m_FixedTimeStep: 0.016666668
12 + m_MaxDeltaTime: 0.05
1 +{
2 + "m_SettingKeys": [
3 + "VR Device Disabled",
4 + "VR Device User Alert"
5 + ],
6 + "m_SettingValues": [
7 + "False",
8 + "False"
9 + ]
10 +}
...\ No newline at end of file ...\ No newline at end of file