Modifier

Partager via


UICollection.AddItem(RectTransform) Method

Definition

Adds a UI element to the collection. This will cause the collection layout to update immediately. NOTE: The added item's RectTransform will get modified in order to layout properly in this collection.

public:
 void AddItem(UnityEngine::RectTransform ^ item);
public void AddItem (UnityEngine.RectTransform item);
member this.AddItem : UnityEngine.RectTransform -> unit
Public Sub AddItem (item As RectTransform)

Parameters

item
UnityEngine.RectTransform

The UI element to add to the collection.

Applies to