PoolGroup.onInstanceSpawned Method

Ultimate Pooling

PoolGrouponInstanceSpawned Method
Should be implemented by the inheriting class. Called when the object has been taken from the pool and will be re-used.

Namespace: UltimatePooling
Assembly: Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
protected abstract void onInstanceSpawned(
	Object instance,
	PoolEventType type,
	Vector3 position,
	Quaternion rotation
)
function onInstanceSpawned(instance, type, position, rotation);

Parameters

instance
Type: Object
The object that has been re-used
type
Type: UltimatePoolingPoolEventType
The event type that should be used to inform the object that it has been spawned
position
Type: Vector3
The position to spawn the object at
rotation
Type: Quaternion
The rotaiton to spawn the object with
See Also