Dropdown - TextMeshPro Set Value Without Notify#
UI / Interaction / Dropdown - TextMeshPro / Dropdown - TextMeshPro Set Value Without Notify
Description#
Executes the Set Value Without Notify method on the Dropdown - TextMeshPro component
Parameters#
| Name | Description |
|---|---|
| Input |
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("Dropdown - TextMeshPro Set Value Without Notify")]
[Category("UI/Interaction/Dropdown - TextMeshPro/Set Value Without Notify")]
[Description("Executes the Set Value Without Notify method on the Dropdown - TextMeshPro component")]
[Image(typeof(IconUIDropdown), ColorTheme.Type.Blue)]
[Keywords("UI, User, Interface, TMP, Text, Mesh, Pro")]
[Parameter("Input")]
[Serializable]
public class GenInstructionTMP_Dropdown_SetValueWithoutNotify_1 : Instruction
{
[SerializeField] private GetGameObject m_TMP_Dropdown = new GetGameObject(
new GenTypeGameObject_TMP_Dropdown()
);
[SerializeField] private GetInteger m_Input = new GetInteger();
protected override string GetTitle(GameObject source)
{
string method = TextUtils.ThemeAsKeyword("Set Value Without Notify");
return $"{this.m_TMP_Dropdown} {method} ({this.m_Input})";
}
protected override Awaitable Run(Args args)
{
TMP_Dropdown component = this.m_TMP_Dropdown.Get<TMP_Dropdown>(args);
if (component == null) return Done;
component.SetValueWithoutNotify(
(int) this.m_Input.Get(args)
);
return Done;
}
}
}