AudioEchoFilter.dryMix

Unity · Версия 2020.3 LTS · Scripting · AudioEchoFilter

AudioEchoFilter.dryMix

public float dryMix;

Описание

Громкость исходного сигнала для передачи на выход. от 0,0 до 1,0. По умолчанию = 1,0.

using UnityEngine;

[RequireComponent(typeof(AudioSource))]
[RequireComponent(typeof(AudioEchoFilter))]
public class Example : MonoBehaviour
{
    // Listen to only Echo (not the original audio source)
    // Set the wet mix to 0 and you will disable the echo.

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

Обновлено 17 ноября 2026 г.