Object not scaling properly

I have a gameobject with six quads made to form an interior cube.

inspector

tree

If I scale the object uniformly by any amount larger than 1, in the editor it looks fine, but when I run the game then two of the sides are misplaced, like they’re not affected by the scaling. I noticed that it’s the two sides that are offset on the Z-axis that are wrong.

inspector_transform

bad_scale

I checked the scale of the object at runtime and it wasn’t changed or corrupted or anything.

debug

Is this a bug or have I done something wrong? I’m not manipulating the scale of this object in the code.

Looks odd for sure. Could you share the model you are trying with?

It might be a “scale along z” issue. Scale Along Z for collections

If you could share a repro or your project we could take a look.

Here’s a quick repo I made to reproduce the problem: Upload files · Grinshpon/defold_scaling_issue · GitHub

I also opened up an issue on github: https://github.com/defold/defold/issues/7441

The quad model is the default quad that comes with the basic 3d project template

Update: I opened up the collection file in my text editor and added scale_along_z: 1 and now everything looks as intended. So this is definitely related to that “Scale Along Z” issue. Why was this option removed from the editor?

2 Likes

Thanks for reporting, I have no idea why we still have this as a setting since it’s deprecated. We probably want to remove it