RenderTexture.GetTemporary 获取临时渲染纹理

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.


Page last updated: 2011-3-15