Documentation index for AI agents (llms.txt) A Markdown version of every page is available: request the page's source under /docs/, follow the "alternate" link in this page's head, or start from /llms.txt.
Visual Script logo Manual

On Dropdown Change#

UI / On Dropdown Change

Description#

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

Code#

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);
        }
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.