AudioEchoFilter.decayRatio 衰变率
var decayRatio : float
Description描述
Echo decay per delay. 0 to 1. 1.0 = No decay, 0.0 = total decay (i.e. simple 1 line delay). Default = 0.5.
回声每次延迟。0~1,1.0=不延迟,0.0=总延迟。默认=0.5。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void Start() {
GetComponent<AudioEchoFilter>().decayRatio = 0.0F;
}
}
// Set the decayRatio on the chorus filter to total decay
//在合声滤波器设置衰变率到总延迟
@script RequireComponent(AudioSource)
@script RequireComponent(AudioEchoFilter)
function Start() {
GetComponent(AudioEchoFilter).decayRatio = 0.0;
}
最后修改:2011年1月10日 Monday 22:50