Custom Grid Snapping ?

I’m sure the inside of some things can be viewed but can’t seem to look inside the snap to grid function. Anywho, I need to make a custom function to know when the snap occurs, at the moment it’s on the event tick so I get a constant print out but need a return only when it’s snapped ?

Found this but looks kinda messy. I’m sure I found a much simpler method before. - YouTube

I think I’ve got it the same just simplified it a bit, but wondering how to use a vector instead of float. I still don’t think this is the only way. Still for some reason can’t figure a way to tell something else when a snap occurs ?

Found a much simpler version, just incase others might want to know another way …