0
\$\begingroup\$

I have a multi-sprite sprite sheet. When I have a blue box selected, and I hold CTRL, the box turns green. I have played with it, but cannot figure out what it does. I checked the documentation, but I don't see anything about turning the boxes green.

What does holding CTRL when editing a sprite within a multi-sprite sprite sheet do?

\$\endgroup\$
  • \$\begingroup\$ I think it snaps the sprites together if you move, them, although I'm not sure \$\endgroup\$ – Bálint Oct 18 '16 at 20:19
4
+50
\$\begingroup\$

Holding ctrl in the Sprite Editor allows you to manually move the pivot point with snapping. With ctrl pressed (orcmd on a Mac), you can snap the pivot to one of the pre-defined locations, as defined under Pivot on the control panel: Center, Top Left, Top, Top Right, Left, Right, Bottom Left, Bottom and Bottom Right.

Without holding own <kbd>ctrl</kbd>, the pivot moves freely around the sprite. With <kbd>ctrl</kbd> held, the pivot snaps to the corners and sides.


The Unity manual does not mention this feature, though it does mention an alternate:

Using the Editor

...
A picture of the Sprite Editor Control Panel, taken directly from the Unity Manual.

...
There are also settings for the sprite’s pivot, which Unity uses as the coordinate origin and main “anchor point” of the graphic. You can choose from a number of default rectangle-relative positions (eg, Center, Top Right, etc) or use custom coordinates.

- Unity Manual: Sprite Editor


If I may speculate, I would say this feature has been implemented for the purpose of consistency. The manual does not deliberately mention it, but pressing ctrl to enable pivot snapping is a feature I have seen in other programs, before. While Unity officially directs you to use the control panel, the shortcut key has likely been implemented for users who are already use to holding ctrl. Such implementations are often referred to as external consistency, and helps facilitate human-computer interaction.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.