AudioController.DetachAllAudios Method

Audio Toolkit

Collapse image Expand Image Copy image CopyHover image
Detaches all audio objects possibly parented to the specified game object.

Namespace: (Default Namespace)
Assembly: AudioToolkit (in AudioToolkit.dll) Version: 8.0.0.0 (8.0.0.0)

Syntax

C#
public static void DetachAllAudios(
	GameObject gameObjectWithAudios
)

Parameters

gameObjectWithAudios
Type: GameObject
The GameObject with possibly playing AudioObjects.

Remarks

Use this method on a game object BEFORE destryoing it if you want to keep any audios playing parented to this object.

See Also