摄像机如何实现缩放呢?
我做了移动,成功了:
cc.tween(that.mainCamera).to(that.cameraAmiTime, {position: cc.v2(cx, oy)}).start();
但缩放卡主了
摄像机如何实现缩放呢?
我做了移动,成功了:
cc.tween(that.mainCamera).to(that.cameraAmiTime, {position: cc.v2(cx, oy)}).start();
但缩放卡主了
缩放不能改节点来改变,要使用camera组件设置。
需要设置摄像机的这个属性:
zoomRatio