m ProbablePrime moved page AudioClipPlayer (Component) to Component:AudioClipPlayer: Creating component Namespace |
Automated: update component fields |
||
(One intermediate revision by one other user not shown) | |||
Line 2: | Line 2: | ||
<translate> | <translate> | ||
<!--T:1--> | <!--T:1--> | ||
{{Infobox Component | {{Infobox Component | ||
|Image=AudioClipPlayerComponent.png | |Image=AudioClipPlayerComponent.png | ||
Line 11: | Line 10: | ||
== Fields == | == Fields == | ||
{{Table ComponentFields | {{Table ComponentFields | ||
|playback|SyncPlayback| | |playback|{{RootFieldType|SyncPlayback}}|TypeAdv0=true| The playback object that includes data about playtime, duration, position, and playspeed of the audio. | ||
|Clip| | |Clip|{{RootFieldType|AssetRef`1|[[Type:AudioClip|AudioClip]]}}|TypeAdv1=true| The AudioClip to play. This can be a [[Component:StaticAudioClip|StaticAudioClip]]. | ||
}} | }} | ||
<!--T:3--> | <!--T:3--> | ||
== Usage == | == Usage == | ||
Add an audio clip to the Clip field by holding a default audio clip player and clicking. then put the Audio Clip Player into an [[Component:AudioOutput|Audio Output]] and hit play to hear the audio. | |||
<!--T:4--> | <!--T:4--> | ||
== Examples == | == Examples == | ||
This is usually used in in-game audio players like radios, vehicles, and default audio clip players to play audio constantly. It can be used to play audio and be able to scrub the audio without worrying about working with one shots which play all the way through. | |||
<!--T:5--> | <!--T:5--> | ||
== Related Components == | == Related Components == | ||
</translate> | </translate> | ||
[[Category:Components{{#translation:}}|Audio Clip Player]] | [[Category:Components{{#translation:}}|Audio Clip Player]] | ||
[[Category:Components:Audio{{#translation:}}|Audio Clip Player]] | [[Category:Components:Audio{{#translation:}}|Audio Clip Player]] |
Revision as of 10:17, 1 March 2024
Component image
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. |
playback
|
direct SyncPlayback | The playback object that includes data about playtime, duration, position, and playspeed of the audio. |
Clip
|
AudioClip | The AudioClip to play. This can be a StaticAudioClip. |
Usage
Add an audio clip to the Clip field by holding a default audio clip player and clicking. then put the Audio Clip Player into an Audio Output and hit play to hear the audio.
Examples
This is usually used in in-game audio players like radios, vehicles, and default audio clip players to play audio constantly. It can be used to play audio and be able to scrub the audio without worrying about working with one shots which play all the way through.