







![]() |
ClockStone Audio Toolkit for Unity - Documentation |
ObjectPoolController..::..Preload Method |
ObjectPoolController Class See Also Send Feedback |
![]() |
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.0.0.0 (8.0.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.