Scroll Rect Is Active#
UI / Scroll / Scroll Rect / Scroll Rect Is Active
Can Read
Cannot Write
Description#
Returns the execution of Is Active method on the Scroll Rect component
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
{
[Get]
[Title("Scroll Rect Is Active")]
[Category("UI/Scroll/Scroll Rect/Is Active")]
[Description("Returns the execution of Is Active method on the Scroll Rect component")]
[Image(typeof(IconScrollRect), ColorTheme.Type.TextLight)]
[Keywords("UI, User, Interface")]
[Serializable]
public class GenTypeBool_ScrollRect_IsActive_0 : TypeBool
{
[SerializeField] private GetGameObject m_ScrollRect = new GetGameObject(
new GenTypeGameObject_ScrollRect()
);
public override bool Get(Args args)
{
ScrollRect component = this.m_ScrollRect.Get<ScrollRect>(args);
if (component == null) return default;
bool value = (bool) component.IsActive();
return value;
}
public override string ToString()
{
return $"{this.m_ScrollRect} Is Active";
}
protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
}
}