回答編集履歴
1
最後の行を追加
answer
CHANGED
@@ -29,4 +29,6 @@
|
|
29
29
|
targetTexture.ReadPixels(new Rect(0, 0, tex.width, tex.height), 0, 0);
|
30
30
|
targetTexture.Apply();
|
31
31
|
}
|
32
|
-
```
|
32
|
+
```
|
33
|
+
|
34
|
+
なお、「カメラとRenderTextureの設定が必要(やり方はページに載ってます)」「RGBのBしか取得していない」という点に注意してください。
|