Children cutting fails after rotation

Godot Version

Godot 4.4.1

Question

I have a card that uses sub-item cropping, but when I rotate the card, the cropping doesn’t work very well.
image
Is its performance normal? How should I deal with it?

Besides, I know that SubViewPort can solve this problem, but I’m not sure how much it affects performance.

This is a limitation of control clipping:

Using a viewport is probably fine performance-wise, as long as you only have a few dozen cards visible at once at most.

Try using CanvasItem.clip_children instead.

Thank you very much for your answer. It has cleared up the confusion that has been bothering me for a long time

Yes, I used ColorRect as the parent level clipping, which solved my big problem. Thank you very much

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.