Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


rateOverTimeMultiplier

Change the rate over time multiplier.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.ParticleSystemModule
public float rateOverTimeMultiplier { get; set; }

Remarks

This is more efficient than accessing the whole curve, if you only want to change the overall rate multiplier.

Examples

using UnityEngine;using System.Collections;[RequireComponent(typeof(ParticleSystem))]public class ExampleClass : MonoBehaviour{ private ParticleSystem ps; public float hSliderValue = 5.0f; void Start() { ps = GetComponent<ParticleSystem>(); } void Update() { var emission = ps.emission; emission.rateOverTimeMultiplier = hSliderValue; } void OnGUI() { hSliderValue = GUI.HorizontalSlider(new Rect(25, 45, 100, 30), hSliderValue, 5.0f, 200.0f); }}