Legacy Documentation: Version 2018.2 (Go to current version)
LanguageEnglish
  • C#

ParticleSystem.textureSheetAnimation

Switch to Manual
public ParticleSystem.TextureSheetAnimationModule textureSheetAnimation;

Description

Access the particle system texture sheet animation module.

Particle system modules do not need to be reassigned back to the system; they are interfaces and not independent objects.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Start() { ParticleSystem ps = GetComponent<ParticleSystem>(); var ts = ps.textureSheetAnimation; ts.enabled = true; ts.numTilesX = 2; ts.useRandomRow = true; } }

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