Version: 2022.3
言語: 日本語
public float decayRatio ;

説明

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

using UnityEngine;

[RequireComponent(typeof(AudioSource))] [RequireComponent(typeof(AudioEchoFilter))] public class Example : MonoBehaviour { // Set the decayRatio on the chorus filter to total decay

void Start() { GetComponent<AudioEchoFilter>().decayRatio = 0.0f; } }