Scroll Rect Is Active#
UI / Scroll / Scroll Rect / Scroll Rect Is Active
Description#
Compares the Is Active method of Scroll Rect component to another value
Parameters#
| Name | Description |
|---|---|
| Scroll Rect |
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("Scroll Rect Is Active")]
[Category("UI/Scroll/Scroll Rect/Is Active")]
[Description("Compares the Is Active method of Scroll Rect component to another value")]
[Image(typeof(IconScrollRect), ColorTheme.Type.TextLight)]
[Keywords("UI, User, Interface")]
[Parameter("Scroll Rect")]
[Serializable]
public class GenConditionBool_ScrollRect_CheckIsActive_0 : Condition
{
[SerializeField] private GetGameObject m_ScrollRect = new GetGameObject(
new GenTypeGameObject_ScrollRect()
);
protected override string GetTitle(GameObject source)
{
string method = TextUtils.ThemeAsKeyword("Is Active");
string parameters = $"()";
return $"{this.m_ScrollRect} {method}";
}
protected override bool Run(Args args)
{
ScrollRect component = this.m_ScrollRect.Get<ScrollRect>(args);
if (component == null) return false;
bool value = component.IsActive();
return value;
}
}
}