Selectable Select#
UI / Interaction / Selectable / Selectable Select
Description#
Executes the Select 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
{
[Title("Selectable Select")]
[Category("UI/Interaction/Selectable/Select")]
[Description("Executes the Select method on the Selectable component")]
[Image(typeof(IconSelectable), ColorTheme.Type.TextLight)]
[Keywords("UI, User, Interface")]
[Serializable]
public class GenInstructionSelectable_Select_0 : Instruction
{
[SerializeField] private GetGameObject m_Selectable = new GetGameObject(
new GenTypeGameObject_Selectable()
);
protected override string GetTitle(GameObject source)
{
string method = TextUtils.ThemeAsKeyword("Select");
return $"{this.m_Selectable} {method}";
}
protected override Awaitable Run(Args args)
{
Selectable component = this.m_Selectable.Get<Selectable>(args);
if (component == null) return Done;
component.Select();
return Done;
}
}
}