- Edited
Hi there,
I'm super new to Godot 4.1, recently decided to switch over from Unity. I'm trying to recreate the effect of having a Sprite Mask component on a parent element and setting Visible Inside Mask on the child Sprite Renderer. I've seen a few Godot tutorials on masking using a viewport but this only achieves a rectangular clipping area - I want to be able to clip a Sprite2D by the alpha of another image.
I noticed that CanvasItem on my Sprite2D node has a Visibility/Clip Children setting which I've set to Clip + Draw on the parent node. Unfortunately this does not clip the child Sprite2D so I'm wondering if any other configuration is needed on the parent or child nodes to get this to work? Or have I misinterpreted the meaning of this setting?
Many thanks!