PooledObject<T0>

struct in UnityEngine.Pool

/

Implemented in:UnityEngine.CoreModule

Description

A pooled object wraps a reference to an instance returned to the pool when the pooled object is disposed of.

It automates the return of references to avoid manual handling.

The following example shows how to use a PooledObject:

Constructors

PooledObject_1 Initializes the pooled object with a managed object and specifies the pool to which the instance is returned.

Did you find this page useful? Please give it a rating: