|Smoothing|Float| how much to smooth lerp the <code>Volume</code> field output.
|Smoothing|Float|Smooth lerp the <code>Volume</code> field this much.
|Power|Float| the range of the <code>Volume</code> field from 0 to this.
|Power|Float|Raise <code>Volume</code> to this exponent. 1 will leave <code>Volume</code> unchanged.|Method|VolumeMeterMethod| Whether the outputted value should be the current volume, or the change in volume over time (delta)
|Method|VolumeMeterMethod| Whether the outputted value should be the current volume, or the change in volume over time (delta)
|Source|IAudioSource|The audio source to read the volume of (as long as it's streaming or playing).
|Source|IAudioSource| the audio source to read the volume of in real time as long as it's streaming or playing.
|Volume|{{RootFieldType|RawOutput`1|[[Type:Float|Float]]}}|TypeAdv4=true| The current volume of <code>Source</code> raised to the exponent <code>Power</code>, after smoothing factor of <code>Smoothing</code>.
|Volume|{{RootFieldType|RawOutput`1|[[Type:Float|Float]]}}|TypeAdv4=true| The current volume of <code>Source</code> after smoothing factor of <code>Smoothing</code>
}}
}}
== Usage ==
== Usage ==
Attach to a slot and provide [[Type:IAudioSource|any IAudioSource]] to <code>Source</code>. When audio data is being generated by <code>Source</code> the <code>Volume</code> field will start changing values.
Attach to a slot and provide any [[Type:IAudioSource|IAudioSource]] to <code>Source</code>. When audio data is being generated by <code>Source</code> the <code>Volume</code> field will start changing values.
== Examples ==
== Examples ==
This is used in avatars that flash when talking, or in audio visualizers
This component can be used to add visual reaction to avatars when talking, or in audio/music visualizers.