<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rinor</author_name>
  <author_url>https://blog.hatena.ne.jp/rinor/</author_url>
  <blog_title>Edifying Soil</blog_title>
  <blog_url>https://rinor.hatenablog.com/</blog_url>
  <categories>
    <anon>unity</anon>
  </categories>
  <description>Unity でテクスチャの画像をスクリプト上からいじる時のあれこれをメモします． 画像をスクリプトで読み込む あらかじめ画像が用意されており，それをスクリプトから読み込む場合は，Texture2DのLoadImageを使用します． Texture2D tex = new Texture2D(1, 1); tex.LoadImage(File.ReadAllBytes(path)); // path は画像ファイルへのパス LoadImage は，PNG or JPG 画像を読み込むものなので，それ以外の形式は読み込めません． そのため，スクリプト内で画像を生成する場合は，一度それらの形式へ変更…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frinor.hatenablog.com%2Fentry%2F2015%2F06%2F19%2F020401&quot; title=&quot;Unity でテクスチャの画像をスクリプト上からいじる - Edifying Soil&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>2015-06-19 02:04:01</published>
  <title>Unity でテクスチャの画像をスクリプト上からいじる</title>
  <type>rich</type>
  <url>https://rinor.hatenablog.com/entry/2015/06/19/020401</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
