ReleaseTemporary(RenderTexture)
Release a temporary texture allocated with RenderTexture.GetTemporary.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
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.