Dropdown Set Value Without Notify#
UI / Interaction / Dropdown / Dropdown Set Value Without Notify
Description#
Executes the Set Value Without Notify method on the Dropdown 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;
namespace VisualScript.Runtime
{
[Title("Dropdown Set Value Without Notify")]
[Category("UI/Interaction/Dropdown/Set Value Without Notify")]
[Description("Executes the Set Value Without Notify method on the Dropdown component")]
[Image(typeof(IconUIDropdown), ColorTheme.Type.TextLight)]
[Keywords("UI, User, Interface")]
[Parameter("Input")]
[Serializable]
public class GenInstructionDropdown_SetValueWithoutNotify_1 : Instruction
{
[SerializeField] private GetGameObject m_Dropdown = new GetGameObject(
new GenTypeGameObject_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_Dropdown} {method} ({this.m_Input})";
}
protected override Awaitable Run(Args args)
{
Dropdown component = this.m_Dropdown.Get<Dropdown>(args);
if (component == null) return Done;
component.SetValueWithoutNotify(
(int) this.m_Input.Get(args)
);
return Done;
}
}
}