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