Dropdown Refresh Shown Value#
UI / Interaction / Dropdown / Dropdown Refresh Shown Value
Description#
Executes the Refresh Shown Value method on the Dropdown component
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;
namespace VisualScript.Runtime
{
[Title("Dropdown Refresh Shown Value")]
[Category("UI/Interaction/Dropdown/Refresh Shown Value")]
[Description("Executes the Refresh Shown Value method on the Dropdown component")]
[Image(typeof(IconUIDropdown), ColorTheme.Type.TextLight)]
[Keywords("UI, User, Interface")]
[Serializable]
public class GenInstructionDropdown_RefreshShownValue_0 : Instruction
{
[SerializeField] private GetGameObject m_Dropdown = new GetGameObject(
new GenTypeGameObject_Dropdown()
);
protected override string GetTitle(GameObject source)
{
string method = TextUtils.ThemeAsKeyword("Refresh Shown Value");
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.RefreshShownValue();
return Done;
}
}
}