Dropdown - TextMeshPro Is Expanded#
UI / Interaction / Dropdown - TextMeshPro / Dropdown - TextMeshPro Is Expanded
Can Read
Cannot Write
Description#
The Is Expanded property of the Dropdown - TextMeshPro 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;
using TMPro;
namespace VisualScript.Runtime
{
[Get]
[Title("Dropdown - TextMeshPro Is Expanded")]
[Category("UI/Interaction/Dropdown - TextMeshPro/Is Expanded")]
[Description("The Is Expanded property of the Dropdown - TextMeshPro component")]
[Image(typeof(IconUIDropdown), ColorTheme.Type.Blue)]
[Keywords("UI, User, Interface, TMP, Text, Mesh, Pro")]
[Serializable]
public class GenTypeBool_TMP_Dropdown_IsExpanded : TypeBool
{
[SerializeField] private GetGameObject m_TMP_Dropdown = new GetGameObject(
new GenTypeGameObject_TMP_Dropdown()
);
public override bool GetPreview(GameObject source)
{
GameObject instance = this.m_TMP_Dropdown.GetPreview(source);
if (instance == null) return default;
TMP_Dropdown component = instance.GetComponent<TMP_Dropdown>();
return component != null ? component.IsExpanded : default;
}
public override bool Get(Args args)
{
TMP_Dropdown instance = this.m_TMP_Dropdown.Get<TMP_Dropdown>(args);
return instance != null
? instance.IsExpanded
: default;
}
public override string ToString()
{
return $"{this.m_TMP_Dropdown} Is Expanded";
}
protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
}
}