Click or drag to resize

GameObjectPoolT Constructor (String, FuncT, Boolean)

Creates a new GameObject pool with a custom name and a factory method used for instantiating instances.

Namespace:  Archon.SwissArmyLib.Pooling
Assembly:  Archon.SwissArmyLib (in Archon.SwissArmyLib.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public GameObjectPool(
	string name,
	Func<T> create,
	bool multiScene
)
Request Example View Source

Parameters

name
Type: SystemString
The name of the pool.
create
Type: SystemFuncT
The factory method used to instantiating instances.
multiScene
Type: SystemBoolean
Should the pool and its contents survive a scene change?
See Also