forked from Unity-Technologies/UnityCsReference
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathParticleSystemModules.bindings.cs
More file actions
638 lines (574 loc) · 37.4 KB
/
Copy pathParticleSystemModules.bindings.cs
File metadata and controls
638 lines (574 loc) · 37.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
// Unity C# reference source
// Copyright (c) Unity Technologies. For terms of use, see
// https://unity3d.com/legal/licenses/Unity_Reference_Only_License
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using UnityEngine;
using UnityEngine.Bindings;
using Object = UnityEngine.Object;
using RequiredByNativeCodeAttribute = UnityEngine.Scripting.RequiredByNativeCodeAttribute;
namespace UnityEngine
{
[NativeHeader("ParticleSystemScriptingClasses.h")]
[NativeHeader("Modules/ParticleSystem/ParticleSystem.h")]
[NativeHeader("Modules/ParticleSystem/ScriptBindings/ParticleSystemScriptBindings.h")]
[NativeHeader("Modules/ParticleSystem/ScriptBindings/ParticleSystemModulesScriptBindings.h")]
public partial class ParticleSystem : Component
{
// Modules
public partial struct MainModule
{
internal MainModule(ParticleSystem particleSystem) { m_ParticleSystem = particleSystem; }
internal ParticleSystem m_ParticleSystem;
extern public float duration { get; [NativeThrows] set; }
extern public bool loop { get; [NativeThrows] set; }
extern public bool prewarm { get; [NativeThrows] set; }
extern public MinMaxCurve startDelay { get; [NativeThrows] set; }
extern public float startDelayMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve startLifetime { get; [NativeThrows] set; }
extern public float startLifetimeMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve startSpeed { get; [NativeThrows] set; }
extern public float startSpeedMultiplier { get; [NativeThrows] set; }
extern public bool startSize3D { get; [NativeThrows] set; }
[NativeName("StartSizeX")]
extern public MinMaxCurve startSize { get; [NativeThrows] set; }
[NativeName("StartSizeXMultiplier")]
extern public float startSizeMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve startSizeX { get; [NativeThrows] set; }
extern public float startSizeXMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve startSizeY { get; [NativeThrows] set; }
extern public float startSizeYMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve startSizeZ { get; [NativeThrows] set; }
extern public float startSizeZMultiplier { get; [NativeThrows] set; }
extern public bool startRotation3D { get; [NativeThrows] set; }
[NativeName("StartRotationZ")]
extern public MinMaxCurve startRotation { get; [NativeThrows] set; }
[NativeName("StartRotationZMultiplier")]
extern public float startRotationMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve startRotationX { get; [NativeThrows] set; }
extern public float startRotationXMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve startRotationY { get; [NativeThrows] set; }
extern public float startRotationYMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve startRotationZ { get; [NativeThrows] set; }
extern public float startRotationZMultiplier { get; [NativeThrows] set; }
extern public float flipRotation { get; [NativeThrows] set; }
extern public MinMaxGradient startColor { get; [NativeThrows] set; }
extern public MinMaxCurve gravityModifier { get; [NativeThrows] set; }
extern public float gravityModifierMultiplier { get; [NativeThrows] set; }
extern public ParticleSystemSimulationSpace simulationSpace { get; [NativeThrows] set; }
extern public Transform customSimulationSpace { get; [NativeThrows] set; }
extern public float simulationSpeed { get; [NativeThrows] set; }
extern public bool useUnscaledTime { get; [NativeThrows] set; }
extern public ParticleSystemScalingMode scalingMode { get; [NativeThrows] set; }
extern public bool playOnAwake { get; [NativeThrows] set; }
extern public int maxParticles { get; [NativeThrows] set; }
extern public ParticleSystemEmitterVelocityMode emitterVelocityMode { get; [NativeThrows] set; }
extern public ParticleSystemStopAction stopAction { get; [NativeThrows] set; }
extern public ParticleSystemRingBufferMode ringBufferMode { get; [NativeThrows] set; }
extern public Vector2 ringBufferLoopRange { get; [NativeThrows] set; }
extern public ParticleSystemCullingMode cullingMode { get; [NativeThrows] set; }
}
public partial struct EmissionModule
{
internal EmissionModule(ParticleSystem particleSystem) { m_ParticleSystem = particleSystem; }
internal ParticleSystem m_ParticleSystem;
extern public bool enabled { get; [NativeThrows] set; }
extern public MinMaxCurve rateOverTime { get; [NativeThrows] set; }
extern public float rateOverTimeMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve rateOverDistance { get; [NativeThrows] set; }
extern public float rateOverDistanceMultiplier { get; [NativeThrows] set; }
public void SetBursts(Burst[] bursts)
{
SetBursts(bursts, bursts.Length);
}
public void SetBursts(Burst[] bursts, int size)
{
burstCount = size;
for (int i = 0; i < size; i++)
SetBurst(i, bursts[i]);
}
public int GetBursts(Burst[] bursts)
{
int returnValue = burstCount;
for (int i = 0; i < returnValue; i++)
bursts[i] = GetBurst(i);
return returnValue;
}
[NativeThrows]
extern public void SetBurst(int index, Burst burst);
[NativeThrows]
extern public Burst GetBurst(int index);
extern public int burstCount { get; [NativeThrows] set; }
}
public partial struct ShapeModule
{
internal ShapeModule(ParticleSystem particleSystem) { m_ParticleSystem = particleSystem; }
internal ParticleSystem m_ParticleSystem;
extern public bool enabled { get; [NativeThrows] set; }
extern public ParticleSystemShapeType shapeType { get; [NativeThrows] set; }
extern public float randomDirectionAmount { get; [NativeThrows] set; }
extern public float sphericalDirectionAmount { get; [NativeThrows] set; }
extern public float randomPositionAmount { get; [NativeThrows] set; }
extern public bool alignToDirection { get; [NativeThrows] set; }
extern public float radius { get; [NativeThrows] set; }
extern public ParticleSystemShapeMultiModeValue radiusMode { get; [NativeThrows] set; }
extern public float radiusSpread { get; [NativeThrows] set; }
extern public MinMaxCurve radiusSpeed { get; [NativeThrows] set; }
extern public float radiusSpeedMultiplier { get; [NativeThrows] set; }
extern public float radiusThickness { get; [NativeThrows] set; }
extern public float angle { get; [NativeThrows] set; }
extern public float length { get; [NativeThrows] set; }
extern public Vector3 boxThickness { get; [NativeThrows] set; }
extern public ParticleSystemMeshShapeType meshShapeType { get; [NativeThrows] set; }
extern public Mesh mesh { get; [NativeThrows] set; }
extern public MeshRenderer meshRenderer { get; [NativeThrows] set; }
extern public SkinnedMeshRenderer skinnedMeshRenderer { get; [NativeThrows] set; }
extern public Sprite sprite { get; [NativeThrows] set; }
extern public SpriteRenderer spriteRenderer { get; [NativeThrows] set; }
extern public bool useMeshMaterialIndex { get; [NativeThrows] set; }
extern public int meshMaterialIndex { get; [NativeThrows] set; }
extern public bool useMeshColors { get; [NativeThrows] set; }
extern public float normalOffset { get; [NativeThrows] set; }
extern public ParticleSystemShapeMultiModeValue meshSpawnMode { get; [NativeThrows] set; }
extern public float meshSpawnSpread { get; [NativeThrows] set; }
extern public MinMaxCurve meshSpawnSpeed { get; [NativeThrows] set; }
extern public float meshSpawnSpeedMultiplier { get; [NativeThrows] set; }
extern public float arc { get; [NativeThrows] set; }
extern public ParticleSystemShapeMultiModeValue arcMode { get; [NativeThrows] set; }
extern public float arcSpread { get; [NativeThrows] set; }
extern public MinMaxCurve arcSpeed { get; [NativeThrows] set; }
extern public float arcSpeedMultiplier { get; [NativeThrows] set; }
extern public float donutRadius { get; [NativeThrows] set; }
extern public Vector3 position { get; [NativeThrows] set; }
extern public Vector3 rotation { get; [NativeThrows] set; }
extern public Vector3 scale { get; [NativeThrows] set; }
extern public Texture2D texture { get; [NativeThrows] set; }
extern public ParticleSystemShapeTextureChannel textureClipChannel { get; [NativeThrows] set; }
extern public float textureClipThreshold { get; [NativeThrows] set; }
extern public bool textureColorAffectsParticles { get; [NativeThrows] set; }
extern public bool textureAlphaAffectsParticles { get; [NativeThrows] set; }
extern public bool textureBilinearFiltering { get; [NativeThrows] set; }
extern public int textureUVChannel { get; [NativeThrows] set; }
}
public partial struct VelocityOverLifetimeModule
{
internal VelocityOverLifetimeModule(ParticleSystem particleSystem) { m_ParticleSystem = particleSystem; }
internal ParticleSystem m_ParticleSystem;
extern public bool enabled { get; [NativeThrows] set; }
extern public MinMaxCurve x { get; [NativeThrows] set; }
extern public MinMaxCurve y { get; [NativeThrows] set; }
extern public MinMaxCurve z { get; [NativeThrows] set; }
extern public float xMultiplier { get; [NativeThrows] set; }
extern public float yMultiplier { get; [NativeThrows] set; }
extern public float zMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve orbitalX { get; [NativeThrows] set; }
extern public MinMaxCurve orbitalY { get; [NativeThrows] set; }
extern public MinMaxCurve orbitalZ { get; [NativeThrows] set; }
extern public float orbitalXMultiplier { get; [NativeThrows] set; }
extern public float orbitalYMultiplier { get; [NativeThrows] set; }
extern public float orbitalZMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve orbitalOffsetX { get; [NativeThrows] set; }
extern public MinMaxCurve orbitalOffsetY { get; [NativeThrows] set; }
extern public MinMaxCurve orbitalOffsetZ { get; [NativeThrows] set; }
extern public float orbitalOffsetXMultiplier { get; [NativeThrows] set; }
extern public float orbitalOffsetYMultiplier { get; [NativeThrows] set; }
extern public float orbitalOffsetZMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve radial { get; [NativeThrows] set; }
extern public float radialMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve speedModifier { get; [NativeThrows] set; }
extern public float speedModifierMultiplier { get; [NativeThrows] set; }
extern public ParticleSystemSimulationSpace space { get; [NativeThrows] set; }
}
public partial struct LimitVelocityOverLifetimeModule
{
internal LimitVelocityOverLifetimeModule(ParticleSystem particleSystem) { m_ParticleSystem = particleSystem; }
internal ParticleSystem m_ParticleSystem;
extern public bool enabled { get; [NativeThrows] set; }
extern public MinMaxCurve limitX { get; [NativeThrows] set; }
extern public float limitXMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve limitY { get; [NativeThrows] set; }
extern public float limitYMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve limitZ { get; [NativeThrows] set; }
extern public float limitZMultiplier { get; [NativeThrows] set; }
[NativeName("Magnitude")]
extern public MinMaxCurve limit { get; [NativeThrows] set; }
[NativeName("MagnitudeMultiplier")]
extern public float limitMultiplier { get; [NativeThrows] set; }
extern public float dampen { get; [NativeThrows] set; }
extern public bool separateAxes { get; [NativeThrows] set; }
extern public ParticleSystemSimulationSpace space { get; [NativeThrows] set; }
extern public MinMaxCurve drag { get; [NativeThrows] set; }
extern public float dragMultiplier { get; [NativeThrows] set; }
extern public bool multiplyDragByParticleSize { get; [NativeThrows] set; }
extern public bool multiplyDragByParticleVelocity { get; [NativeThrows] set; }
}
public partial struct InheritVelocityModule
{
internal InheritVelocityModule(ParticleSystem particleSystem) { m_ParticleSystem = particleSystem; }
internal ParticleSystem m_ParticleSystem;
extern public bool enabled { get; [NativeThrows] set; }
extern public ParticleSystemInheritVelocityMode mode { get; [NativeThrows] set; }
extern public MinMaxCurve curve { get; [NativeThrows] set; }
extern public float curveMultiplier { get; [NativeThrows] set; }
}
public partial struct LifetimeByEmitterSpeedModule
{
internal LifetimeByEmitterSpeedModule(ParticleSystem particleSystem) { m_ParticleSystem = particleSystem; }
internal ParticleSystem m_ParticleSystem;
extern public bool enabled { get; [NativeThrows] set; }
extern public MinMaxCurve curve { get; [NativeThrows] set; }
extern public float curveMultiplier { get; [NativeThrows] set; }
extern public Vector2 range { get; [NativeThrows] set; }
}
public partial struct ForceOverLifetimeModule
{
internal ForceOverLifetimeModule(ParticleSystem particleSystem) { m_ParticleSystem = particleSystem; }
internal ParticleSystem m_ParticleSystem;
extern public bool enabled { get; [NativeThrows] set; }
extern public MinMaxCurve x { get; [NativeThrows] set; }
extern public MinMaxCurve y { get; [NativeThrows] set; }
extern public MinMaxCurve z { get; [NativeThrows] set; }
extern public float xMultiplier { get; [NativeThrows] set; }
extern public float yMultiplier { get; [NativeThrows] set; }
extern public float zMultiplier { get; [NativeThrows] set; }
extern public ParticleSystemSimulationSpace space { get; [NativeThrows] set; }
extern public bool randomized { get; [NativeThrows] set; }
}
public partial struct ColorOverLifetimeModule
{
internal ColorOverLifetimeModule(ParticleSystem particleSystem) { m_ParticleSystem = particleSystem; }
internal ParticleSystem m_ParticleSystem;
extern public bool enabled { get; [NativeThrows] set; }
extern public MinMaxGradient color { get; [NativeThrows] set; }
}
public partial struct ColorBySpeedModule
{
internal ColorBySpeedModule(ParticleSystem particleSystem) { m_ParticleSystem = particleSystem; }
internal ParticleSystem m_ParticleSystem;
extern public bool enabled { get; [NativeThrows] set; }
extern public MinMaxGradient color { get; [NativeThrows] set; }
extern public Vector2 range { get; [NativeThrows] set; }
}
public partial struct SizeOverLifetimeModule
{
internal SizeOverLifetimeModule(ParticleSystem particleSystem) { m_ParticleSystem = particleSystem; }
internal ParticleSystem m_ParticleSystem;
extern public bool enabled { get; [NativeThrows] set; }
[NativeName("X")]
extern public MinMaxCurve size { get; [NativeThrows] set; }
[NativeName("XMultiplier")]
extern public float sizeMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve x { get; [NativeThrows] set; }
extern public float xMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve y { get; [NativeThrows] set; }
extern public float yMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve z { get; [NativeThrows] set; }
extern public float zMultiplier { get; [NativeThrows] set; }
extern public bool separateAxes { get; [NativeThrows] set; }
}
public partial struct SizeBySpeedModule
{
internal SizeBySpeedModule(ParticleSystem particleSystem) { m_ParticleSystem = particleSystem; }
internal ParticleSystem m_ParticleSystem;
extern public bool enabled { get; [NativeThrows] set; }
[NativeName("X")]
extern public MinMaxCurve size { get; [NativeThrows] set; }
[NativeName("XMultiplier")]
extern public float sizeMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve x { get; [NativeThrows] set; }
extern public float xMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve y { get; [NativeThrows] set; }
extern public float yMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve z { get; [NativeThrows] set; }
extern public float zMultiplier { get; [NativeThrows] set; }
extern public bool separateAxes { get; [NativeThrows] set; }
extern public Vector2 range { get; [NativeThrows] set; }
}
public partial struct RotationOverLifetimeModule
{
internal RotationOverLifetimeModule(ParticleSystem particleSystem) { m_ParticleSystem = particleSystem; }
internal ParticleSystem m_ParticleSystem;
extern public bool enabled { get; [NativeThrows] set; }
extern public MinMaxCurve x { get; [NativeThrows] set; }
extern public float xMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve y { get; [NativeThrows] set; }
extern public float yMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve z { get; [NativeThrows] set; }
extern public float zMultiplier { get; [NativeThrows] set; }
extern public bool separateAxes { get; [NativeThrows] set; }
}
public partial struct RotationBySpeedModule
{
internal RotationBySpeedModule(ParticleSystem particleSystem) { m_ParticleSystem = particleSystem; }
internal ParticleSystem m_ParticleSystem;
extern public bool enabled { get; [NativeThrows] set; }
extern public MinMaxCurve x { get; [NativeThrows] set; }
extern public float xMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve y { get; [NativeThrows] set; }
extern public float yMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve z { get; [NativeThrows] set; }
extern public float zMultiplier { get; [NativeThrows] set; }
extern public bool separateAxes { get; [NativeThrows] set; }
extern public Vector2 range { get; [NativeThrows] set; }
}
public partial struct ExternalForcesModule
{
internal ExternalForcesModule(ParticleSystem particleSystem) { m_ParticleSystem = particleSystem; }
internal ParticleSystem m_ParticleSystem;
extern public bool enabled { get; [NativeThrows] set; }
extern public float multiplier { get; [NativeThrows] set; }
extern public MinMaxCurve multiplierCurve { get; [NativeThrows] set; }
extern public ParticleSystemGameObjectFilter influenceFilter { get; [NativeThrows] set; }
extern public LayerMask influenceMask { get; [NativeThrows] set; }
extern public int influenceCount { get; }
extern public bool IsAffectedBy(ParticleSystemForceField field);
[NativeThrows]
extern public void AddInfluence([NotNull] ParticleSystemForceField field);
[NativeThrows]
extern private void RemoveInfluenceAtIndex(int index);
public void RemoveInfluence(int index) { RemoveInfluenceAtIndex(index); }
[NativeThrows]
extern public void RemoveInfluence([NotNull] ParticleSystemForceField field);
extern public void RemoveAllInfluences();
[NativeThrows]
extern public void SetInfluence(int index, [NotNull] ParticleSystemForceField field);
[NativeThrows]
extern public ParticleSystemForceField GetInfluence(int index);
}
public partial struct NoiseModule
{
internal NoiseModule(ParticleSystem particleSystem) { m_ParticleSystem = particleSystem; }
internal ParticleSystem m_ParticleSystem;
extern public bool enabled { get; [NativeThrows] set; }
extern public bool separateAxes { get; [NativeThrows] set; }
[NativeName("StrengthX")]
extern public MinMaxCurve strength { get; [NativeThrows] set; }
[NativeName("StrengthXMultiplier")]
extern public float strengthMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve strengthX { get; [NativeThrows] set; }
extern public float strengthXMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve strengthY { get; [NativeThrows] set; }
extern public float strengthYMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve strengthZ { get; [NativeThrows] set; }
extern public float strengthZMultiplier { get; [NativeThrows] set; }
extern public float frequency { get; [NativeThrows] set; }
extern public bool damping { get; [NativeThrows] set; }
extern public int octaveCount { get; [NativeThrows] set; }
extern public float octaveMultiplier { get; [NativeThrows] set; }
extern public float octaveScale { get; [NativeThrows] set; }
extern public ParticleSystemNoiseQuality quality { get; [NativeThrows] set; }
extern public MinMaxCurve scrollSpeed { get; [NativeThrows] set; }
extern public float scrollSpeedMultiplier { get; [NativeThrows] set; }
extern public bool remapEnabled { get; [NativeThrows] set; }
[NativeName("RemapX")]
extern public MinMaxCurve remap { get; [NativeThrows] set; }
[NativeName("RemapXMultiplier")]
extern public float remapMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve remapX { get; [NativeThrows] set; }
extern public float remapXMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve remapY { get; [NativeThrows] set; }
extern public float remapYMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve remapZ { get; [NativeThrows] set; }
extern public float remapZMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve positionAmount { get; [NativeThrows] set; }
extern public MinMaxCurve rotationAmount { get; [NativeThrows] set; }
extern public MinMaxCurve sizeAmount { get; [NativeThrows] set; }
}
public partial struct CollisionModule
{
internal CollisionModule(ParticleSystem particleSystem) { m_ParticleSystem = particleSystem; }
internal ParticleSystem m_ParticleSystem;
extern public bool enabled { get; [NativeThrows] set; }
extern public ParticleSystemCollisionType type { get; [NativeThrows] set; }
extern public ParticleSystemCollisionMode mode { get; [NativeThrows] set; }
extern public MinMaxCurve dampen { get; [NativeThrows] set; }
extern public float dampenMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve bounce { get; [NativeThrows] set; }
extern public float bounceMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve lifetimeLoss { get; [NativeThrows] set; }
extern public float lifetimeLossMultiplier { get; [NativeThrows] set; }
extern public float minKillSpeed { get; [NativeThrows] set; }
extern public float maxKillSpeed { get; [NativeThrows] set; }
extern public LayerMask collidesWith { get; [NativeThrows] set; }
extern public bool enableDynamicColliders { get; [NativeThrows] set; }
extern public int maxCollisionShapes { get; [NativeThrows] set; }
extern public ParticleSystemCollisionQuality quality { get; [NativeThrows] set; }
extern public float voxelSize { get; [NativeThrows] set; }
extern public float radiusScale { get; [NativeThrows] set; }
extern public bool sendCollisionMessages { get; [NativeThrows] set; }
extern public float colliderForce { get; [NativeThrows] set; }
extern public bool multiplyColliderForceByCollisionAngle { get; [NativeThrows] set; }
extern public bool multiplyColliderForceByParticleSpeed { get; [NativeThrows] set; }
extern public bool multiplyColliderForceByParticleSize { get; [NativeThrows] set; }
extern public void SetPlane(int index, Transform transform);
extern public Transform GetPlane(int index);
extern public int maxPlaneCount { get; }
[Obsolete("enableInteriorCollisions property is deprecated and is no longer required and has no effect on the particle system.", false)]
extern public bool enableInteriorCollisions { get; [NativeThrows] set; }
}
public partial struct TriggerModule
{
internal TriggerModule(ParticleSystem particleSystem) { m_ParticleSystem = particleSystem; }
internal ParticleSystem m_ParticleSystem;
extern public bool enabled { get; [NativeThrows] set; }
extern public ParticleSystemOverlapAction inside { get; [NativeThrows] set; }
extern public ParticleSystemOverlapAction outside { get; [NativeThrows] set; }
extern public ParticleSystemOverlapAction enter { get; [NativeThrows] set; }
extern public ParticleSystemOverlapAction exit { get; [NativeThrows] set; }
extern public float radiusScale { get; [NativeThrows] set; }
[NativeThrows]
extern public void SetCollider(int index, Component collider);
[NativeThrows]
extern public Component GetCollider(int index);
extern public int maxColliderCount { get; }
}
public partial struct SubEmittersModule
{
internal SubEmittersModule(ParticleSystem particleSystem) { m_ParticleSystem = particleSystem; }
internal ParticleSystem m_ParticleSystem;
extern public bool enabled { get; [NativeThrows] set; }
extern public int subEmittersCount { get; }
[NativeThrows]
extern public void AddSubEmitter(ParticleSystem subEmitter, ParticleSystemSubEmitterType type, ParticleSystemSubEmitterProperties properties, float emitProbability);
public void AddSubEmitter(ParticleSystem subEmitter, ParticleSystemSubEmitterType type, ParticleSystemSubEmitterProperties properties) { AddSubEmitter(subEmitter, type, properties, 1.0f); }
[NativeThrows]
extern public void RemoveSubEmitter(int index);
[NativeThrows]
extern public void SetSubEmitterSystem(int index, ParticleSystem subEmitter);
[NativeThrows]
extern public void SetSubEmitterType(int index, ParticleSystemSubEmitterType type);
[NativeThrows]
extern public void SetSubEmitterProperties(int index, ParticleSystemSubEmitterProperties properties);
[NativeThrows]
extern public void SetSubEmitterEmitProbability(int index, float emitProbability);
[NativeThrows]
extern public ParticleSystem GetSubEmitterSystem(int index);
[NativeThrows]
extern public ParticleSystemSubEmitterType GetSubEmitterType(int index);
[NativeThrows]
extern public ParticleSystemSubEmitterProperties GetSubEmitterProperties(int index);
[NativeThrows]
extern public float GetSubEmitterEmitProbability(int index);
}
public partial struct TextureSheetAnimationModule
{
internal TextureSheetAnimationModule(ParticleSystem particleSystem) { m_ParticleSystem = particleSystem; }
internal ParticleSystem m_ParticleSystem;
extern public bool enabled { get; [NativeThrows] set; }
extern public ParticleSystemAnimationMode mode { get; [NativeThrows] set; }
extern public ParticleSystemAnimationTimeMode timeMode { get; [NativeThrows] set; }
extern public float fps { get; [NativeThrows] set; }
extern public int numTilesX { get; [NativeThrows] set; }
extern public int numTilesY { get; [NativeThrows] set; }
extern public ParticleSystemAnimationType animation { get; [NativeThrows] set; }
extern public ParticleSystemAnimationRowMode rowMode { get; [NativeThrows] set; }
extern public MinMaxCurve frameOverTime { get; [NativeThrows] set; }
extern public float frameOverTimeMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve startFrame { get; [NativeThrows] set; }
extern public float startFrameMultiplier { get; [NativeThrows] set; }
extern public int cycleCount { get; [NativeThrows] set; }
extern public int rowIndex { get; [NativeThrows] set; }
extern public Rendering.UVChannelFlags uvChannelMask { get; [NativeThrows] set; }
extern public int spriteCount { get; }
extern public Vector2 speedRange { get; [NativeThrows] set; }
[NativeThrows]
extern public void AddSprite(Sprite sprite);
[NativeThrows]
extern public void RemoveSprite(int index);
[NativeThrows]
extern public void SetSprite(int index, Sprite sprite);
[NativeThrows]
extern public Sprite GetSprite(int index);
}
public partial struct LightsModule
{
internal LightsModule(ParticleSystem particleSystem) { m_ParticleSystem = particleSystem; }
internal ParticleSystem m_ParticleSystem;
extern public bool enabled { get; [NativeThrows] set; }
extern public float ratio { get; [NativeThrows] set; }
extern public bool useRandomDistribution { get; [NativeThrows] set; }
extern public Light light { get; [NativeThrows] set; }
extern public bool useParticleColor { get; [NativeThrows] set; }
extern public bool sizeAffectsRange { get; [NativeThrows] set; }
extern public bool alphaAffectsIntensity { get; [NativeThrows] set; }
extern public MinMaxCurve range { get; [NativeThrows] set; }
extern public float rangeMultiplier { get; [NativeThrows] set; }
extern public MinMaxCurve intensity { get; [NativeThrows] set; }
extern public float intensityMultiplier { get; [NativeThrows] set; }
extern public int maxLights { get; [NativeThrows] set; }
}
public partial struct TrailModule
{
internal TrailModule(ParticleSystem particleSystem) { m_ParticleSystem = particleSystem; }
internal ParticleSystem m_ParticleSystem;
extern public bool enabled { get; [NativeThrows] set; }
extern public ParticleSystemTrailMode mode { get; [NativeThrows] set; }
extern public float ratio { get; [NativeThrows] set; }
extern public MinMaxCurve lifetime { get; [NativeThrows] set; }
extern public float lifetimeMultiplier { get; [NativeThrows] set; }
extern public float minVertexDistance { get; [NativeThrows] set; }
extern public ParticleSystemTrailTextureMode textureMode { get; [NativeThrows] set; }
extern public bool worldSpace { get; [NativeThrows] set; }
extern public bool dieWithParticles { get; [NativeThrows] set; }
extern public bool sizeAffectsWidth { get; [NativeThrows] set; }
extern public bool sizeAffectsLifetime { get; [NativeThrows] set; }
extern public bool inheritParticleColor { get; [NativeThrows] set; }
extern public MinMaxGradient colorOverLifetime { get; [NativeThrows] set; }
extern public MinMaxCurve widthOverTrail { get; [NativeThrows] set; }
extern public float widthOverTrailMultiplier { get; [NativeThrows] set; }
extern public MinMaxGradient colorOverTrail { get; [NativeThrows] set; }
extern public bool generateLightingData { get; [NativeThrows] set; }
extern public int ribbonCount { get; [NativeThrows] set; }
extern public float shadowBias { get; [NativeThrows] set; }
extern public bool splitSubEmitterRibbons { get; [NativeThrows] set; }
extern public bool attachRibbonsToTransform { get; [NativeThrows] set; }
}
public partial struct CustomDataModule
{
internal CustomDataModule(ParticleSystem particleSystem) { m_ParticleSystem = particleSystem; }
internal ParticleSystem m_ParticleSystem;
extern public bool enabled { get; [NativeThrows] set; }
[NativeThrows]
extern public void SetMode(ParticleSystemCustomData stream, ParticleSystemCustomDataMode mode);
[NativeThrows]
extern public ParticleSystemCustomDataMode GetMode(ParticleSystemCustomData stream);
[NativeThrows]
extern public void SetVectorComponentCount(ParticleSystemCustomData stream, int count);
[NativeThrows]
extern public int GetVectorComponentCount(ParticleSystemCustomData stream);
[NativeThrows]
extern public void SetVector(ParticleSystemCustomData stream, int component, MinMaxCurve curve);
[NativeThrows]
extern public MinMaxCurve GetVector(ParticleSystemCustomData stream, int component);
[NativeThrows]
extern public void SetColor(ParticleSystemCustomData stream, MinMaxGradient gradient);
[NativeThrows]
extern public MinMaxGradient GetColor(ParticleSystemCustomData stream);
}
// Module Accessors
public MainModule main { get { return new MainModule(this); } }
public EmissionModule emission { get { return new EmissionModule(this); } }
public ShapeModule shape { get { return new ShapeModule(this); } }
public VelocityOverLifetimeModule velocityOverLifetime { get { return new VelocityOverLifetimeModule(this); } }
public LimitVelocityOverLifetimeModule limitVelocityOverLifetime { get { return new LimitVelocityOverLifetimeModule(this); } }
public InheritVelocityModule inheritVelocity { get { return new InheritVelocityModule(this); } }
public LifetimeByEmitterSpeedModule lifetimeByEmitterSpeed { get { return new LifetimeByEmitterSpeedModule(this); } }
public ForceOverLifetimeModule forceOverLifetime { get { return new ForceOverLifetimeModule(this); } }
public ColorOverLifetimeModule colorOverLifetime { get { return new ColorOverLifetimeModule(this); } }
public ColorBySpeedModule colorBySpeed { get { return new ColorBySpeedModule(this); } }
public SizeOverLifetimeModule sizeOverLifetime { get { return new SizeOverLifetimeModule(this); } }
public SizeBySpeedModule sizeBySpeed { get { return new SizeBySpeedModule(this); } }
public RotationOverLifetimeModule rotationOverLifetime { get { return new RotationOverLifetimeModule(this); } }
public RotationBySpeedModule rotationBySpeed { get { return new RotationBySpeedModule(this); } }
public ExternalForcesModule externalForces { get { return new ExternalForcesModule(this); } }
public NoiseModule noise { get { return new NoiseModule(this); } }
public CollisionModule collision { get { return new CollisionModule(this); } }
public TriggerModule trigger { get { return new TriggerModule(this); } }
public SubEmittersModule subEmitters { get { return new SubEmittersModule(this); } }
public TextureSheetAnimationModule textureSheetAnimation { get { return new TextureSheetAnimationModule(this); } }
public LightsModule lights { get { return new LightsModule(this); } }
public TrailModule trails { get { return new TrailModule(this); } }
public CustomDataModule customData { get { return new CustomDataModule(this); } }
}
}