I can change scale of a sprite, but not of its parent Game Object

In a script I’m able to change scale property of a sprite, but not of its “parent” Game Object:

This works:
local url = msg.url(“imgparola#sprite”)
go.set(url, “scale.y”, 2)

This does not work, I don’t understand why:
local url = msg.url(“imgparola”)
go.set(url, “scale.y”, 2)


Have you tried go.set_scale?

1 Like

Thanks, this works.
I didn’t know there was a specific function to set scale, so I tried the “generic” go.set addressing the scale property.
Anyway after some experiments I found out that what I really need was to scale the sprite component, not the parent game object.