AudioEchoFilter.wetMix 效果声混响

var wetMix : float

Description描述

Volume of echo 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 = 1.0F;

	}

}
// Mixes both Echo generated sound and the original audio source

// if you set the wetMix to 0 you will not have Echo sounds.

//混响产生的效果声和原始音频源,如果你设置wetMix到0,你将没有效果声

@script RequireComponent(AudioSource)

@script RequireComponent(AudioEchoFilter)

function Start() {

	GetComponent(AudioEchoFilter).wetMix = 1.0;

	GetComponent(AudioEchoFilter).dryMix = 1.0;

}
Page last updated: 2011-1-10