Component:AvatarVoiceSourceAssigner: Difference between revisions

From Resonite Wiki
Automated: update Fields, Categories
Not a stub
 
Line 2: Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=AvatarVoiceSourceAssignerComponent.png
|Image=AvatarVoiceSourceAssignerComponent.png
|Name=AvatarVoiceSourceAssigner
|Name=AvatarVoiceSourceAssigner
}}
}}
The '''AvatarVoiceSourceAssigner''' sets the <code>IAudioSource</code> field referenced by <code>TargetReference</code> to the voice stream of the active user when the avatar this component is attached to is equipped.


<!--T:2-->
This component is useful when adding voice-driven effects to an avatar, such as a [[Component:VisemeAnalyzer]] or [[Component:VolumeMeter]]
== Introduction ==
The '''AvatarVoiceSourceAssigner''' sets the <code>IAudioSource</code> field referenced by <code>TargetReference</code> to the voice stream of the active user when the avatar this component is attached to is equipped.


<!--T:3-->
<!--T:3-->
Line 19: Line 17:


<!--T:4-->
<!--T:4-->
== Behavior ==
== Usage ==
This component only functions when it is attached to a slot in an active avatar.


When an avatar is equipped, all instances of this component will assign the <code>TargetReference</code> to the active user's voice stream.
<!--T:5-->
<!--T:5-->
== Examples ==
== Examples ==
This component is useful when adding voice-driven effects to an avatar, such as a [[VisemeAnalyzer (Component) | VisemeAnalyzer]] or [[VolumeMeter (Component) | VolumeMeter]]


<!--T:6-->
<!--T:6-->
== Related Components ==
== See Also ==
</translate>
</translate>
[[Category:Components{{#translation:}}|Avatar Voice Source Assigner]]
[[Category:Components{{#translation:}}|Avatar Voice Source Assigner]]
[[Category:ComponentStubs]]
[[Category:Components:Users:Common Avatar System:Audio{{#translation:}}|Avatar Voice Source Assigner]]
[[Category:Components:Users:Common Avatar System:Audio{{#translation:}}|Avatar Voice Source Assigner]]

Latest revision as of 20:05, 10 November 2024

Component image 
AvatarVoiceSourceAssigner component as seen in the Scene Inspector

The AvatarVoiceSourceAssigner sets the IAudioSource field referenced by TargetReference to the voice stream of the active user when the avatar this component is attached to is equipped.

This component is useful when adding voice-driven effects to an avatar, such as a Component:VisemeAnalyzer or Component:VolumeMeter

Usage

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.
TargetReference SyncRef`1<IAudioSource> Target IAudioSource that will be assigned the user's audio stream

Usage

Examples

See Also