TextMeshPro - Text (UI) Set Layout Dirty#
UI / Graphic / TextMeshPro - Text (UI) / TextMeshPro - Text (UI) Set Layout Dirty
Description#
Executes the Set Layout Dirty method on the TextMeshPro - Text (UI) 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
{
[Title("TextMeshPro - Text (UI) Set Layout Dirty")]
[Category("UI/Graphic/TextMeshPro - Text (UI)/Set Layout Dirty")]
[Description("Executes the Set Layout Dirty method on the TextMeshPro - Text (UI) component")]
[Image(typeof(IconUIText), ColorTheme.Type.Blue)]
[Keywords("UI, User, Interface, TMP, Text, Mesh, Pro")]
[Serializable]
public class GenInstructionTextMeshProUGUI_SetLayoutDirty_0 : Instruction
{
[SerializeField] private GetGameObject m_TextMeshProUGUI = new GetGameObject(
new GenTypeGameObject_TextMeshProUGUI()
);
protected override string GetTitle(GameObject source)
{
string method = TextUtils.ThemeAsKeyword("Set Layout Dirty");
return $"{this.m_TextMeshProUGUI} {method}";
}
protected override Awaitable Run(Args args)
{
TextMeshProUGUI component = this.m_TextMeshProUGUI.Get<TextMeshProUGUI>(args);
if (component == null) return Done;
component.SetLayoutDirty();
return Done;
}
}
}