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
4
Question by mhughson · Sep 15, 2012 at 11:18 PM · positiongameobjectsparentingempty

Empty Parent GameObject Moving with Child

Hello,

I am running into an odd issue with parenting Empty Game Objects. When I move the child GameObject, the parent's position is affected by the child's position. For example, I have a parent and child sitting at [0,0,0]. If I move just the child to [2,0,0] the parent will now appear at around [1,0,0].

If I look at the parent in the inspector, it says it is still at [0,0,0] but in the editor, it clearly is not.

Example:

Start with parent/child at [0,0,0]:

Note: Both objects are selected and have the same transform values.

Now, I move the child to 2 in the x axis (top half of image).

If I select the parent now, it still claims to be at [0,0,0] but in the editor it has clearly moved off the origin (bottom half image).

Top image shows child position. Bottom image shows parent position.

Note: None of this is an issue when using Cubes or the other shapes.

Is this excepted? Is it a known issue? Is there a way around it?

parent02_03.png (79.1 kB)
parent01.png (39.8 kB)
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

1 Reply

· Add your reply
  • Sort: 
avatar image
21
Best Answer

Answer by whydoidoit · Sep 15, 2012 at 11:20 PM

It is caused by the fact that you have "Center" set as the movement position in the toolbar (next to global). When that is set the gizmo is drawn at the centre of the structure of the children - set it to pivot and it will be where you expect.

Comment
Add comment · Show 2 · 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 mhughson · Sep 16, 2012 at 12:47 AM 0
Share

Thanks $$anonymous$$ike. I didn't think of that! Weird that this isn't the case when using non-empty game objects.

avatar image amorales · Mar 02, 2020 at 05:02 AM 0
Share

I had the same problem, thanks for sharing guys

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

12 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

Related Questions

Prefab instantiating problem 1 Answer

On a twice nested object, how to get the local position in terms of the middle parent space 1 Answer

When I set an object to be the child of another object, the child object does not anchor to the parent's position for about 25 seconds 1 Answer

How I can make the position of an object equal when you add another object? 1 Answer

Trying to understand parenting 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