Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by SeanM3D · Mar 13, 2014 at 08:03 PM · movementviewportrelativetranslationtransformation

Move Objects Relative in Viewport

Hi,

how can I do relative movement in the editor window? Say I want to move an object or multiple ones 5 units along X. Seems like the Inspector only allows absolute inputs.

Keep in mind I'm not asking about scripting here, but just about some simple relative translation in the viewport.

Thanks a lot!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by getyour411 · Mar 13, 2014 at 10:42 PM

You should have taken the time to explain yourself better at first, your initial problem description is poorly written.

Select the object(s) by clicking left-click and shift, enter 5 in Y

Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image SeanM3D · Mar 13, 2014 at 11:01 PM 0
Share

That does not work. It mere puts all selected objects at Y-position 5. That's not what I want. I want to offset each object 5 units away from their current position.

Sorry if this was poorly written, but relative transform is such an ubiquitous term in 3D, I didn't know I would have to explain it clearer, e.g. with an example. $$anonymous$$y apologies.

avatar image getyour411 · Mar 13, 2014 at 11:37 PM 0
Share

With your objects selected, click and hold on the "Y" letter and drag mouse to the right

avatar image SeanM3D · Mar 14, 2014 at 01:55 AM 0
Share

Doesn't work either. Same as typing in a value.

avatar image getyour411 · Mar 14, 2014 at 02:02 AM 0
Share

Click and hold the 3D transform widget up arrow; tested it this time, was surprised to see my test cubes on the 'Y' drag method all synch to uniform height (missed that) but this method worked fine.

avatar image
1

Answer by rutter · Mar 14, 2014 at 01:30 AM

Not the prettiest workaround, but it'll do:

  1. Create an empty GameObject at (0,0,0). We'll call it "temp".

  2. Change hierarchy: every object you want to move should become a child of temp.

  3. Move temp to (0,5,0).

  4. Change hierarchy: restore original parent for every object you moved.

  5. Delete temp.

If you need to do this often, I'd honestly probably just create a quick and dirty editor script for it.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image SeanM3D · Mar 14, 2014 at 01:57 AM 0
Share

I thought about that,too, but I can't pull these objects out of their hierarchy. It would be an organisational mess.

In the meantime I wrote a script which does the relative positioning. I still can't believe I had to write code to accomplish this.

avatar image
0

Answer by JuanseCoello · Mar 13, 2014 at 09:53 PM

I dont really understand what you are trying to do, what do you mean by relative, be more specific, I can help you, but try to explain me like in kindergarden with examples, I am working in a videogame and I have done things like that, but I am not sure what you mean, and also I speak spanish. Ans try to post your script, with details of your game so I can help you please.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image JuanseCoello · Mar 13, 2014 at 10:03 PM 0
Share

I think you mean moving the object in the editor. It is very simple. You have to select your object in the hierarchy window. Then at the left there is the inspector window. There is the option transform, look at position and type 5 in the axis you want in this case x, 5 it means 5 meters, depending on how much you consider unit, you can put decimals, like 0.005 but if you want to make calculations use a calculator. I guess one unit in unity is 0.0001 that is the slowest unit you can have to move. I dont understand why this is difficult. If you explain more maybe I can help you.

avatar image SeanM3D · Mar 13, 2014 at 10:08 PM 0
Share

Hi Juanse. I am not talking about scripting!

Here is what I want to do:

I have several objects scattered across the scene. I want to move all of these objects 5 units along the Y-axis. How can I do that in the Inspector or with the Transform gizmo? NOT via scripting!

And I don't want to use a calculator for all these objects! I just want to input a position offset. Quick and easy.

Thanks.

avatar image SeanM3D · Mar 13, 2014 at 10:15 PM 1
Share

Put in other words: I want to move these objects ALL AT ONCE 5 units along Y. I don't want to select one object after the other and add 5 to their current position.

Good god, this is super basic functionality in EVERY 3D app out there since the birth of 3D. Only Unity doesn't have this or hides it undiscoverably.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

23 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Vector-based movement? 1 Answer

Relative position? 1 Answer

How to fly in Controller's forward direction? 1 Answer

Axis/Gizmo Translation Movement 0 Answers

Problem with moving player relative to camera 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges