---
tags:
    - "UI, User, Interface"
---

# Dropdown Show

[UI](../../index.md) / [Interaction](../index.md) / [Dropdown](index.md) / **Dropdown Show**

## Description

Executes the Show method on the Dropdown 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;

namespace VisualScript.Runtime
{
    [Title("Dropdown Show")]
    [Category("UI/Interaction/Dropdown/Show")]
    [Description("Executes the Show method on the Dropdown component")]
    
    [Image(typeof(IconUIDropdown), ColorTheme.Type.TextLight)]
    [Keywords("UI, User, Interface")]
    
    [Serializable]
    public class GenInstructionDropdown_Show_0 : Instruction
    {
        [SerializeField] private GetGameObject m_Dropdown = new GetGameObject(
            new GenTypeGameObject_Dropdown()
        );
        
        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Show");
            return $"{this.m_Dropdown} {method}";
        }
        
        protected override Awaitable Run(Args args)
        {
            Dropdown component = this.m_Dropdown.Get<Dropdown>(args);
            if (component == null) return Done;
            
            component.Show();
            
            return Done;
        }
    }
}


```

