Audio Reverb Zone Min Distance#
Audio / Effects / Audio Reverb Zone / Audio Reverb Zone Min Distance
Description#
Compares the Min Distance property of Audio Reverb Zone component to another value
Parameters#
| Name | Description |
|---|---|
| Audio Reverb Zone | |
| Compare | |
| Value |
Code#
// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>
using System;
using UnityEngine;
using VisualScript.Icons;
using UnityEngine.Audio;
namespace VisualScript.Runtime
{
[Title("Audio Reverb Zone Min Distance")]
[Category("Audio/Effects/Audio Reverb Zone/Min Distance")]
[Description("Compares the Min Distance property of Audio Reverb Zone component to another value")]
[Image(typeof(IconReverb), ColorTheme.Type.Yellow, typeof(BadgeFloor))]
[Keywords("Audio, Sound, Music, Ambient, Sfx, Echo")]
[Parameter("Audio Reverb Zone")]
[Parameter("Compare")]
[Parameter("Value")]
[Serializable]
public class GenConditionNumber_AudioReverbZone_CheckMinDistance : Condition
{
[SerializeField] private GetGameObject m_AudioReverbZone = new GetGameObject(
new GenTypeGameObject_AudioReverbZone()
);
[SerializeField] private CompareNumber m_Compare = new CompareNumber();
[SerializeField] private GetNumber m_Value = new GetNumber();
protected override string GetTitle(GameObject source)
{
string member = TextUtils.ThemeAsKeyword("Min Distance");
return $"{this.m_AudioReverbZone} {member} {this.m_Compare} {this.m_Value}";
}
protected override bool Run(Args args)
{
AudioReverbZone component = this.m_AudioReverbZone.Get<AudioReverbZone>(args);
if (component == null) return false;
return this.m_Compare.Compare(component.minDistance, (float) this.m_Value.Get(args));
}
}
}