Skip to main content

RenderTexture.GetTemporary(RenderTextureDescriptor desc)

Allocate a temporary render texture.

Parameters:

NameTypeDescription
descRenderTextureDescriptorUse this RenderTextureDesc for the settings when creating the temporary RenderTexture.

Returns:

typeDescription
RenderTexturetemporary render texture.

Usage

---@type RenderTextureDescriptor
local desc;


local val0 = RenderTexture:GetTemporary(desc)

Extra Detail

This function is optimized for when you need a quick RenderTexture to do some temporary calculations. Release it using ReleaseTemporary as soon as you're done with it, so another call can start reusing it if needed.