Version: 2021.1
public float wetMix ;

描述

要传递到输出的回声信号音量。范围从 0.0 到 1.0。默认值为 1.0。

using UnityEngine;

[RequireComponent(typeof(AudioSource))] [RequireComponent(typeof(AudioEchoFilter))] public class Example : MonoBehaviour { // Mixes both Echo generated sound and the original audio source // if you set the wetMix to 0 you will not have Echo sounds.

void Start() { GetComponent<AudioEchoFilter>().wetMix = 1.0f; GetComponent<AudioEchoFilter>().dryMix = 1.0f; } }