Type:ClipData: Difference between revisions

From Resonite Wiki
Add more info
fix format and unmarked. thanks Nytra!
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:


{{Table TypeFields
{{Table TypeFields
|Clip|{{RootFieldType|AssetRef`1|[[Type:AudioClip|AudioClip]]}}|TypeAdv5=true|The AudioClip to play. This can be a [[Component:StaticAudioClip|StaticAudioClip]].
|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 8: Line 8:
|MinSpeed|Float|The minimum playback speed this audio should be played at
|MinSpeed|Float|The minimum playback speed this audio should be played at
|MaxSpeed|Float|The maximum playback speed this audio should be played at
|MaxSpeed|Float|The maximum playback speed this audio should be played at
|Spatialize|Boolean|Whether this audio plays in 2d or 3d
|Spatialize|Bool|Whether this audio plays in 2d or 3d
|SpatialBlend|Float|Amount of spatial blending (0 to 1)
|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.
|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.
Line 15: Line 15:


[[Category:Type]]
[[Category:Type]]
[[Category:ComponentStubs]]

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.

Fields
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.