Click or drag to resize

SerialisableObjectPoolTSetSize Method

[This is preliminary documentation and is subject to change.]

Sets the number of objects contained by the pool, either destroying excess pooled objects, or instantiating new ones.

Namespace:  Umbrace.Unity.PurePool
Assembly:  Umbrace.Unity.PurePool (in Umbrace.Unity.PurePool.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
public void SetSize(
	int poolSize
)

Parameters

poolSize
Type: SystemInt32
The target number of objects the pool should contain.

Implements

IObjectPoolSetSize(Int32)
Remarks
poolSize cannot be a negative number, and cannot be larger than MaximumSize.
See Also