- Home /
Why can't I get snapping to work? (Mac)
Reeeaally new to Unity, and just following a video tutorial.
For some reason I cannot get snapping to work. I have set my snap settings under the Edit menu, and in the video it shows that, when you then move or rotate an object, it snaps.
Doesn't happen for me - whatever my snap settings, when I move or rotate the object, it does it in the smallest increments, no snapping.
The video tutorial covers Windows - I'm on Mac. Is there something silly I'm missing, like a key I should be holding down as I drag? (I've tried this, too, and same result).
Answer by numberkruncher · Jan 19, 2013 at 02:46 PM
On the Mac you must hold the Command ⌘ key to perform snapping.
See: http://docs.unity3d.com/Documentation/Manual/PositioningGameObjects.html
Note: On Windows you use the Control key.
Thanks, but for some reason I still can't crack this. I set some snap settings (all on 100, just so the snap is really obvious to see), select the translate tool, then attempt to click and drag a Gizmo axis whilst holding C$$anonymous$$D. Nothing happens - it doesn't move at all. If I release C$$anonymous$$D then the drag does happen, but not with snapping.
That's quite obvious when you set snapping to 100 Unitys the object can only move in 100 unit steps. You just have to drag far enough. But it usually makes more sense to set the snapping to a reasonable value like 1.0 / 0.5 / 0.1
Answer by JayGarxP · Nov 08, 2018 at 02:43 AM
Another thing that can stop scene view objects/sprites from snapping and or rotating is if they are part of a hierarchy. In 2D mode, if the rectangular transform button mode is not working how it should, try dragging the child object you are trying to rotate outside of the hierarchy (not underneath and indented under another game object)
.
You can rotate in rectangular transform mode by hovering your mouse cursor just above the corners to see a rotation/refresh symbol.
.
If you see no axis or blue dots and snapping isn't working try restarting Unity. That usually will make the scene view work better when it is acting up. In november 2018, I can't get z-axis snapping to work for 2D sprites to work at all, so you will manually have to round the z-transform.
Answer by phyatt · May 03, 2020 at 01:24 AM
Holding Control or Command should work, but if you want it always on you can use ProGrids.
If you install ProGrids the third option on their toolbar enables snapping all the time without holding down Control.
See the blue buttons on the left. The third one toggles Snapping to grid.
https://unity3d.com/unity/features/worldbuilding/probuilder
https://docs.unity3d.com/Packages/com.unity.progrids@3.0/manual/install.html