Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

RenderTexture.ReleaseTemporary

static function ReleaseTemporary(temp: RenderTexture): void;
static void ReleaseTemporary(RenderTexture temp);
static def ReleaseTemporary(temp as RenderTexture) as void

Description

Release a temporary texture allocated with GetTemporary.

Later calls to 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.

See Also: GetTemporary function.