TextMeshPro - Text (UI) Update Mesh Padding#
UI / Graphic / TextMeshPro - Text (UI) / TextMeshPro - Text (UI) Update Mesh Padding
Description#
Executes the Update Mesh Padding 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) Update Mesh Padding")]
[Category("UI/Graphic/TextMeshPro - Text (UI)/Update Mesh Padding")]
[Description("Executes the Update Mesh Padding 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_UpdateMeshPadding_0 : Instruction
{
[SerializeField] private GetGameObject m_TextMeshProUGUI = new GetGameObject(
new GenTypeGameObject_TextMeshProUGUI()
);
protected override string GetTitle(GameObject source)
{
string method = TextUtils.ThemeAsKeyword("Update Mesh Padding");
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.UpdateMeshPadding();
return Done;
}
}
}