Documentation

Unity Engine

Download Unity

Unity Engine

ReleaseTemporary(RenderTexture)

Release a temporary texture allocated with RenderTexture.GetTemporary.
Read time 1 minuteLast updated 7 hours ago

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.