frameOverTimeMultiplier
The frame over time mutiplier.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.ParticleSystemModule
public float frameOverTimeMultiplier { get; set; }
Remarks
Changing this property is more efficient than accessing the entire curve, if you only want to change the overall frame over time multiplier.
Examples
using UnityEngine;[RequireComponent(typeof(ParticleSystem))]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; }}