TMP Text Get Parsed Text#
UI / Graphic / TMP Text / TMP Text Get Parsed Text
Can Read
Cannot Write
Description#
Returns the execution of Get Parsed Text method on the TMP Text 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("TMP Text Get Parsed Text")]
[Category("UI/Graphic/TMP Text/Get Parsed Text")]
[Description("Returns the execution of Get Parsed Text method on the TMP Text component")]
[Image(typeof(IconUIText), ColorTheme.Type.Blue)]
[Keywords("UI, User, Interface, TMP, Text, Mesh, Pro")]
[Serializable]
public class GenTypeString_TMP_Text_GetParsedText_0 : TypeString
{
[SerializeField] private GetGameObject m_TMP_Text = new GetGameObject(
new GenTypeGameObject_TMP_Text()
);
public override string Get(Args args)
{
TMP_Text component = this.m_TMP_Text.Get<TMP_Text>(args);
if (component == null) return default;
string value = (string) component.GetParsedText();
return value;
}
public override string ToString()
{
return $"{this.m_TMP_Text} Get Parsed Text";
}
protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
}
}