Version: 2023.1
言語: 日本語
public ParticleSystem.MinMaxCurve rateOverTime ;

説明

The rate at which the emitter spawns new particles over time.

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.rateOverTime = hSliderValue; }

void OnGUI() { hSliderValue = GUI.HorizontalSlider(new Rect(25, 45, 100, 30), hSliderValue, 5.0f, 200.0f); } }