SetParticles
Sets the particles of this Particle System.
Read time 2 minutesLast updated 13 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.ParticleSystemModule
SetParticles(Particle[], int, int)
Sets the particles of this Particle System.
public void SetParticles(ParticleSystem.Particle[] particles, int size, int offset)
Parameters
Input particle buffer, containing the desired particle state.
The number of elements in the particles array that is written to the Particle System.
The offset into the destination particle list, to assign these particles.
Remarks
Setting the lifetime of a particle to a negative value will result in that particle being removed from the Particle System. Additional Resources: ParticleSystem.GetParticles.
SetParticles(Particle[], int)
Sets the particles of this Particle System.
public void SetParticles(ParticleSystem.Particle[] particles, int size)
Parameters
Input particle buffer, containing the desired particle state.
The number of elements in the particles array that is written to the Particle System.
Remarks
Setting the lifetime of a particle to a negative value will result in that particle being removed from the Particle System. Additional Resources: ParticleSystem.GetParticles.
SetParticles(Particle[])
Sets the particles of this Particle System.
public void SetParticles(ParticleSystem.Particle[] particles)
Parameters
Input particle buffer, containing the desired particle state.
Remarks
Setting the lifetime of a particle to a negative value will result in that particle being removed from the Particle System. Additional Resources: ParticleSystem.GetParticles.
SetParticles(NativeArray<Particle>, int, int)
Sets the particles of this Particle System.
public void SetParticles(NativeArray<ParticleSystem.Particle> particles, int size, int offset)
Parameters
Input particle buffer, containing the desired particle state.
The number of elements in the particles array that is written to the Particle System.
The offset into the destination particle list, to assign these particles.
Remarks
Setting the lifetime of a particle to a negative value will result in that particle being removed from the Particle System. Additional Resources: ParticleSystem.GetParticles.
SetParticles(NativeArray<Particle>, int)
Sets the particles of this Particle System.
public void SetParticles(NativeArray<ParticleSystem.Particle> particles, int size)
Parameters
Input particle buffer, containing the desired particle state.
The number of elements in the particles array that is written to the Particle System.
Remarks
Setting the lifetime of a particle to a negative value will result in that particle being removed from the Particle System. Additional Resources: ParticleSystem.GetParticles.
SetParticles(NativeArray<Particle>)
Sets the particles of this Particle System.
public void SetParticles(NativeArray<ParticleSystem.Particle> particles)
Parameters
Input particle buffer, containing the desired particle state.
Remarks
Setting the lifetime of a particle to a negative value will result in that particle being removed from the Particle System. Additional Resources: ParticleSystem.GetParticles.