Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

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

RenderTexture.ReleaseTemporary

Switch to Manual
public static function ReleaseTemporary(temp: RenderTexture): void;

Parameters

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.