Error building Player: Releasing render texture that is set to be RenderTexture.active

1、

I solved this issue  disabling the camera that use rendertexture every time that I need to do some of this actions:

    1. When changing any attribute of RenderTexture after isCreated().
    2. When changing Screen size or Resolution of the camera where was added a RenderTexture.
    3. When changing VSyncCount of QualitySettings.
    4. When changing Antialising of QualitySettings.

 2、把R8 改成.ARGB32

  RenderTexture(shadowmapResolution, shadowmapResolution, 16, RenderTextureFormat.ARGB32, RenderTextureReadWrite.Default);

posted @ 2018-10-15 22:51  何人之名  阅读(1744)  评论(0)    收藏  举报