CustomAssets
Askowl Custom Assets
Mutable/AudioClips.cs
1 // Copyright 2018 (C) paul@marrington.net http://www.askowl.net/unity-packages
2 
4 using UnityEngine;
5 
6 namespace CustomAsset.Mutable {
7  /// <a href="http://bit.ly/2RcqaCt">Create an asset to store a list of sounds and play one randomly or cyclically</a>
8  [CreateAssetMenu(menuName = "Custom Assets/Mutable/Audio Clips", fileName = "AudioClips")]
9  public class AudioClips : OfType<AudioClipSet> {
10  /// <a href="http://bit.ly/2RcqaCt">Retrieve an asset of AudioClips</a>
11  public static AudioClips Instance(string name) => Instance<AudioClips>(name);
12 
13  /// <a href="http://bit.ly/2RcqaCt">Audio Clip Picker <see cref="CustomAsset.Constant.AudioClipSet"/></a>
14  public AudioClipSet Picker => Value;
15  }
16 }
Support class for audio clip playing
Base class for a custom asset. Provides getters and setters for the contained value and templates for...