Custom drawing update without clear

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By liss22

Hello,

Theseday I practice Custom drawing in 2D tutorial and also read CanvasItem Docs.

I wonder update() without clear is possible
example below,

This is default update() result
original update action

What I want to
what I expected

I want to remake my custom painter(not complete yet) with godot
Thank you,

Try setting the viewport’s render_target_clear_mode to CLEAR_MODE_NEVER: Viewport — Godot Engine (latest) documentation in English

Bernard Cloutier | 2020-10-02 17:58

whoa Thank you ! It works perfectly !

liss22 | 2020-10-03 04:10