SingletonMonoBehaviour(T).SetSingletonAutoCreate Method

Audio Toolkit

Collapse image Expand Image Copy image CopyHover image
Sets the object to be instantiated automatically if no instance of the singleton is found.

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

Syntax

C#
public static void SetSingletonAutoCreate(
	GameObject autoCreatePrefab
)

Parameters

autoCreatePrefab
Type: GameObject
The prefab to be instantiated automatically.

Remarks

Either the game object itself or one of its child objects must contain the singleton component

See Also