- Home /
How to parent without scale transformation?
I tried to parent 2 objects, but for some reason the object that is being turned into a child has adjusted the same scale as the parent and I don't know how to prevent this...can someone help me?
I think it depends what you want the behavior of the child object to be, were you just wanting them to follow each others position/rotation around, and ignore scale changes and such? you could do something like that by just assigning the position and rotation of the separate objects (without parenting anything) in code. Sometime like ObjectB.transform.position = ObjectA.transform.position; and ObjectB.transform.rotation = ObjectA.transform.rotation;
or something like that.
I'm assu$$anonymous$$g you are trying to parent these objects in code? If so, please post it so we can help you.
Well I am still at the brink of learning to code and was hoping for a simple solution like the one by Dracorat. But I guess i'll try and start getting more in depth with such things, thank you for you help!
Answer by Dracorat · Apr 16, 2013 at 06:20 PM
You could also create a NULL object (empty object) with two null objects under it - one being a parent for the base model that has all transformations applied and one being a parent for the child you're attempting to attach. This will work best if the location of the child doesn't rely on the location of a part of the parent where that location would change.
IE, if you are just parenting something like a billboard or an object that follows it around, this will work great.
If however, this was say - a whip on a belt, it wouldn't. (but I don't see how you'd want something like that if the scale isn't designed to match.)
Your answer
![](https://koobas.hobune.stream/wayback/20220613100439im_/https://answers.unity.com/themes/thub/images/avi.jpg)