Skip to content

格式

typescript
ParticleSystem.Stop(value)

所属类: ParticleSystem

描述

使用提供的停止行为停止播放粒子系统。

另请参阅:PlayPause

参数

参数名类型描述
valuePSStopBehavior?停止时应用的行为

返回值

类型描述
void

代码示例

typescript
let obj = new GameObject();
let com = obj.AddComponent<ParticleSystem>(ParticleSystem);
com.Stop();