言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

AudioEchoFilter.decayRatio

Switch to Manual
public var decayRatio: float;

Description

ディレイあたりの減衰比率を設定する。0 から1の間で設定(デフォルトは0.5)。

	// Set the decayRatio on the chorus filter to total decay

	@script RequireComponent(AudioSource)
	@script RequireComponent(AudioEchoFilter)

	function Start() {
		GetComponent(AudioEchoFilter).decayRatio = 0.0;
	}