<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yoda_n</author_name>
  <author_url>https://blog.hatena.ne.jp/yoda_n/</author_url>
  <blog_title>n-yoda's blog</blog_title>
  <blog_url>https://ny.hateblo.jp/</blog_url>
  <categories>
    <anon>Unity</anon>
  </categories>
  <description>UI表示する際に、縁取り分の数ピクセルの幅を固定して、 綺麗な画質のまま拡大縮小したいときってありますよね？GUITextureを使えばLeftBorderなどのプロパティがあるので簡単ですが、 OnGUIの中で同じ事をやる方法を紹介します。 Graphics.DrawTextureを使います！ void DrawTexture (Rect screenRect, Texture texture, int leftBorder, int rightBorder, int topBorder); leftBorder, rightBorder...の単位はピクセルです void OnGUI(){…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fny.hateblo.jp%2Fentry%2F20120714%2F1342256598&quot; title=&quot;GUITexture.LeftBorder、TopBorder…をOnGUIでやる - n-yoda&amp;#39;s 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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-07-14 18:03:18</published>
  <title>GUITexture.LeftBorder、TopBorder…をOnGUIでやる</title>
  <type>rich</type>
  <url>https://ny.hateblo.jp/entry/20120714/1342256598</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
