You can hold control while manipulating an object to move it in grid increments. I would like to extend the editor to snap an object back to the grid if you move it while holding down control.
I can’t seem to figure out how to do this.
I thought about making a custom EditorWindow, but those only have their update called while the window is open.
I can add a delegate to the editor’s update using [InitializeOnLoad], but then I can’t detect when control is being held down.