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()

Creates an option with a caption and an optional sprite.

[ctor]public OptionData()

Creates an image-only option.

public bool Equals()
public override bool Equals()
public override int GetHashCode()