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:
- When changing any attribute of RenderTexture after isCreated().
- When changing Screen size or Resolution of the camera where was added a RenderTexture.
- When changing VSyncCount of QualitySettings.
- When changing Antialising of QualitySettings.
2、把R8 改成.ARGB32
RenderTexture(shadowmapResolution, shadowmapResolution, 16, RenderTextureFormat.ARGB32, RenderTextureReadWrite.Default);
 
                     
                    
                 
                    
                
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号