Question by
kyhnlbyrk · Sep 04, 2017 at 04:53 PM ·
gameobjectgamecanvasoffscreenoff-screen
Prevent gameobject go off screen
I am developing a Jigsaw Puzzle, my puzzle pieces are spawned in the screen randomly by screen size. But when I drag a piece off the screen, it goes off screen. I want the pieces to stay inside the screen. How can I do this ? Do I need to make walls or something ?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612134157im_/https://answers.unity.com/themes/thub/images/avi.jpg)