<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kan_kikuchi</author_name>
  <author_url>https://blog.hatena.ne.jp/kan_kikuchi/</author_url>
  <blog_title>(:3[kanのメモ帳]</blog_title>
  <blog_url>https://kan-kikuchi.hatenablog.com/</blog_url>
  <categories>
    <anon>Unity</anon>
    <anon>TextMesh Pro</anon>
  </categories>
  <description>この記事でのバージョン Unity 2022.3.32f1 はじめに 普通のフォントは文字ごとに幅が違うので、金額等を並べるとカンマの位置がズレてちょっと不格好な感じになってしまいます。 こういう時、TextMesh Proならmspaceを使えば一部分だけ幅を固定できるのですが、 ただ、カンマや円など全ての文字が変わってしまうので、一括には設定できません。 つまり数字部分だけタグで囲いたいので、↓のようにしたいわけです。 &quot;&lt;mspace=0.55em&gt;12&lt;/mspace&gt;,&lt;mspace=0.55em&gt;345&lt;/mspace&gt;円&quot; 今回はこれを簡単に行えるメソッドを作ってみました。 指定…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkan-kikuchi.hatenablog.com%2Fentry%2FFormatNumbersWithSpacing&quot; title=&quot;文字列の数字の所だけ等間隔にする【Unity】【TextMesh Pro】 - (:3[kanのメモ帳]&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/k/kan_kikuchi/20241111/20241111205145.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-11-21 07:32:30</published>
  <title>文字列の数字の所だけ等間隔にする【Unity】【TextMesh Pro】</title>
  <type>rich</type>
  <url>https://kan-kikuchi.hatenablog.com/entry/FormatNumbersWithSpacing</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
