<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kan_kikuchi</author_name>
  <author_url>https://blog.hatena.ne.jp/kan_kikuchi/</author_url>
  <blog_title>(:3[kanのメモ帳]</blog_title>
  <blog_url>https://kan-kikuchi.hatenablog.com/</blog_url>
  <categories>
    <anon>Unity</anon>
    <anon>NGUI</anon>
    <anon>拡張メソッド</anon>
  </categories>
  <description>拡張メソッドとは この記事でのバージョン Unity 5.1.0f3 Personal NGUI 3.9.2 はじめに NGUIのUISpriteは同じアトラスの画像であれば、画像名を指定するだけで変更できます。 uiSprite.spriteName = &quot;Button&quot;; ただし、スプライトのサイズは元のままなので、サイズが違うものに変更してしまうと、見た目がおかしくなってしまいます。 上が元画像、下がサイズが違う画像に変えたもの またアトラス内にスプライトが存在しない場合はエラーにならず、何も表示されません。 以上の事を解決するためにUISpriteの拡張メソッドを作ってみました。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkan-kikuchi.hatenablog.com%2Fentry%2FUISpriteExtension&quot; title=&quot;サイズを合わせてUISpriteの画像を変更【Unity】【NGUI】【拡張メソッド】 - (:3[kanのメモ帳]&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/k/kan_kikuchi/20150917/20150917135405.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-09-21 08:36:03</published>
  <title>サイズを合わせてUISpriteの画像を変更【Unity】【NGUI】【拡張メソッド】</title>
  <type>rich</type>
  <url>https://kan-kikuchi.hatenablog.com/entry/UISpriteExtension</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
