Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#

CommandBuffer.ReleaseTemporaryRT

public void ReleaseTemporaryRT(int nameID);

Parameters

nameIDShader property name for this texture.

Description

Add a "release a temporary render texture" command.

Releases a temporary render texture with given name. Presumably you have called ::GetTemporaryRT to create it before.

Any temporary textures that were not explicitly released will be removed after camera is done rendering, or after Graphics.ExecuteCommandBuffer is done.

See Also: GetTemporaryRT.

Did you find this page useful? Please give it a rating: