Set Audio Reverb Zone Reflections#
Audio / Effects / Audio Reverb Zone / Set Audio Reverb Zone Reflections
Description#
Sets the Reflections property of Audio Reverb Zone component
Parameters#
| Name | Description |
|---|---|
| Audio Reverb Zone | |
| 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("Set Audio Reverb Zone Reflections")]
[Category("Audio/Effects/Audio Reverb Zone/Reflections")]
[Description("Sets the Reflections property of Audio Reverb Zone component")]
[Image(typeof(IconReverb), ColorTheme.Type.Yellow, typeof(BadgeFloor))]
[Keywords("Audio, Sound, Music, Ambient, Sfx, Echo")]
[Parameter("Audio Reverb Zone")]
[Parameter("Value")]
[Serializable]
public class GenInstructionInteger_AudioReverbZone_SetReflections : Instruction
{
[SerializeField] private GetGameObject m_AudioReverbZone = new GetGameObject(
new GenTypeGameObject_AudioReverbZone()
);
[SerializeField] private GetInteger m_Value = new GetInteger();
protected override string GetTitle(GameObject source)
{
string member = TextUtils.ThemeAsKeyword("Reflections");
return $"{this.m_AudioReverbZone} {member} = {this.m_Value}";
}
protected override Awaitable Run(Args args)
{
AudioReverbZone component = this.m_AudioReverbZone.Get<AudioReverbZone>(args);
if (component == null) return Done;
component.reflections = (int) this.m_Value.Get(args);
return Done;
}
}
}