Documentation index for AI agents (llms.txt) A Markdown version of every page is available: request the page's source under /docs/, follow the "alternate" link in this page's head, or start from /llms.txt.
Visual Script logo Manual

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);
        }
    }
}

Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.