TMP Font Asset Get Characters#
Text Mesh Pro / TMP Font Asset / TMP Font Asset Get Characters
Description#
Compares the Get Characters static method of TMP Font Asset class to another value
Parameters#
| Name | Description |
|---|---|
| Font Asset | |
| Value |
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.TextCore.LowLevel;
using UnityEngine.UI;
using TMPro;
namespace VisualScript.Runtime
{
[Title("TMP Font Asset Get Characters")]
[Category("Text Mesh Pro/TMP Font Asset/Get Characters")]
[Description("Compares the Get Characters static method of TMP Font Asset class to another value")]
[Image(typeof(IconUIText), ColorTheme.Type.Blue)]
[Keywords("TMP, Text, Mesh, Pro")]
[Parameter("Font Asset")]
[Parameter("Value")]
[Serializable]
public class GenConditionString_TMP_FontAsset_CheckGetCharacters_1 : Condition
{
[SerializeField] private GetString m_Value = new GetString();
[SerializeField] private GetScriptableObject m_FontAsset = new GetScriptableObject();
protected override string GetTitle(GameObject source)
{
string className = TextUtils.ThemeAsKeyword("TMP Font Asset");
string method = TextUtils.ThemeAsKeyword("Get Characters");
return $"{className} {method} ({this.m_FontAsset}) = {this.m_Value}";
}
protected override bool Run(Args args)
{
string value = TMP_FontAsset.GetCharacters(
(TMP_FontAsset) this.m_FontAsset.Get(args)
);
return value == (string) this.m_Value.Get(args);
}
}
}