TMP Font Asset Create Font Asset#
Text Mesh Pro / TMP Font Asset / TMP Font Asset Create Font Asset FontFilePath, FaceIndex, SamplingPointSize, AtlasPadding, RenderMode, AtlasWidth, AtlasHeight
Description#
Compares the Create Font Asset static method of TMP Font Asset class to another value
Parameters#
| Name | Description |
|---|---|
| Font File Path | |
| Face Index | |
| Sampling Point Size | |
| Atlas Padding | |
| Render Mode | |
| Atlas Width | |
| Atlas Height | |
| 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 Create Font Asset")]
[Category("Text Mesh Pro/TMP Font Asset/Create Font Asset", "FontFilePath, FaceIndex, SamplingPointSize, AtlasPadding, RenderMode, AtlasWidth, AtlasHeight")]
[Description("Compares the Create Font Asset static method of TMP Font Asset class to another value")]
[Image(typeof(IconUIText), ColorTheme.Type.Blue)]
[Keywords("TMP, Text, Mesh, Pro")]
[Parameter("Font File Path")]
[Parameter("Face Index")]
[Parameter("Sampling Point Size")]
[Parameter("Atlas Padding")]
[Parameter("Render Mode")]
[Parameter("Atlas Width")]
[Parameter("Atlas Height")]
[Parameter("Value")]
[Serializable]
public class GenConditionScriptableObject_TMP_FontAsset_CheckCreateFontAsset_7_StringFontFilePath_IntFaceIndex_IntSamplingPointSize_IntAtlasPadding_GlyphRenderModeRenderMode_IntAtlasWidth_IntAtlasHeight : Condition
{
[SerializeField] private GetScriptableObject m_Value = new GetScriptableObject();
[SerializeField] private GetString m_FontFilePath = new GetString();
[SerializeField] private GetInteger m_FaceIndex = new GetInteger();
[SerializeField] private GetInteger m_SamplingPointSize = new GetInteger();
[SerializeField] private GetInteger m_AtlasPadding = new GetInteger();
[SerializeField] private GlyphRenderMode m_RenderMode = default;
[SerializeField] private GetInteger m_AtlasWidth = new GetInteger();
[SerializeField] private GetInteger m_AtlasHeight = new GetInteger();
protected override string GetTitle(GameObject source)
{
string className = TextUtils.ThemeAsKeyword("TMP Font Asset");
string method = TextUtils.ThemeAsKeyword("Create Font Asset");
return $"{className} {method} ({this.m_FontFilePath}, {this.m_FaceIndex}, {this.m_SamplingPointSize}, {this.m_AtlasPadding}, {this.m_RenderMode}, {this.m_AtlasWidth}, {this.m_AtlasHeight}) = {this.m_Value}";
}
protected override bool Run(Args args)
{
TMP_FontAsset value = TMP_FontAsset.CreateFontAsset(
(string) this.m_FontFilePath.Get(args),
(int) this.m_FaceIndex.Get(args),
(int) this.m_SamplingPointSize.Get(args),
(int) this.m_AtlasPadding.Get(args),
this.m_RenderMode,
(int) this.m_AtlasWidth.Get(args),
(int) this.m_AtlasHeight.Get(args)
);
return value == this.m_Value.Get(args) as TMP_FontAsset;
}
}
}