Dropdown - TextMeshPro Is Expanded#
UI / Interaction / Dropdown - TextMeshPro / Dropdown - TextMeshPro Is Expanded
Description#
Compares the Is Expanded property of Dropdown - TextMeshPro component to another value
Parameters#
| Name | Description |
|---|---|
| TMP Dropdown |
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;
using TMPro;
namespace VisualScript.Runtime
{
[Title("Dropdown - TextMeshPro Is Expanded")]
[Category("UI/Interaction/Dropdown - TextMeshPro/Is Expanded")]
[Description("Compares the Is Expanded property of Dropdown - TextMeshPro component to another value")]
[Image(typeof(IconUIDropdown), ColorTheme.Type.Blue)]
[Keywords("UI, User, Interface, TMP, Text, Mesh, Pro")]
[Parameter("TMP Dropdown")]
[Serializable]
public class GenConditionBool_TMP_Dropdown_CheckIsExpanded : Condition
{
[SerializeField] private GetGameObject m_TMP_Dropdown = new GetGameObject(
new GenTypeGameObject_TMP_Dropdown()
);
protected override string GetTitle(GameObject source)
{
string member = TextUtils.ThemeAsKeyword("Is Expanded");
return $"{this.m_TMP_Dropdown} {member}";
}
protected override bool Run(Args args)
{
TMP_Dropdown component = this.m_TMP_Dropdown.Get<TMP_Dropdown>(args);
if (component == null) return false;
return component.IsExpanded;
}
}
}