Snap a Item placement preview to "grid"


I want to create one of those “holograms” that games have right before you build something. Kind of acts like a preview of how it will look before you place it.

How can I make this “hologram/preview” follow the mouse cursor but snap to a “grid” of 32x32 pixels?

Check out the snap to grid example.
And for the hologram, set the object opacity to 100, and set it back to 255 when position confirmed.

Hi, thanks for the reply.

Will do so.

As for now Im just using the snap to grid function which works like a charm