Class DaggerfallAudioSource
Load sound effects from Daggerfall into a normal AudioSource.
This component loads clips procedurally in editor and at runtime.
Can preview clips by index, ID, or enum directly from editor window.
Inheritance
DaggerfallAudioSource
Assembly: Assembly-CSharp.dll
Syntax
[RequireComponent(typeof(AudioSource))]
public class DaggerfallAudioSource : MonoBehaviour
Fields
|
Improve this Doc
View Source
Preset
Declaration
public AudioPresets Preset
Field Value
|
Improve this Doc
View Source
SoundIndex
Declaration
Field Value
Properties
|
Improve this Doc
View Source
AudioSource
Gets peer AudioSource component.
Declaration
public AudioSource AudioSource { get; }
Property Value
|
Improve this Doc
View Source
IsReady
Declaration
public bool IsReady { get; }
Property Value
Methods
|
Improve this Doc
View Source
GetAudioClip(Int32)
Get AudioClip from sound index.
Declaration
public AudioClip GetAudioClip(int soundIndex)
Parameters
Type |
Name |
Description |
Int32 |
soundIndex |
|
Returns
|
Improve this Doc
View Source
IsPlaying()
Check if AudioSource is playing a clip.
Declaration
Returns
|
Improve this Doc
View Source
PlayClipAtPoint(SoundClips, Vector3, Single)
Plays sound clip once at a specified position without changing clip on AudioSource.
Declaration
public void PlayClipAtPoint(SoundClips soundClip, Vector3 position, float volumeScale = 1F)
Parameters
|
Improve this Doc
View Source
PlayClipAtPoint(Int32, Vector3, Single)
Plays sound clip once at a specified position without changing clip on AudioSource.
Declaration
public void PlayClipAtPoint(int soundIndex, Vector3 position, float volumeScale = 1F)
Parameters
|
Improve this Doc
View Source
PlayOneShot(SoundClips, Single, Single)
Plays sound clip once without changing clip on AudioSource.
Declaration
public void PlayOneShot(SoundClips soundClip, float spatialBlend = 1F, float volumeScale = 1F)
Parameters
|
Improve this Doc
View Source
PlayOneShot(Int32, Single, Single)
Plays sound index once without changing clip on AudioSource.
Declaration
public void PlayOneShot(int soundIndex, float spatialBlend = 1F, float volumeScale = 1F)
Parameters
|
Improve this Doc
View Source
PlayOneShot(UInt32, Single, Single)
Plays sound ID once without changing clip on AudioSource.
Declaration
public void PlayOneShot(uint soundID, float spatialBlend = 1F, float volumeScale = 1F)
Parameters
|
Improve this Doc
View Source
SetSound(SoundClips, AudioPresets, Single)
Quick set from clip name.
Declaration
public void SetSound(SoundClips soundClip, AudioPresets preset = AudioPresets.OnDemand, float spatialBlend = 1F)
Parameters
|
Improve this Doc
View Source
SetSound(Int32, AudioPresets, Single)
Declaration
public void SetSound(int soundIndex, AudioPresets preset = AudioPresets.OnDemand, float spatialBlend = 1F)
Parameters
|
Improve this Doc
View Source
SetSound(UInt32, AudioPresets, Single)
Declaration
public void SetSound(uint soundID, AudioPresets preset = AudioPresets.OnDemand, float spatialBlend = 1F)
Parameters
Extension Methods
MBExtensions.Invoke<T1, T2, T3, T4>(MonoBehaviour, Action<T1, T2, T3, T4>, T1, T2, T3, T4, Single)