Go.set() and go.animate() doesn't accept vectors for scaling

If you read the documentation, game objects should support “scale.x/y/z” or a vector3 in the argument for “scale” when using go.set() or go.animate(): http://www.defold.com/ref/go/#scale

However, I get errors when trying to call “scale.y” as in the documentation example or passing in a vector3, saying it only expects a number.

2 Likes

Hello,

It appears that the docs are incorrect in this case. We currently only support uniform scaling of game objects.

Good catch!

3 Likes