clear_and_fill_render_target
Fill an entire render target with a solid color via canvas to clear or initialize it; returns drawn status and canvas dimensions, or false if nothing renders.
Instructions
Fill an entire render target with a solid color via the canvas. drawn is false, and the call fails, when the canvas draws nothing (no white texture or a zero size).
Returns: { render_target_path: string, drawn: bool, canvas_width: number, canvas_height: number, fill_color: [number] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | Optional [r, g, b, a] fill color, defaults to opaque white | |
| render_target_path | Yes | Asset path of the destination render target, e.g. /Game/MyGame/RT_Example |