I’m writing a custom editor for the Transform component that uses hotkeys to select the axis, and moving the mouse to actually translate the selected object on the selected axes. Similar to Bethesda’s Creation Kit.
Is there a way to query the state of these buttons in an editor script?
Not sure if it still works, but there’s an undocumented Tools class in the UnityEditor namespace that has a static property for it. I think it was called pivotMode.