Adventure Creator  1.79.1
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2022
AC.MusicStorage Class Reference

Public Member Functions

 MusicStorage (int[] idArray)
 The default Constructor. More...
 
void ShowGUI (string apiPrefix, bool allowMixerGroups)
 

Public Attributes

int ID
 
string label
 
AudioClip audioClip
 
float relativeVolume
 
AudioMixerGroup overrideMixerGroup = null
 

Properties

string Label [get]
 

Constructor & Destructor Documentation

◆ MusicStorage()

AC.MusicStorage.MusicStorage ( int[]  idArray)

The default Constructor.

Parameters
idArrayAn array of already-used ID numbers, so that a unique one can be generated

Member Data Documentation

◆ audioClip

AudioClip AC.MusicStorage.audioClip

The music's AudioClip

◆ ID

int AC.MusicStorage.ID

A unique identifier

◆ label

string AC.MusicStorage.label

An Editor label

◆ overrideMixerGroup

AudioMixerGroup AC.MusicStorage.overrideMixerGroup = null

If assigned, the AudioMixerGroup to use when this track is played - as opposed to the default. For this to be used, the use of mixer groups must be enabled in the Settings Manager

◆ relativeVolume

float AC.MusicStorage.relativeVolume

The relative volume to play the music at, as a decimal of the global music volume