CustomAssets
Askowl Custom Assets
CustomAsset.Mutable.AudioClips Class Reference

Create an asset to store a list of sounds and play one randomly or cyclically More...

Inheritance diagram for CustomAsset.Mutable.AudioClips:
CustomAsset.Mutable.OfType< AudioClipSet >

Static Public Member Functions

static AudioClips Instance (string name)
 Retrieve an asset of AudioClips More...
 
- Static Public Member Functions inherited from CustomAsset.Mutable.OfType< AudioClipSet >
static implicit operator T (OfType< T > t)
 All extraction by casting a custom object to the contained type. Same as getting the Value - as in myCustomAsset.Value === (MyCustomAsset) myCustomAsset More...
 
static new TC Instance< TC > (string path=null)
 If this is a project asset, then you will need to reference it somewhere. Other classes can get a reference using Instance() or Instance(string name). Also useful for creating in-memory versions to share between hosts More...
 
static TC New< TC > ()
 Create a new instance of the asset with a random name (GUID based) More...
 
static TC New< TC > (string name)
 Create a new instance of the asset with a supplied name. Note you can get duplicate names More...
 
static OfType< T > New (string name=null)
 Create a new instance dynamically More...
 

Public Attributes

AudioClipSet Picker => Value
 Audio Clip Picker More...
 

Additional Inherited Members

- Public Member Functions inherited from CustomAsset.Mutable.OfType< AudioClipSet >
override string ToString ()
 Pass string conversion responsibility from the custom asset to the containing value More...
 
virtual void Set (T toValue)
 For safe(ish) access to the contents field More...
 
override int GetHashCode ()
  More...
 
override bool Equals (object other)
 Part of the group of Equals functions. Passes responsibility to the containing data More...
 
void Load ()
 Basic load for a persistent custom asset More...
 
void Save ()
 Basic save for a persistent custom asset More...
 
- Protected Member Functions inherited from CustomAsset.Mutable.OfType< AudioClipSet >
override void OnEnable ()
 Called when an asset is loaded and enabled. Used to ensure the custom asset does not leave memory prematurely and to load it if persistent More...
 
override void OnDisable ()
  More...
 
- Properties inherited from CustomAsset.Mutable.OfType< AudioClipSet >
virtual T Value [get, set]
 For safe(ish) access to the contents field More...
 

Detailed Description

Member Function Documentation

◆ Instance()

static AudioClips CustomAsset.Mutable.AudioClips.Instance ( string  name)
static

Member Data Documentation

◆ Picker

AudioClipSet CustomAsset.Mutable.AudioClips.Picker => Value

Audio Clip Picker

Definition at line 14 of file Mutable/AudioClips.cs.


The documentation for this class was generated from the following file: