AudioChorusFilter.rate 比率
var rate : float
Description描述
Chorus modulation rate in hz. 0.0 to 20.0. Default = 0.8 hz.
以赫兹为单位合声调节比率,0.0 to 20.0. 默认 = 0.8 hz.
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void Start() {
GetComponent<AudioChorusFilter>().rate = 15;
}
}
// Set the rate on the chorus filter to 15hz.
//设置合声滤波器的比率为15hz
@script RequireComponent(AudioSource)
@script RequireComponent(AudioChorusFilter)
function Start() {
GetComponent(AudioChorusFilter).rate = 15;
}
最后修改:2011年8月7日 Sunday 23:38