<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hacchi_man</author_name>
  <author_url>https://blog.hatena.ne.jp/hacchi_man/</author_url>
  <blog_title>うにてぃブログ</blog_title>
  <blog_url>https://hacchi-man.hatenablog.com/</blog_url>
  <categories>
    <anon>Unity</anon>
    <anon>uGUI</anon>
    <anon>RenderTexture</anon>
    <anon>Mask</anon>
  </categories>
  <description>以下のように RenderTexture を生成して、uGUI を映しているカメラに紐付けたところ 下図のように Mask が適応されていない private void Init() { _renderTexture = new RenderTexture(200, 200, 0); ・・・ _camera = _instance.GetComponentInChildren&lt;Camera&gt;(); _camera.targetTexture = _renderTexture; _camera.Render(); } 原因 RenderTexture の Depth は 16 未満の場合は ステ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhacchi-man.hatenablog.com%2Fentry%2F2020%2F09%2F19%2F220000&quot; title=&quot;【Unity】uGUI を RenderTexture に描画している際に Mask が有効にならない場合の対応 - うにてぃブログ&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/hacchi_man/20200918/20200918002221.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-09-19 22:00:00</published>
  <title>【Unity】uGUI を RenderTexture に描画している際に Mask が有効にならない場合の対応</title>
  <type>rich</type>
  <url>https://hacchi-man.hatenablog.com/entry/2020/09/19/220000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
