Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PooledObject(T, IObjectPool<T>)

Initializes the pooled object with a managed object and specifies the pool to which the instance is returned.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Constructor
  • Namespace: UnityEngine.Pool
  • Assembly: UnityEngine.CoreModule
public PooledObject(T value, IObjectPool<T> pool)

Parameters

value

T
Object to manage

Pool owning the object