泰课首页
技术分享
Unity课程
Manual
Scripting API
unity3d.com
Version:
2019.1
2019.3
2019.2
2019.1
2018.4
2018.3
2018.2
2018.1
2017.4
2017.3
2017.2
2017.1
5.6
Manual
Scripting API
Language:
中文
English
日本語
Español
한국어
Scripting API
Version:
2019.1
2019.3
2019.2
2019.1
2018.4
2018.3
2018.2
2018.1
2017.4
2017.3
2017.2
2017.1
5.6
ParticleSystem
.SetParticles
Switch to Manual
public void
SetParticles
(out Particle[]
particles
);
public void
SetParticles
(out Particle[]
particles
, int
size
);
public void
SetParticles
(out Particle[]
particles
, int
size
, int
offset
);
Parameters
particles
输入粒子缓冲区,其中包含所需的粒子状态。
size
粒子数组中写入粒子系统的元素数。
offset
The offset into the destination particle list, to assign these particles.
Description
Sets the particles of this Particle System.
将粒子的生命周期设置为负值将导致从粒子系统中删除该粒子。 另请参阅:
GetParticles
。