Method group is Obsolete

ParticleSystem.SetTrails

Switch to Manual
Obsolete SetTrails is deprecated. Use SetParticlesAndTrails() instead. Avoid SetTrails when ParticleSystem.trails.dieWithParticles is false.

Declaration

public void SetTrails(ParticleSystem.Trails trailData);

Parameters

trailData The Trails to apply to the Particle System.

Description

Use this method with the results of an earlier call to ParticleSystem.GetTrails, in order to restore the Particle System to the state stored in the Trails object.

To fully restore a Particle System to a previous state, use this method along with ParticleSystem.SetParticles and ParticleSystem.SetPlaybackState.

Additional resources: GetTrails, SetParticles, SetPlaybackState.


Did you find this page useful? Please give it a rating: