ClockStone Audio Toolkit for Unity - Documentation
ObjectPoolControllerPreload Method |
Preloads as many instances to the pool so that there are at least as many as
specified in preloadCount.
Namespace: (Default Namespace)
Assembly: AudioToolkit (in AudioToolkit.dll) Version: 8.2.0.0 (8.2.0.0)
Syntax
C#
public static void Preload( GameObject prefab )
Parameters
- prefab
- Type: GameObject
The prefab.
Remarks
Use ObjectPoolController.isDuringPreload to check if an object is preloaded in the Awake() function.
If the pool already contains at least preloadCount objects, the function does nothing.
See Also