RenderTexture.GetTemporary(RenderTextureDescriptor desc)
Allocate a temporary render texture.
Parameters:
Name | Type | Description |
---|---|---|
desc | RenderTextureDescriptor | Use this RenderTextureDesc for the settings when creating the temporary RenderTexture. |
Returns:
type | Description |
---|---|
RenderTexture | temporary 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.