Frame over time mutiplier.
This method is more efficient than accessing the whole curve, if you only want to change the overall frame over time multiplier.
#pragma strict private var ps: ParticleSystem; function Start() { ps = GetComponent.<ParticleSystem>(); var main: var = ps.main; main.startLifetimeMultiplier = 2.0f; var tex: var = ps.textureSheetAnimation; tex.enabled = true; tex.numTilesX = 4; tex.numTilesY = 2; tex.frameOverTimeMultiplier = 2.0f; }
using UnityEngine;
public class ExampleClass : MonoBehaviour { private ParticleSystem ps;
void Start() { ps = GetComponent<ParticleSystem>();
var main = ps.main; main.startLifetimeMultiplier = 2.0f;
var tex = ps.textureSheetAnimation; tex.enabled = true; tex.numTilesX = 4; tex.numTilesY = 2; tex.frameOverTimeMultiplier = 2.0f; } }