Shrink GameObject and all its children regardless of anchor presets via code

Hello, I am pretty new to unity.

I want to minimize/shrink the entire gameobject and all its children regardless of anchor presets using code, without messing up the scale (and if possible, without stopping any movements/translates/animations happening inside the object)

Even providing me with keywords can help me out. Thanks for your time and have a great day!

Nvm, I was just being dumb. Using localScale fixed the issue I was having