Editor Script - Access the User's Snap Settings?

I’m working on an Editor Scripted Tool that I want to be able to snap when you hold Ctrl, just like the standard Unity transform tools. However, I can’t seem to find any documentation as to how to access the Snap Settings the User has specified. Does this functionality exist?

I asked me the same and found an answer (the more I work with Unity, the more I like IL Spy. It gives answers to the missing 5% of documentation :wink:

Snap settings are stored in EditorPrefs and can be accessed using the following names:

  • MoveSnapX
  • MoveSnapY
  • MoveSnapZ
  • ScaleSnap
  • RotationSnap

Cheers

Jake