Hey, so i’m working on a menu that have several different buttons that are being drawn to the screen. I have also made a simple way to drag the buttons around using the mouse using SetRenderTranslation. But what i cannot figure out is how i could do so that the buttons only get drawn inside the canvas they are inside in the hierarchy.
This is what it looks like at the moment, what i would like to achieve is so that when i drag the button to the location in the image only the small part inside the white window is shown, not the entire button.
Does anyone know a way to do this? Any help is appriciated.