1.2 KiB
1.2 KiB
NetworkPoolManager.CreatePool Method
Creates a networked object pool. Can only be called from the server
Namespace: MLAPI.NetworkingManagerComponents
Assembly: MLAPI (in MLAPI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static void CreatePool(
string poolName,
int spawnablePrefabIndex,
uint size = 16
)
Parameters
- poolName
- Type: System.String
Name of the pool - spawnablePrefabIndex
- Type: System.Int32
The index of the prefab to use in the spawnablePrefabs array - size (Optional)
- Type: System.UInt32
The amount of objects in the pool
See Also
Reference
NetworkPoolManager Class
MLAPI.NetworkingManagerComponents Namespace