_ChrRectSet.cs using UnityEngine; using UnityEditor; using System.Collections.Generic; /* * BMFontで出力した bitmap font 画像の文字配置情報を * custom Font に設定するUnity拡張。 * * Custom → Custom Font Setting → Chr Rect Set でウインドウを開いて、 * Custom Font、テーブルファイル(.txt)、フォント画像、 * の3つをD&Dで登録して Set ボタンを押せば、 * Custom Font の Character Rects を設定してくれる。 * * 等間隔で配置された bitmpa font 画像に関しても設定できる機能付き。 * Custom Font、フォント画像、 * 画像内でフォント部分