Experimental: this API is experimental and might be changed or removed in the future.

PaintContext.oldRenderTexture

切换到手册
public RenderTexture oldRenderTexture ;

描述

(只读)调用 CreateRenderTargets 时的 RenderTexture.active 值。

PaintContext.Cleanup 使用该值,将活动的 RenderTexture 恢复为原始值。 在某些情况下,可能需要手动恢复 RenderTexture,然后调用 Cleanup:
RenderTexture.active = PaintContext.oldRenderTexture;


另请参阅:PaintContextPaintContext.Cleanup