Click or drag to resize

SerialisableComponentPool Constructor

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

Initialises a new instance of the SerialisableComponentPool class.

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 SerialisableComponentPool(
	Type componentType,
	Transform parent,
	params Type[] additionalComponents
)

Parameters

componentType
Type: SystemType
The type of the component to pool.
parent
Type: UnityEngineTransform
The parent transform to which all pooled GameObject objects will be parented in the hierarchy.
additionalComponents
Type: SystemType
An optional list of additional component types, that should be added to the same GameObject as the main component type.
See Also