Version: 2023.1
public float rate ;

描述

合唱调制速率,以 hz 为单位。范围从 0.0 到 20.0。默认值为 0.8 hz。

using UnityEngine;

[RequireComponent(typeof(AudioSource))] [RequireComponent(typeof(AudioChorusFilter))] public class Example : MonoBehaviour { // Set the rate on the chorus filter to 15hz. void Start() { GetComponent<AudioChorusFilter>().rate = 15; } }