RenderTexture.GetTemporary 获取临时渲染纹理

static function GetTemporary (width : int, height : int, depthBuffer : int = 0, format : RenderTextureFormat = RenderTextureFormat.ARGB32) : 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.

此函数进行了优化,用于当你需要一个快速RenderTexture来做一些临时计算时,一旦完成,ReleaseTemporary释放它,这样,如果需要,另一个调用能够开始重用它。

Page last updated: 2011-3-15