- Home /
Problem scaling parent without scaling child
Hi there,
I'm having some problem with the following code:
Son.parent = null; Father.localScale *= 1.5f; Son.parent = Father;
I have a Father->Son structure and O intend to scale the father without changing the Son's size.
If I try the code above everything goes has planned and the Father is scaled without affecting the Son. However if I do this:
Son.parent = null; Father.localScale *= 1.006f; Son.parent = Father;
the Son is scaled instead of the Father...which is kind of weird.
Any ideas of why this is happening? Thanks.
Your answer
Follow this Question
Related Questions
Why the scalling between these 2 resolutions is so bad? 1 Answer
Scaling water flow parts 2 Answers
Scaled object immune to clicking 0 Answers
Problem with rendering after using localScale 0 Answers
can i find Joystick Position based on screen size? 0 Answers