TextMeshPro - Text (UI) Auto Size Text Container#
UI / Graphic / TextMeshPro - Text (UI) / TextMeshPro - Text (UI) Auto Size Text Container
Description#
Compares the Auto Size Text Container property of TextMeshPro - Text (UI) component to another value
Parameters#
| Name | Description |
|---|---|
| Text Mesh Pro UGUI |
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("TextMeshPro - Text (UI) Auto Size Text Container")]
[Category("UI/Graphic/TextMeshPro - Text (UI)/Auto Size Text Container")]
[Description("Compares the Auto Size Text Container property of TextMeshPro - Text (UI) component to another value")]
[Image(typeof(IconUIText), ColorTheme.Type.Blue)]
[Keywords("UI, User, Interface, TMP, Text, Mesh, Pro")]
[Parameter("Text Mesh Pro UGUI")]
[Serializable]
public class GenConditionBool_TextMeshProUGUI_CheckAutoSizeTextContainer : Condition
{
[SerializeField] private GetGameObject m_TextMeshProUGUI = new GetGameObject(
new GenTypeGameObject_TextMeshProUGUI()
);
protected override string GetTitle(GameObject source)
{
string member = TextUtils.ThemeAsKeyword("Auto Size Text Container");
return $"{this.m_TextMeshProUGUI} {member}";
}
protected override bool Run(Args args)
{
TextMeshProUGUI component = this.m_TextMeshProUGUI.Get<TextMeshProUGUI>(args);
if (component == null) return false;
return component.autoSizeTextContainer;
}
}
}