Scrollbar Set Value Without Notify#
UI / Scroll / Scrollbar / Scrollbar Set Value Without Notify
Description#
Executes the Set Value Without Notify method on the Scrollbar 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("Scrollbar Set Value Without Notify")]
[Category("UI/Scroll/Scrollbar/Set Value Without Notify")]
[Description("Executes the Set Value Without Notify method on the Scrollbar component")]
[Image(typeof(IconScrollBar), ColorTheme.Type.TextLight)]
[Keywords("UI, User, Interface")]
[Parameter("Input")]
[Serializable]
public class GenInstructionScrollbar_SetValueWithoutNotify_1 : Instruction
{
[SerializeField] private GetGameObject m_Scrollbar = new GetGameObject(
new GenTypeGameObject_Scrollbar()
);
[SerializeField] private GetNumber m_Input = new GetNumber();
protected override string GetTitle(GameObject source)
{
string method = TextUtils.ThemeAsKeyword("Set Value Without Notify");
return $"{this.m_Scrollbar} {method} ({this.m_Input})";
}
protected override Awaitable Run(Args args)
{
Scrollbar component = this.m_Scrollbar.Get<Scrollbar>(args);
if (component == null) return Done;
component.SetValueWithoutNotify(
(float) this.m_Input.Get(args)
);
return Done;
}
}
}