Class AssetBundleSoundSource
Enables loading sounds from an asset bundle by the name of AudioClips.
public class AssetBundleSoundSource : CustomSoundSourceBase
- Inheritance
-
AssetBundleSoundSource
- Inherited Members
- Extension Methods
Constructors
AssetBundleSoundSource(AssetBundle)
Creates a sound source that loads sounds from the given asset bundle.
public AssetBundleSoundSource(AssetBundle bundle)
Parameters
bundle
AssetBundle- The bundle containing the audio clips to be accessed.
Methods
InitializeCachedSounds()
Creates and returns a list of all AudioClip names in the asset bundle.
protected override Dictionary<string, CustomSoundSourceBase.CachedSound> InitializeCachedSounds()
Returns
- Dictionary<string, CustomSoundSourceBase.CachedSound>
- A list of all sound names.