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

Selectable Find Selectable On Right#

UI / Interaction / Selectable / Selectable Find Selectable On Right

  • Can Read

  • Cannot Write

Description#

Returns the execution of Find Selectable On Right method on the Selectable 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("Selectable Find Selectable On Right")]
    [Category("UI/Interaction/Selectable/Find Selectable On Right")]
    [Description("Returns the execution of Find Selectable On Right method on the Selectable component")]
    
    [Image(typeof(IconSelectable), ColorTheme.Type.TextLight)]
    [Keywords("UI, User, Interface")]
    
    [Serializable]
    public class GenTypeGameObject_Selectable_FindSelectableOnRight_0 : TypeGameObject
    {
        [SerializeField] private GetGameObject m_Selectable = new GetGameObject(
            new GenTypeGameObject_Selectable()
        );
        
        public override GameObject Get(Args args)
        {
            Selectable component = this.m_Selectable.Get<Selectable>(args);
            if (component == null) return default;
            
            Selectable value = (Selectable) component.FindSelectableOnRight();
            
            return value != null ? value.gameObject : null;
        }
        
        public override U Get<U>(Args args)
        {
            if (typeof(U) == typeof(Selectable))
            {
                Selectable component = this.m_Selectable.Get<Selectable>(args);
                if (component == null) return default;
                
                return component.FindSelectableOnRight() as U;
            }
            
            return base.Get<U>(args);
        }
        
        public override string ToString()
        {
            return $"{this.m_Selectable} Find Selectable On Right";
        }
        
        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}

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