<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hanaaaaaachiru</author_name>
  <author_url>https://blog.hatena.ne.jp/hanaaaaaachiru/</author_url>
  <blog_title>はなちるのマイノート</blog_title>
  <blog_url>https://www.hanachiru-blog.com/</blog_url>
  <categories>
    <anon>Unity</anon>
  </categories>
  <description>はじめに 今回はRectTransformのWidth・Heightをスクリプトから変更の仕方についての記事になります！これをスクリプトから変更しようと思った際、rectTransform.width = 10;のようなコードをまず考えるのではないでしょうか。しかし、この方法ではエラーとなってしまいます。どうやらWidth・Heightを変えるにはrectTransform.sizeDeltaを用いなければならないみたいです。 実際のコード using UnityEngine; public class Hoge : MonoBehaviour { private void Start() {…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.hanachiru-blog.com%2Fentry%2F2019%2F04%2F21%2F172208&quot; title=&quot;【Unity】RectTransformのWidth・Heightをスクリプトから変更する - はなちるのマイノート&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/h/hanaaaaaachiru/20190421/20190421171037.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-04-21 17:22:08</published>
  <title>【Unity】RectTransformのWidth・Heightをスクリプトから変更する</title>
  <type>rich</type>
  <url>https://www.hanachiru-blog.com/entry/2019/04/21/172208</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
