Documentation index for AI agents (llms.txt) A Markdown version of every page is available: request the page's source under /docs/, follow the "alternate" link in this page's head, or start from /llms.txt.
Visual Script logo Manual

Scrollbar Find Selectable On Right#

UI / Scroll / Scrollbar / Scrollbar Find Selectable On Right

Description#

Compares the Find Selectable On Right method of Scrollbar component to another value

Parameters#

Name Description
Scrollbar
Value

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 Find Selectable On Right")]
    [Category("UI/Scroll/Scrollbar/Find Selectable On Right")]
    [Description("Compares the Find Selectable On Right method of Scrollbar component to another value")]
    
    [Image(typeof(IconScrollBar), ColorTheme.Type.TextLight)]
    [Keywords("UI, User, Interface")]
    
    [Parameter("Scrollbar")]
    [Parameter("Value")]
    
    [Serializable]
    public class GenConditionGameObject_Scrollbar_CheckFindSelectableOnRight_0 : Condition
    {
        [SerializeField] private GetGameObject m_Scrollbar = new GetGameObject(
            new GenTypeGameObject_Scrollbar()
        );
        
        [SerializeField] private GetGameObject m_Value = new GetGameObject();
        
        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Find Selectable On Right");
            string parameters = $"()";
            return $"{this.m_Scrollbar} {method} = {this.m_Value}";
        }
        
        protected override bool Run(Args args)
        {
            Scrollbar component = this.m_Scrollbar.Get<Scrollbar>(args);
            if (component == null) return false;
            
            Selectable value = component.FindSelectableOnRight();
            
            return value == this.m_Value.Get<Selectable>(args);
        }
    }
}

Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.