Making sure user can't place things outside of a frame

I have an drawing system and I need to make it so they can’t place any frames outside of the canvas(UI) I am already using the mouse leave but it doesn’t work very well and there is a small space they can use

1 Like

How about using ClipsDescendants? This will only allow children of the frame to show within the frame, if the children goes out of the frame’s area then it will not show.

1 Like

That is set to true actually, yet is doesn’t seem to work…

It’ll only work if the Frame instances are parented to (are descendants) of the canvas for which the “ClipDescendants” property is enabled on.

All of my drawing items are in the canvas, which has ClipDescendants enabled.

1 Like