Type:ClipData: Difference between revisions

From Resonite Wiki
add some info, still stub
 
fix category, add info
Line 5: Line 5:
|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.
|MaxDistance|Float| the maximum distance in meters in the audio's set transform space in meters before it cannot be heard.
|MaxDistance|Float| the maximum distance in meters in the audio's set transform space in meters before it cannot be heard.
|MinSpeed|Float|
|MinSpeed|Float| The minimum playback speed this audio should be played at
|MaxSpeed|Float|
|MaxSpeed|Float| The maximum playback speed this audio should be played at
|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]]}}|TypeAdv5=true| The AudioClip to play. This can be a [[Component:StaticAudioClip|StaticAudioClip]].
}}
}}


[[Category:ComponentStub]]
[[Category:ComponentStubs]]

Revision as of 18:55, 24 December 2024

Used by Component:RandomAudioClipPlayer as a choice item with a weight to play an audio clip.

Fields
Name Type Description
Weight Float How likely it is for this audio clip to play
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.
MinSpeed Float The minimum playback speed this audio should be played at
MaxSpeed Float The maximum playback speed this audio should be played at
Clip AudioClip The AudioClip to play. This can be a StaticAudioClip.