Version: 2020.1

ParticlePhysicsExtensions.SetTriggerParticles(ParticleSystem,ParticleSystemTriggerEventType,Particle[],int,int)

切换到手册

参数

ps 粒子系统。
type 为其设置粒子的触发器的类型。
particles 粒子数组。
offset 数组的偏移(如果只想将返回粒子的一个子集写回)。
count 要写入的粒子数(如果只想将返回粒子的一个子集写回)。

描述

在 OnParticleTrigger 调用过程中,将修改的粒子写回到粒子系统。

另请参阅:ParticleSystem.GetTriggerParticles。