snap object to gridwise
my game has isometric view. it is a garden you have to decorate the garden with given stuff. while decorating i need to move the object(2dsprite). while moving i have to restrict the player to don't put on existing item. The place what player want to put an object contains another object i mean the place is not free i have to snap that object to the nearest free space. like clash clanes how can i do.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612090241im_/https://answers.unity.com/themes/thub/images/avi.jpg)