コーラスのHz での変調率。0 から20 の間で設定(デフォルトは0.8Hz)。
// Set the rate on the chorus filter to 15hz. @script RequireComponent(AudioSource) @script RequireComponent(AudioChorusFilter) function Start() { GetComponent(AudioChorusFilter).rate = 15; }
using UnityEngine; using System.Collections; [RequireComponent(typeof(AudioSource))] [RequireComponent(typeof(AudioChorusFilter))] public class ExampleClass : MonoBehaviour { void Start() { GetComponent<AudioChorusFilter>().rate = 15; } }
import UnityEngine import System.Collections [RequireComponent(typeof(AudioSource))] [RequireComponent(typeof(AudioChorusFilter))] public class ExampleClass(MonoBehaviour): def Start() as void: GetComponent[of AudioChorusFilter]().rate = 15