Class ObjectPickerItem
One candidate row in an ObjectPicker.
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public class ObjectPickerItem
Fields
iconName
Leading glyph, used when thumbnail is null.
Declaration
public string iconName
Field Value
| Type | Description |
|---|---|
| string |
id
Stable identifier. This is what value holds.
Declaration
public string id
Field Value
| Type | Description |
|---|---|
| string |
Remarks
The empty string is reserved: it is the cleared reference, shown as the noneLabel row.
label
The name shown in the row and in the preview.
Declaration
public string label
Field Value
| Type | Description |
|---|---|
| string |
path
Preview metadata — the asset's path.
Declaration
public string path
Field Value
| Type | Description |
|---|---|
| string |
tab
Which tab this item belongs to, matching an value. Items with no tab show under every tab.
Declaration
public string tab
Field Value
| Type | Description |
|---|---|
| string |
thumbnail
Cover image. Fills the row and preview thumbnail when set, in preference to iconName.
Declaration
public Texture2D thumbnail
Field Value
| Type | Description |
|---|---|
| Texture2D |
type
Preview metadata — the asset's type name.
Declaration
public string type
Field Value
| Type | Description |
|---|---|
| string |