Ignition / AudioProperties

Namespace Playniax.Ignition.Framework

Class or component can be found in Assets/Playniax/Ignition/Framework/Scripts/AudioProperties.cs

Class AudioProperties

Description

(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.