UICollection.AddItem(RectTransform) 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.
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.