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#

UI / Interaction / Selectable / Selectable Find Selectable

Description#

Compares the Find Selectable method of Selectable component to another value

Parameters#

Name Description
Selectable
Dir
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("Selectable Find Selectable")]
    [Category("UI/Interaction/Selectable/Find Selectable")]
    [Description("Compares the Find Selectable method of Selectable component to another value")]
    
    [Image(typeof(IconSelectable), ColorTheme.Type.TextLight)]
    [Keywords("UI, User, Interface")]
    
    [Parameter("Selectable")]
    [Parameter("Dir")]
    [Parameter("Value")]
    
    [Serializable]
    public class GenConditionGameObject_Selectable_CheckFindSelectable_1 : Condition
    {
        [SerializeField] private GetGameObject m_Selectable = new GetGameObject(
            new GenTypeGameObject_Selectable()
        );
        
        [SerializeField] private GetGameObject m_Value = new GetGameObject();
        
        [SerializeField] private GetVector3 m_Dir = new GetVector3();
        
        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Find Selectable");
            string parameters = $"({this.m_Dir})";
            return $"{this.m_Selectable} {method} = {this.m_Value}";
        }
        
        protected override bool Run(Args args)
        {
            Selectable component = this.m_Selectable.Get<Selectable>(args);
            if (component == null) return false;
            
            Selectable value = component.FindSelectable(
                (Vector3) this.m_Dir.Get(args)
            );
            
            return value == this.m_Value.Get<Selectable>(args);
        }
    }
}

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