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

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


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.