Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Dropdown.OptionData Constructor

public Dropdown.OptionData();
public Dropdown.OptionData(string text);
public Dropdown.OptionData(Sprite image);
public Dropdown.OptionData(string text, Sprite image);

Parameters

text Optional text for the option.
image Optional image for the option.

Description

Create an object representing a single option for the dropdown list.