ClockStone Audio Toolkit for Unity - Documentation
SingletonMonoBehaviourTSetSingletonAutoCreate Method |
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.2.0.0 (8.2.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