DataConsumerCollection.ItemAdded(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.
Optional logic that can be provided by a subclasses that's triggered when an item is added to this collection.
public virtual void ItemAdded(int itemIndex, UnityEngine.GameObject itemPrefab);
abstract member ItemAdded : int * UnityEngine.GameObject -> unit
override this.ItemAdded : int * UnityEngine.GameObject -> unit
Public Overridable Sub ItemAdded (itemIndex As Integer, itemPrefab As GameObject)
Parameters
- itemIndex
- Int32
The collection item index of the item being added.
- itemPrefab
- UnityEngine.GameObject
The game object or prefab being added.