NetworkPoolManagerCreatePool Method |  |
[This is preliminary documentation and is subject to change.]
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)
Syntaxpublic static void CreatePool(
string poolName,
int spawnablePrefabIndex,
uint size = 16
)
Request Example
View SourceParameters
- poolName
- Type: SystemString
Name of the pool - spawnablePrefabIndex
- Type: SystemInt32
The index of the prefab to use in the spawnablePrefabs array - size (Optional)
- Type: SystemUInt32
The amount of objects in the pool
See Also