Language
Edit

IDataObjectPool.ReturnAllPrefetchedObjects(Action<Int32,Object>) Method

Definition

Return all prefectehd objects to the pool for reuse.

public void ReturnAllPrefetchedObjects(Action<int,object> processObject);
abstract member ReturnAllPrefetchedObjects : Action<int, obj> -> unit
Public Sub ReturnAllPrefetchedObjects (processObject As Action(Of Integer, Object))

Parameters

processObject
Action<Int32,Object>

Apply an action to each object being returned. This allows them to be reset.

Remarks

This is useful for situations where a collection is being entirely reset or reorganized where the ids associated with gameobjects are all incorrect.

Applies to