MLAPI/docs/M_MLAPI_NetworkingManagerComponents_NetworkPoolManager_CreatePool.md
2018-03-31 10:20:18 +02:00

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