---
tags:
    - "UI"
    - "Canvas"
    - "Dropdown"
    - "Select"
    - "Option"
    - "List"
    - "Choice"
    - "TMP"
---

# On Dropdown Change

[UI](index.md) / **On Dropdown Change**

## Description

Executed when the Dropdown on the target game object selects another option

## Code

```cs
using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime.UI
{
    [Title("On Dropdown Change")]
    [Image(typeof(IconUIDropdown), ColorTheme.Type.TextLight)]

    [Description("Executed when the Dropdown on the target game object selects another option")]
    [Category("UI/On Dropdown Change")]

    [Keywords("UI", "Canvas", "Dropdown", "Select", "Option", "List", "Choice", "TMP")]

    [Serializable]
    public class TriggerCoreUIDropdown : TriggerHandleSourceBase<HandleOnUIDropdown>
    {
        // PROPERTIES: ----------------------------------------------------------------------------

        protected override string GetTitle(GameObject source) => $"{this.SourceName} Dropdown Change";

        // OVERRIDE METHODS: ----------------------------------------------------------------------

        protected override void OnTrigger(GameObject target)
        {
            using Args args = Args.Get(this.Component, target);
            this.Run(args);
        }
    }
}
```

