m Bool |
fix format and unmarked. thanks Nytra! |
||
Line 2: | Line 2: | ||
{{Table TypeFields | {{Table TypeFields | ||
|Clip|{{RootFieldType|AssetRef`1|[[Type:AudioClip|AudioClip]]}}| | |Clip|{{RootFieldType|AssetRef`1|[[Type:AudioClip|AudioClip]]}}|TypeAdv0=true|The AudioClip to play. This can be a [[Component:StaticAudioClip|StaticAudioClip]]. | ||
|Weight|Float|How likely it is for this audio clip to play | |Weight|Float|How likely it is for this audio clip to play | ||
|MinVolume|Float|The minimum volume | |MinVolume|Float|The minimum volume | ||
Line 15: | Line 15: | ||
[[Category:Type]] | [[Category:Type]] | ||
Latest revision as of 18:07, 15 February 2025
Used by Component:RandomAudioClipPlayer, Component:ChildParentAudioClipPlayer and Component:ButtonAudioClipPlayer as a choice item with a weight to play an audio clip.
Name | Type | Description |
---|---|---|
Clip
|
AudioClip | The AudioClip to play. This can be a StaticAudioClip. |
Weight
|
Float | How likely it is for this audio clip to play |
MinVolume
|
Float | The minimum volume |
MaxVolume
|
Float | The maximum volume |
MinSpeed
|
Float | The minimum playback speed this audio should be played at |
MaxSpeed
|
Float | The maximum playback speed this audio should be played at |
Spatialize
|
Bool | Whether this audio plays in 2d or 3d |
SpatialBlend
|
Float | Amount of spatial blending (0 to 1) |
MinDistance
|
Float | The distance in meters in the audio's set transform space where the audio's perceived volume stops increasing and stays constant all the way to the center. |
MaxDistance
|
Float | The maximum distance in meters in the audio's set transform space in meters before it cannot be heard. |