コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

【Unity】OnRenderImage() possibly didn't write anything to the destination texture!

概要

OnRenderImage() possibly didn't write anything to the destination texture!

Unity エディタ再生時に上記のような警告が出力された場合、

using UnityEngine;

public sealed class Example : MonoBehaviour
{
    private void OnRenderImage( RenderTexture src, RenderTexture dest )
    {
    }
}

OnRenderImage 関数で何も処理を行っていない可能性があります