Skip to main content

DataList_DropdownTMP.AddOption

Declaration#

public virtual void AddOption(string value)

Parameters#

NameDescription
valueValue of the option

Description#

Add an option to the list

Usage#

Example
using NullSave.GDTK;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(DataList_DropdownTMP target)    {        target.AddOption("value");    }
}

Declaration#

public virtual void AddOption(string key, string value)

Parameters#

NameDescription
keyKey of the option
valueValue of the option

Description#

Add an option to the list

Usage#

Example
using NullSave.GDTK;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(DataList_DropdownTMP target)    {        target.AddOption("key", "value");    }
}