clear_render_target
Fill a GPU render target with a solid color via ClearRenderTarget2D; returns cleared=false when the engine skips the clear, such as under -nullrhi or in a commandlet.
Instructions
Clear a render target to a solid color via ClearRenderTarget2D. Render-target contents live on the GPU only, so nothing is saved or undoable. cleared is false, and the call fails, when the engine skips the clear: a render target without a resource, which is every render target in a process that cannot render (-nullrhi, a commandlet).
Returns: { render_target_path: string, cleared: bool, clear_color: [number] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | Optional [r, g, b, a] clear color, defaults to opaque black | |
| render_target_path | Yes | Asset path of the render target |