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

# Set Dropdown - TextMeshPro Item Image

[UI](../../index.md) / [Interaction](../index.md) / [Dropdown - TextMeshPro](index.md) / **Set Dropdown - TextMeshPro Item Image**

## Description

Sets the Item Image property of Dropdown - TextMeshPro component

## Parameters

| Name | Description |
| :--- | :---------- |
| TMP Dropdown |  |
| Value |  |

## 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("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;
        }
    }
}


```

