Documentation

Unity Engine

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 2 months 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