<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>CatTechLife</author_name>
  <author_url>https://blog.hatena.ne.jp/CatTechLife/</author_url>
  <blog_title>気ままのゲーム雑談＜M＞</blog_title>
  <blog_url>https://cattechlife.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>今回はスクリプトからUIを取得する方法を調べたので備忘録として書き残していきます。 using UnityEngine.UI; Text BGtext; void Start () { //今回はタグで判別してるので、タグに任意の名前登録しておいてください。今回ははinfotextというタグを追加しました。 infotext = GameObject.FindGameObjectWithTag(&quot;infotext&quot;).GetComponent&lt;Text&gt;(); } void Update () { BGtext.text = &quot;ATTACK&quot;; } という感じでした。最後に 最初は.GetCo…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcattechlife.hatenablog.com%2Fentry%2F2015%2F10%2F14%2F230412&quot; title=&quot;unity 〜スクリプトからUIの取得する〜 - 気ままのゲーム雑談＜M＞&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-10-14 23:04:12</published>
  <title>unity 〜スクリプトからUIの取得する〜</title>
  <type>rich</type>
  <url>https://cattechlife.hatenablog.com/entry/2015/10/14/230412</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
