<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>baba_s</author_name>
  <author_url>https://blog.hatena.ne.jp/baba_s/</author_url>
  <blog_title>コガネブログ</blog_title>
  <blog_url>https://baba-s.hatenablog.com/</blog_url>
  <categories>
    <anon>Unity</anon>
    <anon>Unity - uGUI</anon>
    <anon>Unity - 拡張メソッド</anon>
  </categories>
  <description>はじめに var t = self.GetComponent&lt;RectTransform&gt;(); // 取得 var width = t.sizeDelta.x; var height = t.sizeDelta.y; // 設定 var sizeDelta = t.sizeDelta; sizeDelta = new Vector2( 128, 64 ); t.sizeDelta = sizeDelta; RectTransform の幅と高さと取得、設定する記述が少し冗長に感じたので わかりやすくするための拡張メソッドを作成しました ソースコード using UnityEngine; //…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaba-s.hatenablog.com%2Fentry%2F2017%2F09%2F21%2F100000&quot; title=&quot;【Unity】【uGUI】RectTransform の幅と高さの取得/設定を楽にする拡張メソッド - コガネブログ&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.user.blog.st-hatena.com/default_entry_og_image/94867065/1535279515352365</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-09-21 10:00:00</published>
  <title>【Unity】【uGUI】RectTransform の幅と高さの取得/設定を楽にする拡張メソッド</title>
  <type>rich</type>
  <url>https://baba-s.hatenablog.com/entry/2017/09/21/100000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
