文档

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.
阅读时间1 分钟最后更新于 1 个月前

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