Selectable Is Highlighted#
UI / Interaction / Selectable / Selectable Is Highlighted
Can Read
Cannot Write
Description#
Returns the execution of Is Highlighted 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 Is Highlighted")]
[Category("UI/Interaction/Selectable/Is Highlighted")]
[Description("Returns the execution of Is Highlighted method on the Selectable component")]
[Image(typeof(IconSelectable), ColorTheme.Type.TextLight)]
[Keywords("UI, User, Interface")]
[Serializable]
public class GenTypeBool_Selectable_IsHighlighted_0 : TypeBool
{
[SerializeField] private GetGameObject m_Selectable = new GetGameObject(
new GenTypeGameObject_Selectable()
);
public override bool Get(Args args)
{
Selectable component = this.m_Selectable.Get<Selectable>(args);
if (component == null) return default;
bool value = (bool) component.IsHighlighted();
return value;
}
public override string ToString()
{
return $"{this.m_Selectable} Is Highlighted";
}
protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
}
}