







![]() |
ClockStone Audio Toolkit for Unity - Documentation |
SingletonMonoBehaviour<(Of <(<'T>)>)>..::..SetSingletonAutoCreate Method |
SingletonMonoBehaviour<(Of <(<'T>)>)> Class See Also Send Feedback |
![]() |
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