IDataConsumerCollection.ReturnGameObjectForReuse(Int32, GameObject) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Return a game object that is no longer needed for visual presentation.
public void ReturnGameObjectForReuse(int itemIndex, UnityEngine.GameObject itemGO);
abstract member ReturnGameObjectForReuse : int * UnityEngine.GameObject -> unit
Public Sub ReturnGameObjectForReuse (itemIndex As Integer, itemGO As GameObject)
Parameters
- itemIndex
- Int32
The index in the collection of the item to return.
- itemGO
- UnityEngine.GameObject
The actual game object to return, usually a prefab.