コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

2023-07-10から1日間の記事一覧

【Unity】TextMesh Pro の Font Asset を作成する時に "ArgumentNullException: Value cannot be null."

概要 ArgumentNullException: Value cannot be null. TextMesh Pro の Font Asset を作成する時に上記の例外が発生して Font Asset が正常に作成できない現象に遭遇した Unity メニューの「Window > TextMeshPro > Import TMP Essential Resources」を 実行…

【Unity】TextMesh Pro の Glyph の BY をスクリプトから編集する例

概要 using System; using System.Text; using TMPro; using UnityEditor; internal static class Example { [MenuItem( "hoge/hoge" )] private static void Hoge() { const string path = "hoge.asset"; const string text = "あ"; var bytes = Encoding.U…