Property | Type | Description | |
---|---|---|---|
DefaultContainer | Transform | ||
Entries | ObjectPoolEntry[] |
Method | Description | |
---|---|---|
Awake ( ) : void | ||
GetObjectForPrefab ( GameObject prefabGameObject, bool onlyPooled ) : GameObject |
Gets a new object for the name type provided. If no object type exists or if onlypooled is true and there is no objects of that type in the pool then null will be returned.
|
|
GetPoolEntryForPrefab ( GameObject prefab ) : ObjectPoolEntry |
public GetObjectForPrefab ( GameObject prefabGameObject, bool onlyPooled ) : GameObject | ||
prefabGameObject | GameObject | /// Object type. /// |
onlyPooled | bool | /// If true, it will only return an object if there is one currently pooled. /// |
return | GameObject |
public GetPoolEntryForPrefab ( GameObject prefab ) : ObjectPoolEntry | ||
prefab | GameObject | |
return | ObjectPoolEntry |