如何修改单一分量,比如:this.node.scale.x = 1;

我记得以前可以,现在分量变成只读了

this.node.scaleX
this.node.scaleY

这个不是3.0的方法吧

没注意看 :laughing:

let temp = this.node.scale.clone();
temp.x = 1;
this.node.scale = temp

设置:this.node.setScale(1, this.node.scale.y, this.node.scale.z);
增加:this.node.scale.add3f(1, 0, 0);

1赞

该主题在最后一个回复创建后14天后自动关闭。不再允许新的回复。