- Home /
Scale child while ignoring the parent?
How can I just scale the child independently from the parent?
It's pretty straightforward. If you scale a child (or perform any transformation, in fact) the parent never gets affected!
Answer by flamy · Jan 02, 2012 at 08:59 AM
var child:Transform =transform.Find("ChildName");
now you have the access to the transform of only the child. whatever the changed you make will reflect only to the child! , if you are using localScale.
Answer by bradmarxmoosepi · Jan 02, 2012 at 09:25 AM
Thanks for the feedback.
I had the situation where I was dynamically parenting objects on Start and performing scaling using localScale on Start as well. What resolved it was I performed the scaling in Awake instead.
I never realised why these were two separate functions, but this helped.