How to make a snap-to-grid system

How would you be able to make a snap-to-grid system? (this is for Kina OS)
And is it going to work with a lot of objects?

1 Like

Oops sorry I forgot to research