1
\$\begingroup\$

As seen in the image below, I have game objects with different y positions. I would like to select and change their y position by say, 2 units downwards while maintaining the gap. Please note I want this to be done through the inspector. I tried adding 2 units, but this just put all four objects on the same line. How can I achieve this?

enter image description here

\$\endgroup\$
5
\$\begingroup\$

Group the game objects under a common parent, and then try adding 2 units to y of the parent game object.

\$\endgroup\$
  • \$\begingroup\$ If you're looking for an inspector only solution then this is definitely the easiest way to do it. \$\endgroup\$ – Tom 'Blue' Piddock Sep 12 '17 at 12:54
2
\$\begingroup\$

An other solution would be to rely on the snap settings :

  1. Hold CTRL (Command on Mac)
  2. Click on the gameobjects in the hierarchy (or the scene view)
  3. Keep CTRL (Command on Mac) pressed and move the green axis vertically
  4. The objects should snap on the grid and move 1 unit at a time

You can change the Snap settings in the Edit > Snap Settings... menu.

Snap settings

\$\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.