StringPicker / ImagePicker

It is a component for easy handling of items of only text or image.
ItemParamType in the list below is string for StringPicker and Sprite for ImagePicker.
Function about item

Name

Description

itemSize

Set or get the size of the item.

SetColumns( int num )

Set the number of columns.

SyncItemList()

Apply the contents of the item list to the object.
Please call when changing items from script.

items

Content of the item.
Please call SyncItemList() if you changed from script.

AddItem( ItemParamType param )

Add an item to the 0th column.

AddItem( int columnIndex, ItemParamType param )

Add an item to the columnIndex th column.

RemoveItem( int itemIndex )

Remove the itemIndex item of the 0th column.

RemoveItem( int columnIndex, int itemIndex )

Remove the itemIndex item of the columnIndex column.

SetItems( IList<ItemParamType> itemParams, bool fromInspector = false )

Set the 0th column item.

SetItems( int columnIndex, IList<ItemParamType> itemParams, bool fromInspector = false )

Set item of columnIndex th column.

GetPickerScrollRect( int columnIndex )

Get columnIndex th PickerScrollRect.

Function to get the selected item

Name

Description

GetSelectedItem()

Returns ItemParamType of the selected item in the 0th column.

selectedItem

Returns ItemParamType of the selected item in the 0th column.

GetSelectedItems()

Returns an array of ItemParamType selected in each column.

selectedItems

Returns an array of ItemParamType selected in each column.

GetSelectedPickerItem()

Return PickerItem of the selected item of the 0th column.

GetSelectedPickerItems()

Returns an array of PickerItems selected in each column.

Function to get / set status

Name

Description

columnList

GameObject for which the column is built.

layout

Set or get the picker direction.