Child object not scaling relative to parent

I’m trying to make a cube scale in one direction. I’ve created a cube and added it as a child of an empty GameObject. I positioned the cube relative to the parent object so that the child is .5 units offset from the parent in the direction I want to scale. However, when using the the scale tool in the scene window the cube still scales in both directions.

I’m pretty sure there is an editor setting that’s off or something because when I opened another editor (same version 2022.3.19f) on another machine I can get the effect I want by following the same steps which I’ve outlined below:

  1. create new unity project on 2022.3.19f
  2. create a cube
  3. create empty game object
  4. drag cube onto empty game object in the scene hierachy
  5. set Y position of cube to .5
  6. select parent object of cube
  7. select scale tool in scene window
  8. scale using green y handle

if those steps are not clear, I basically did exactly what this guy is doing in this video https://www.youtube.com/watch?v=XZnmMGz_VyU

I’ve quit unity and restarted both machines and tried to replicate the issue with the exact same result. On one machine the final object can be scaled in one direction on the other machine following the exact same steps it does not.

can somebody tell me why it works on one machine and not another?

2 Answers

2

I finally solved the issue thanks to this answer in another post Empty Parent GameObject Moving with Child - #2 by whydoidoit

the problem was that I had “Center” selected in the scene editor rather than “Pivot”

On your parent object, does the little “link” symbol next Scale have a line through it, or not?

Linked, all scale factors change in lockstep:
image

Unlinked, each factor changes independently:
image

I appreciate the help, but I just discovered the issue and this was not it. I'll add a comment with the problem incase someone else runs across this