DataList_DropdownTMP.AddOption
Declaration#
public virtual void AddOption(string value)Parameters#
| Name | Description |
|---|---|
| value | Value 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#
| Name | Description |
|---|---|
| key | Key of the option |
| value | Value 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"); }
}