<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hirasho0</author_name>
  <author_url>https://blog.hatena.ne.jp/hirasho0/</author_url>
  <blog_title>KAYAC Engineers' Blog</blog_title>
  <blog_url>https://techblog.kayac.com/</blog_url>
  <categories>
    <anon>unity</anon>
    <anon>ui</anon>
  </categories>
  <description>こんにちは。技術部平山です。 この記事では、UnityEngine.UI.Image、つまり「普通のImage」 だと余計な所まで塗ってしまってGPU負荷が大きいので、 塗る面積を削ってみた、というお話をいたします。 一枚目の画面写真で、右端が普通のImageで、左と中央が今回作ったものです。 左はSpriteに入っている頂点を利用したもので、頂点は増えますが面積が減ります。 中央は、黒い枠を重ねて顔のところだけを切り出したもので、 手動で頂点を編集することでマスクなしでの切り出しをしています。 二枚目の画面写真はoverdraw表示で、塗る面積が減っていることがわかります。 また、画像をSp…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftechblog.kayac.com%2Funity-engine-ui-image-reduce-draw-cost&quot; title=&quot;UnityEngine.UI.Imageが透けてる所を塗るのが許せない - KAYAC Engineers&amp;#39; Blog&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/hirasho0/20190116/20190116110517.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-01-20 08:00:00</published>
  <title>UnityEngine.UI.Imageが透けてる所を塗るのが許せない</title>
  <type>rich</type>
  <url>https://techblog.kayac.com/unity-engine-ui-image-reduce-draw-cost</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
