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

static function GetTemporary (width : int, height : int, depthBuffer : int = 0, format : RenderTextureFormat = RenderTextureFormat.Default, readWrite : RenderTextureReadWrite = RenderTextureReadWrite.Default) : RenderTexture

Description

Allocate a temporary render texture.

This function is optimized for when you need a quick RenderTexture to do some temporary calculations. Release it using ReleaseTemporary as soon as you're done with it, so another call can start reusing it if needed.