Let say I have a root object.
Inside root contains another child object.
Inside child object contains another grandChild object.
ex: Root → Child → GrandChild
But when I do scaling on root object in script, it only affects the child but not grandChild.
I wonder how can I achieve the effect of whenever I apply different scaling values on root, it will change the child and grandChild objects too.
I just noticed that not only Grandchild object, even my Child object didn’t get affected while I’m scaling the root object.
this is what I write in the Root component script:
gameObject.transform.localScale = newScale;
sorry, I just noticed is my careless mistake. Cause I forgot to set my childs initial scaling value to 1.