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
1
Question by ina · Dec 18, 2010 at 11:08 PM · transformparentchildparenting

Parenting Transforms, Must (still) Set Parent at 0,0,0 ?

Still trying to understand the parent-child thing in Unity. It seems the short answer is that any child will move/rotate according to its parents, and will have their local origin at the center of the parent.

In the Unity manual, the Hints section for the page below mentions:

"When parenting Transforms, put the parent's location at 0,0,0 before applying the child. This will save you many headaches later."

http://unity3d.com/support/documentation/Components/class-Transform.html

I presume this means the parent only has to be at 0,0,0 during the parenting drag/drop operation in the IDE, and not all the time. I am not sure why the parent has to be at 0,0,0 for when this operation occurs. It seems pretty ad hoc - is this a Unity 2 bug that we don't have to worry about anymore in 3?

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
1
Best Answer

Answer by Eric5h5 · Dec 18, 2010 at 11:25 PM

I don't really know what the docs mean by that...it was never a problem to have the parent at any arbitrary location when adding a child. Unless there's something I'm completely overlooking, that line should be removed from the docs. They might have meant "rotation"...I could see that potentially being an issue if the parent was rotated and you didn't realize it when adding a child.

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 Statement · Dec 19, 2010 at 01:43 AM 0
Share

I can't think of any issues with that either. I often parent rotated objects because I want them to have some pre-set rotation rotation. Imho, that line really doesn't have a place. However, it can often be useful to set the childs location at 0, 0, 0 AFTER applying the child, as sometimes you want to reset the position relative to the parent.

avatar image Eric5h5 · Dec 19, 2010 at 01:47 AM 0
Share

Yeah, I was sort of grasping at straws with the rotation thing; it was all I could think of that made even a little bit of sense. ;)

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

No one has followed this question yet.

Related Questions

Make a simple tree 1 Answer

Problem with child and parent. 1 Answer

iOS Instantiate transform as child -- positioning bug 2 Answers

How Do I Offset a Childs Transform? 3 Answers

Parenting from code doesn't really change the hierarchy 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