Component:AvatarVoiceRangeVisualizer: Difference between revisions

From Resonite Wiki
m ProbablePrime moved page AvatarVoiceRangeVisualizer (Component) to Component:AvatarVoiceRangeVisualizer: Creating component Namespace
Add info
 
(One intermediate revision by one other user not shown)
Line 7: Line 7:
|Name=AvatarVoiceRangeVisualizer
|Name=AvatarVoiceRangeVisualizer
}}
}}
 
The '''AvatarVoiceRangeVisualizer''' component is used to generate and maintain the whisper bubble that appears when a user enables their whisper bubble mode.
<!--T:2-->
== Intoduction ==


<!--T:3-->
<!--T:3-->
== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|VolumeSource|IField`1|TypeString0=IField<Float>|  
|VolumeSource|'''[[Type:IField`1|IField`1]]&lt;[[Type:Float|Float]]&gt;'''|TypeAdv0=true| A float representing audio change. Usually the <code>Volume</code> field from a [[Component:VolumeMeter]]
|AudioOutput|AudioOutput|  
|AudioOutput|{{RootFieldType|RelayRef`1|[[Component:AudioOutput|AudioOutput]]}}|TypeAdv1=true| An audio output to read info from to make the bubble size
|WhisperColorMin|Color|  
|WhisperColorMin|ColorX| The color the bubble should glow at when the user is not speaking during whisper mode.
|WhisperColorMax|Color|  
|WhisperColorMax|ColorX| The color the bubble should glow at when the user is speaking at max volume during whisper mode.
|WhisperColorRecordingMessage|Color|  
|WhisperColorRecordingMessage|ColorX| The color the bubble should be when the user is recording a message.
|VisualRoot|Slot|  
|VisualRoot|Slot| The root slot of the visual generated for this component to function
|_activeUser|User|  
|_activeUser|User| The user controlling and updating this component's logic.
|_visualSize|Float3|  
|_visualSize|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv7=true| The field to use when driving the size of this visual to match the range of the user's whisper mode. Uses <code>AudioOutput</code>'s range for the source of the data.
|_visualColor|Color|  
|_visualColor|{{RootFieldType|FieldDrive`1|[[Type:ColorX|ColorX]]}}|TypeAdv8=true| The field to drive to a color in an inclusive range of <code>WhisperColorMin</code> and <code>WhisperColorMax</code> depending on volume output.
}}
}}


<!--T:4-->
<!--T:4-->
== Behavior ==
== Usage ==


<!--T:5-->
<!--T:5-->
Line 32: Line 30:


<!--T:6-->
<!--T:6-->
== Related Components ==
== See Also ==
</translate>
</translate>
[[Category:Components{{#translation:}}|AvatarVoiceRangeVisualizer (Component){{#translation:}}]]
[[Category:Components{{#translation:}}|Avatar Voice Range Visualizer]]
[[Category:ComponentStubs]]
[[Category:Components:Users:Common Avatar System:Audio{{#translation:}}|Avatar Voice Range Visualizer]]
[[Category:Components:Users:Common Avatar System:Audio{{#translation:}}|AvatarVoiceRangeVisualizer (Component){{#translation:}}]]

Latest revision as of 19:59, 10 November 2024


This article or section is a Stub. You can help the Resonite Wiki by expanding it.


Component image 
AvatarVoiceRangeVisualizer component as seen in the Scene Inspector

The AvatarVoiceRangeVisualizer component is used to generate and maintain the whisper bubble that appears when a user enables their whisper bubble mode.

Fields

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.
VolumeSource IField`1<Float> A float representing audio change. Usually the Volume field from a Component:VolumeMeter
AudioOutput direct RelayRef`1<AudioOutput> An audio output to read info from to make the bubble size
WhisperColorMin ColorX The color the bubble should glow at when the user is not speaking during whisper mode.
WhisperColorMax ColorX The color the bubble should glow at when the user is speaking at max volume during whisper mode.
WhisperColorRecordingMessage ColorX The color the bubble should be when the user is recording a message.
VisualRoot Slot The root slot of the visual generated for this component to function
_activeUser User The user controlling and updating this component's logic.
_visualSize field drive of Float3 The field to use when driving the size of this visual to match the range of the user's whisper mode. Uses AudioOutput's range for the source of the data.
_visualColor field drive of ColorX The field to drive to a color in an inclusive range of WhisperColorMin and WhisperColorMax depending on volume output.

Usage

Examples

See Also