有没有人觉得3.0访问x,y,width,height,color,opacity比较繁琐…
2.0是
this.node.x
this.node.y
this.node.width
this.node.height
this.node.color
this.node.opacity
3.0是
this.node.position.x
this.node.position.y
this.node.getComponent(UITransform).width
this.node.getComponent(UITransform).height
this.node.getComponent(Sprite).color
this.node.getCOmponent(UIOpacity).opacity