Ignition / AudioProperties

Namespace Playniax.Ignition

Script can be found in Assets/Playniax/Framework/Ignition/Scripts/AudioProperties.cs

Class AudioProperties


(depends on AudioChannels class)

Public fieldsDescription
AudioClip audioClip AudioClip to play.
float volumeScale = 1f Sound volume.
float pitch = 1 Sound frequency.
bool enabled = true Sound on / off.

Public MethodsDescription
static void Copy(AudioProperties source, AudioProperties target)Copy the properties of one to the other.
AudioProperties Clone()Returns a clone with the same properties.
AudioSource Play()Play AudioClip.