Still missing Meter method |
m →See Also: typo |
||
| Line 20: | Line 20: | ||
* [[Component:TalkVisualizer|TalkVisualizer]] | * [[Component:TalkVisualizer|TalkVisualizer]] | ||
[[Category: | [[Category:ComponentStubs]] | ||
[[Category:Components{{#translation:}}|Volume Meter]] | [[Category:Components{{#translation:}}|Volume Meter]] | ||
[[Category:Components:Media:Utility{{#translation:}}|Volume Meter]] | [[Category:Components:Media:Utility{{#translation:}}|Volume Meter]] | ||
Revision as of 16:19, 17 October 2024
The VolumeMeter component can be used to get the volume of an inputted audio source.
Fields
| Name | Type | Description |
|---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't. |
Smoothing
|
Float | how much to smooth lerp the Volume field output.
|
Power
|
Float | the range of the Volume field from 0 to this.
|
Method
|
VolumeMeterMethod | |
Source
|
IAudioSource | the audio source to read the volume of in real time as long as it's streaming or playing. |
Volume
|
raw output of Float | The current volume of Source after smoothing factor of Smoothing
|
Usage
Attach to a slot and provide any IAudioSource to Source. When audio data is being generated by Source the Volume field will start changing values.
Examples
This is used in avatars that flash when talking, or in audio visualizers