Automated: update Categories, SyncDelegates |
Automated: update Replace |
||
Line 32: | Line 32: | ||
[[Category:Components:Media{{#translation:}}|Random Audio Clip Player]] | [[Category:Components:Media{{#translation:}}|Random Audio Clip Player]] | ||
[[Category: | [[Category:ComponentStubs]] | ||
[[Category:Components{{#translation:}}|Random Audio Clip Player]] | [[Category:Components{{#translation:}}|Random Audio Clip Player]] |
Latest revision as of 21:06, 6 November 2024
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Component image
Random Audio Clip player is a component that is able to play a random audio file all the way through from a list of Clips
and parent the resulting one shots under a slot.
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. |
ParentUnder
|
Slot | The slot to parent the one shot objects under. |
MinDistance
|
Nullable`1<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
|
Nullable`1<Float> | the maximum distance in meters in the audio's set transform space in meters before it cannot be heard. |
RolloffMode
|
Nullable`1<AudioRolloffMode> | An optional AudioRolloffMode |
Clips
|
list of ClipData | The list of ClipData to choose from, randomly with weights. |
Sync Delegates
Name | Arguments | Description |
---|---|---|
Play()
|
Action | |
PlayAtPoint()
|
Action`1<Float3: point> |
Usage
Attach to a slot and give the component some Clips
to play. This component can be trigged via it's sync delegates or by button events
Examples
This can be used for boopers, doorbells, or a bike horn.