Table of Contents

Class AudioSource

Namespace
Alis.Core.Ecs.Component.Audio
Assembly
Alis.dll

The audio source class

public class AudioSource : AComponent, IComponent<GameObject>, IEnabled, IIdentifier, IRuntime, IBuilder<AudioSourceBuilder>

Inheritance

Implements

Inherited Members

Constructors

AudioSource(AudioClip)

Initializes a new instance of the Alis.Core.Ecs.Component.Audio.AudioSource class

public AudioSource(AudioClip audioClip)

Parameters

audioClip AudioClip

The audio clip

AudioSource()

Initializes a new instance of the Alis.Core.Ecs.Component.Audio.AudioSource class

public AudioSource()

Properties

AudioClip

Gets or sets the value of the audio clip

public AudioClip AudioClip { get; set; }

Property Value

AudioClip

IsPlaying

Gets the value of the is playing

public bool IsPlaying { get; }

Property Value

bool

Loop

Gets or sets the value of the loop

public bool Loop { get; set; }

Property Value

bool

Mute

Gets or sets the value of the mute

public bool Mute { get; set; }

Property Value

bool

PlayOnAwake

Gets or sets the value of the play on awake

public bool PlayOnAwake { get; set; }

Property Value

bool

Volume

Gets or sets the value of the volume

public float Volume { get; set; }

Property Value

float

Methods

Builder()

Builders this instance

public AudioSourceBuilder Builder()

Returns

AudioSourceBuilder

The audio source builder

OnExit()

Ons the exit

public override void OnExit()

OnInit()

Ons the init

public override void OnInit()

OnStart()

Starts this instance

public override void OnStart()

OnStop()

Ons the stop

public override void OnStop()

Play()

Plays this instance

public void Play()

Resume()

Resumes this instance

public void Resume()

Stop()

Stops this instance

public void Stop()