文档

Unity Engine

Unity Engine

ReleaseTemporary(RenderTexture)

Release a temporary texture allocated with RenderTexture.GetTemporary.
阅读时间1 分钟最后更新于 1 天前

Definition

public static void ReleaseTemporary(RenderTexture temp)

Parameters

Remarks

Later calls to RenderTexture.GetTemporary will reuse the RenderTexture created earlier if possible. When no one has requested the temporary RenderTexture for a few frames it will be destroyed.
Additional Resources: RenderTexture.GetTemporary function.