Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetTriggerParticles

Write modified particles back to the Particle System, during a call to OnParticleTrigger.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.ParticleSystemModule

SetTriggerParticles(ParticleSystem, ParticleSystemTriggerEventType, List<Particle>, int, int)

Write modified particles back to the Particle System, during a call to OnParticleTrigger.
public static void SetTriggerParticles(this ParticleSystem ps, ParticleSystemTriggerEventType type, List<ParticleSystem.Particle> particles, int offset, int count)

Parameters

Particle system.

Type of trigger to set particles for.

Particle array.

offset

Offset into the array, if you only want to write back a subset of the returned particles.

count

Number of particles to write, if you only want to write back a subset of the returned particles.

Remarks

SetTriggerParticles(ParticleSystem, ParticleSystemTriggerEventType, List<Particle>)

Write modified particles back to the Particle System, during a call to OnParticleTrigger.
public static void SetTriggerParticles(this ParticleSystem ps, ParticleSystemTriggerEventType type, List<ParticleSystem.Particle> particles)

Parameters

Particle system.

Type of trigger to set particles for.

Particle array.

Remarks