Scrollbar Find Selectable On Down#
UI / Scroll / Scrollbar / Scrollbar Find Selectable On Down
Can Read
Cannot Write
Description#
Returns the execution of Find Selectable On Down method on the Scrollbar 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("Scrollbar Find Selectable On Down")]
[Category("UI/Scroll/Scrollbar/Find Selectable On Down")]
[Description("Returns the execution of Find Selectable On Down method on the Scrollbar component")]
[Image(typeof(IconScrollBar), ColorTheme.Type.TextLight)]
[Keywords("UI, User, Interface")]
[Serializable]
public class GenTypeGameObject_Scrollbar_FindSelectableOnDown_0 : TypeGameObject
{
[SerializeField] private GetGameObject m_Scrollbar = new GetGameObject(
new GenTypeGameObject_Scrollbar()
);
public override GameObject Get(Args args)
{
Scrollbar component = this.m_Scrollbar.Get<Scrollbar>(args);
if (component == null) return default;
Selectable value = (Selectable) component.FindSelectableOnDown();
return value != null ? value.gameObject : null;
}
public override U Get<U>(Args args)
{
if (typeof(U) == typeof(Selectable))
{
Scrollbar component = this.m_Scrollbar.Get<Scrollbar>(args);
if (component == null) return default;
return component.FindSelectableOnDown() as U;
}
return base.Get<U>(args);
}
public override string ToString()
{
return $"{this.m_Scrollbar} Find Selectable On Down";
}
protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
}
}