Docsv3.31.0
Back to API Reference
Struct

UniTextDropdown.OptionData

sealed

Text and optional sprite for one option; replace the entry through Options to update its presentation.

public string Text{ get }

Gets the caption, with an absent caption represented by an empty string.

public Sprite Image{ get }

Gets the optional sprite.

[ctor]public OptionData(string text, Sprite image = null)

Creates an option with a caption and an optional sprite.

[ctor]public OptionData(Sprite image)

Creates an image-only option.

public bool Equals(UniTextDropdown.OptionData other)
public override bool Equals(object obj)
public override int GetHashCode()