AudioEchoFilter.dryMix 直达声混响

var dryMix : float

Description描述

Volume of original signal to pass to output. 0.0 to 1.0. Default = 1.0.

原始信号输出的比率。0.0~1.0,默认=1.0。

其实就是,调整未加效果的直达声信号的大小比例。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void Start() {
		GetComponent<AudioEchoFilter>().wetMix = 1.0F;
		GetComponent<AudioEchoFilter>().dryMix = 0.0F;
	}
}
// Listen to only Echo (not the original audio source)
// Set the wet mix to 0 and you will disable the echo.
//只听回声(不是原始音频源)
//设置wetMix到0并且你将禁用回声
@script RequireComponent(AudioSource)
@script RequireComponent(AudioEchoFilter)

function Start() {
	GetComponent(AudioEchoFilter).wetMix = 1.0;
	GetComponent(AudioEchoFilter).dryMix = 0.0;
}
Page last updated: 2011-1-10