<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>unitymas_CS</author_name>
  <author_url>https://blog.hatena.ne.jp/unitymas_CS/</author_url>
  <blog_title>Horio.com</blog_title>
  <blog_url>https://hro.hatenablog.jp/</blog_url>
  <categories>
    <anon>Unity</anon>
  </categories>
  <description>かなり既出ではあると思いますが、GUIの書き方や使い方を忘れてしまうことが多いため自分用のリファレンスとしてまとめておきます。まずは基本的なテキスト、ボタン表示から。 今回はテストということで、カメラにスクリプトをアタッチしています。 void OnGUI(){ //(new Rect(左上のｘ座標, 左上のｙ座標, 横幅, 縦幅), &quot;テキスト&quot;, スタイル（今は省略）) GUI.Label (new Rect (50, 50, 50, 50), &quot;Hello.&quot;); //テキスト表示 GUI.Button(new Rect(50, 100, 50, 50),&quot;World.&quot;); //ボタン…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhro.hatenablog.jp%2Fentry%2F2015%2F06%2F20%2F235022&quot; title=&quot;UnityのVoid OnGUI()についてのメモ - Horio.com&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>http://cdn-ak.f.st-hatena.com/images/fotolife/u/unitymas_CS/20150620/20150620224940.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-06-20 23:50:22</published>
  <title>UnityのVoid OnGUI()についてのメモ</title>
  <type>rich</type>
  <url>https://hro.hatenablog.jp/entry/2015/06/20/235022</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
