0 votes

Essentially the same as this question from 5 years ago: https://godotengine.org/qa/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.

Godot version v3.4.4-stable-mono
in Engine by (21 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.