Selectable Find Selectable On Left#
UI / Interaction / Selectable / Selectable Find Selectable On Left
Can Read
Cannot Write
Description#
Returns the execution of Find Selectable On Left 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 Left")]
[Category("UI/Interaction/Selectable/Find Selectable On Left")]
[Description("Returns the execution of Find Selectable On Left method on the Selectable component")]
[Image(typeof(IconSelectable), ColorTheme.Type.TextLight)]
[Keywords("UI, User, Interface")]
[Serializable]
public class GenTypeGameObject_Selectable_FindSelectableOnLeft_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.FindSelectableOnLeft();
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.FindSelectableOnLeft() as U;
}
return base.Get<U>(args);
}
public override string ToString()
{
return $"{this.m_Selectable} Find Selectable On Left";
}
protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
}
}