Only Clip Specific Draw Calls In Custom Node

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

Essentially the same as this question from 5 years ago: https://forum.godotengine.org/20158/how-to-handle-multiple-clipping-rectangles-in-a-canvasitem

I have a custom node, and I want to be able to clip a bunch of my draw calls so I can scroll up and down, but then have another part of the draw be fixed and not affected by the clipping.

Ultimately I am trying to create a scrolling control where the top heading stays fixed while scrolling. This is an easy effect to create with nodes, although I’m trying to recreate it in a draw call so I can do the header and body drawing with the same calculations (otherwise it might be annoying to sync them up).

Is there a way to add a Control as a child of my new node, and then Draw() to that instead? I can think of how you might do it by adding another custom child node, and the I could clip that and transform it up and down, but I was wondering if there’s an easier way.