Ultimate Pooling Scripting Reference
GenericPoolGrouponInstanceSpawned Method |
Handle the spawning of a pooled object.
By default, this method enabled the game object.
Namespace: UltimatePooling
Assembly: Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
protected override void onInstanceSpawned( Object instance, PoolEventType type, Vector3 position, Quaternion rotation )
function onInstanceSpawned(instance, type, position, rotation);
Parameters
- instance
- Type: Object
The newly spawned instance to handle - type
- Type: UltimatePoolingPoolEventType
The type of event used to inform the object of its spawn status - position
- Type: Vector3
The position to spawn the object at - rotation
- Type: Quaternion
The rotation to spawn the object with
See Also