In my (basic) understanding a canvas defines an area which UI elements may be displayed. So I thought that if you drawed sprites outside of an canvas (by positioning it outside) it wouldn’t be draw to the screen. Much like a window.
I’m currently working on a mobile UI, where you can scroll your inventory (layed out in a gridlike manner). When sliding I don’t want the items to go outside of the canvas (inventory window) but rather crop the part of the image that is outside of the inventory window. Sort of like the item is going behind the boarder surrounding the window.
I could do this programatically, but it’s a bit messy and might be unecessary if there is a better, cleaner way to handle this.
Hopefully someone might give me some insight on how to solve this problem.
Kind regards,
SirMoonkis