<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>uni-mal</author_name>
  <author_url>https://blog.hatena.ne.jp/uni-mal/</author_url>
  <blog_title>Unityでインディゲームを作る！</blog_title>
  <blog_url>https://indie-game-creation-with-unity.hatenablog.com/</blog_url>
  <categories>
    <anon>UnityのためのC#</anon>
    <anon>Unity</anon>
  </categories>
  <description>2021.2以降、Unity UIでのテキストはTextMeshProに完全に置き換わりつつあるようで、今回はそのテキスト内容をどう変更するかについてです。 TextMeshProはもはやUnityの基本システムであり、標準でパッケージがインストールされています。問題は以前(Legacy Text)の方法ではテキストにアクセスできず、テキスト内容を変更できないということ。 今回はテキスト変更のみに絞って、簡単に記事を書きたいと思います。 ※追記 本記事では、テキスト・コンポーネントをTextMeshProUGUIという抽象度の高いタイプとして扱い、そこからテキスト要素にアクセスしていましたが、…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Findie-game-creation-with-unity.hatenablog.com%2Fentry%2Ftext-mesh-pro-assign-to-text&quot; title=&quot;Unity TextMeshProのテキストをスクリプトから操作する、変更方法について [ UI text ] - Unityでインディゲームを作る！&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/u/uni-mal/20211212/20211212024904.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-12-12 07:00:00</published>
  <title>Unity TextMeshProのテキストをスクリプトから操作する、変更方法について [ UI text ]</title>
  <type>rich</type>
  <url>https://indie-game-creation-with-unity.hatenablog.com/entry/text-mesh-pro-assign-to-text</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
