Whats causing this log "ScaleX != ScaleY. Don't know which one to return"

Whats causing this log "ScaleX != ScaleY. Don't know which one to return"
0.0 0

#1

Hi every time i edit and save my game Cocos Creator gives me this log… “ScaleX != ScaleY. Don’t know which one to return”. Where does it came from?


#2

when you call node->getScale() then you get this error if scaleX and scaleY dont have the same value.

Try calling node->getScaleX(); or node->getScaleY() instead.


#3

@b12345 but i dont have any scripts that modifies the scale of a node… :frowning:


#4

For me it was a Cocos Btn which was probably using the node->getScale(). When I’ve changed the scaleX and scaleY on the button the log stopped popping out. (I’ve separated the graphics which needed different scale and the button functionality.)