RenderTexture.DiscardContents Manual     Reference     Scripting  
Scripting > Runtime Classes > RenderTexture
RenderTexture.DiscardContents

function DiscardContents () : void

Description

Discards the contents of the RenderTexture.

On Xbox 360 reusing a RenderTexture causes it to be restored (copied) to VRAM. It's a waste of resources to do that if old contents of the RenderTexture will not be required.

Has no effect on other platforms.