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

Set Dropdown - TextMeshPro Item Image#

UI / Interaction / Dropdown - TextMeshPro / Set Dropdown - TextMeshPro Item Image

Description#

Sets the Item Image property of Dropdown - TextMeshPro component

Parameters#

Name Description
TMP Dropdown
Value

Code#

// <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("Set Dropdown - TextMeshPro Item Image")]
    [Category("UI/Interaction/Dropdown - TextMeshPro/Item Image")]
    [Description("Sets the Item Image property of Dropdown - TextMeshPro component")]
    
    [Image(typeof(IconUIDropdown), ColorTheme.Type.Blue)]
    [Keywords("UI, User, Interface, TMP, Text, Mesh, Pro")]
    
    [Parameter("TMP Dropdown")]
    [Parameter("Value")]
    
    [Serializable]
    public class GenInstructionGameObject_TMP_Dropdown_SetItemImage : Instruction
    {
        [SerializeField] private GetGameObject m_TMP_Dropdown = new GetGameObject(
            new GenTypeGameObject_TMP_Dropdown()
        );
        
        [SerializeField] private GetGameObject m_Value = new GetGameObject();
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Item Image");
            return $"{this.m_TMP_Dropdown} {member} = {this.m_Value}";
        }
        
        protected override Awaitable Run(Args args)
        {
            TMP_Dropdown component = this.m_TMP_Dropdown.Get<TMP_Dropdown>(args);
            if (component == null) return Done;
            
            component.itemImage = this.m_Value.Get<Image>(args);
            
            return Done;
        }
    }
}

Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.