跳到主要内容

Class AudioGroup

Represents a group of sound of some type. Derive from this type to create custom audio types such as music, voice, ambient.

Properties

volume

Volume of the group.

public float volume { get; set; }

baseVolume

Base volume of winS.Unity.Modules.Audio.AudioPlayer Created form this group. Override this property to customize the volume calculation formula.

protected virtual float baseVolume { get; }

Methods

UpdateVolume()

Update volume of this group.

public void UpdateVolume()

Pause2D()

public void Pause2D()

Pause3D()

public void Pause3D()

PauseAll()

public void PauseAll()

Unpause2D()

public void Unpause2D()

Unpause3D()

public void Unpause3D()

UnpauseAll()

public void UnpauseAll()

RegisterAudioSource2D(AudioSource audioSource)

public void RegisterAudioSource2D(AudioSource audioSource)

RegisterAudioSource3D(AudioSource audioSource)

public void RegisterAudioSource3D(AudioSource audioSource)

UnregisterAudioSource2D(AudioSource audioSource)

public void UnregisterAudioSource2D(AudioSource audioSource)

UnregisterAudioSource3D(AudioSource audioSource)

public void UnregisterAudioSource3D(AudioSource audioSource)

Pause2D(float fadeout)

public Task Pause2D(float fadeout)

Pause3D(float fadeout)

public Task Pause3D(float fadeout)

PauseAll(float fadeout)

public Task PauseAll(float fadeout)

Unpause2D(float fadein)

public Task Unpause2D(float fadein)

Unpause3D(float fadein)

public Task Unpause3D(float fadein)

UnpauseAll(float fadein)

public Task UnpauseAll(float fadein)

ForceRelease2D()

public void ForceRelease2D()

ForceRelease3D()

public void ForceRelease3D()

ForceReleaseAll()

public void ForceReleaseAll()

Get2DPlayer()

public virtual Audio2DPlayer Get2DPlayer()

Get3DPlayer()

public virtual Audio3DPlayer Get3DPlayer()

Get2DPlayer(GameObject owner)

public Audio2DPlayer Get2DPlayer(GameObject owner)

Get3DPlayer(GameObject owner)

public Audio3DPlayer Get3DPlayer(GameObject owner)

Attach3DPlayer(GameObject gameObject)

public virtual ObjectAudio3DPlayer Attach3DPlayer(GameObject gameObject)