Method CreateItem
CreateItem(DropdownItem)
Create a dropdown item based upon the item template.
Declaration
protected virtual TMP_Dropdown.DropdownItem CreateItem(TMP_Dropdown.DropdownItem itemTemplate)
Parameters
Type | Name | Description |
---|---|---|
TMP_Dropdown.DropdownItem | itemTemplate | e template to create the option item from. |
Returns
Type | Description |
---|---|
TMP_Dropdown.DropdownItem | The created dropdown item component |
Remarks
Override this method to implement a different way to obtain an option item. The option item should correspond to the provided template DropdownItem and its GameObject, equivalent to instantiating a copy of it.