---
tags:
    - "UI, User, Interface, TMP, Text, Mesh, Pro"
---

# Dropdown - TextMeshPro Clear Options

[UI](../../index.md) / [Interaction](../index.md) / [Dropdown - TextMeshPro](index.md) / **Dropdown - TextMeshPro Clear Options**

## Description

Executes the Clear Options method on the Dropdown - TextMeshPro component

## Code

```cs
// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>

using System;
using UnityEngine;
using VisualScript.Icons;
using UnityEngine.UI;
using TMPro;

namespace VisualScript.Runtime
{
    [Title("Dropdown - TextMeshPro Clear Options")]
    [Category("UI/Interaction/Dropdown - TextMeshPro/Clear Options")]
    [Description("Executes the Clear Options method on the Dropdown - TextMeshPro component")]
    
    [Image(typeof(IconUIDropdown), ColorTheme.Type.Blue)]
    [Keywords("UI, User, Interface, TMP, Text, Mesh, Pro")]
    
    [Serializable]
    public class GenInstructionTMP_Dropdown_ClearOptions_0 : Instruction
    {
        [SerializeField] private GetGameObject m_TMP_Dropdown = new GetGameObject(
            new GenTypeGameObject_TMP_Dropdown()
        );
        
        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Clear Options");
            return $"{this.m_TMP_Dropdown} {method}";
        }
        
        protected override Awaitable Run(Args args)
        {
            TMP_Dropdown component = this.m_TMP_Dropdown.Get<TMP_Dropdown>(args);
            if (component == null) return Done;
            
            component.ClearOptions();
            
            return Done;
        }
    }
}


```

