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 /
  • Help Room /
avatar image
4
Question by JChiu · Mar 26, 2015 at 12:22 PM · unity 5transformparent

Parent's transform changed when attaching child

Today something strange happens, when ever I attached a child object to a parent object, the parent transform position tries to snapped the child transform position.

To better illustrate, I am making some kind of guy with a sword by having a capsule as the guy and a smaller and longer capsule for the sword. What happens is that when I attached the sword as the child of the guy (parent) and move the sword a little bit off to the left of the parent. Originally the parent transform is at the center of the larger capsule, but somehow when the child (sword) is added, the parent transform decided to place itself midway between where it use to be and the child, or sometime the parent's transform will be directly the same position as the child, but retain it rotation.

I am using Unity 5, is this a new behavior that I'm might have missed?

Comment
Add comment · Show 2
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 ShabihDesperado · Mar 26, 2015 at 12:41 PM 0
Share

Is it changing the vector posicion or just the Guizmos position?

avatar image Owen-Reynolds · Mar 26, 2015 at 03:56 PM 2
Share

It's probably just changing the Gizmo location. The OP probably hasn't used any modelling software, so doesn't know about the Pivot/Center button.

2 Replies

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

Answer by Neamtzu · Mar 26, 2015 at 03:55 PM

Most likely you see the transform gizmos from the center of the object. Change it to Pivot to see the real transform position of the parent.

alt text


screen-shot-2015-03-26-at-55250-pm.png (9.7 kB)
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
1

Answer by Digital-Phantom · Mar 26, 2015 at 12:47 PM

if the parent and the child are not exactly in the same space the new position for the parent transform will be midway between the two objects.

:)

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 Bunny83 · Oct 19, 2017 at 12:15 PM 0
Share

This is misleading and wrong. The "position" of the parent doesn't change at all when you add a child. If you have the handle / gizmo mode in the editor set to "center", Unity will draw the handle at the center of the gameobject. However the position of the gameobject doesn't change at all.

I remove the accepted state.

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

11 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

Related Questions

Cloned objects not colliding with other objects (after upgrade to Unity 5.3) 1 Answer

Object cordinates changing when game start 1 Answer

Setting the parent of an instantiated prefab error 1 Answer

List update 0 Answers

Is the Z-axis the up axis now? 0 Answers


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