Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 90806

2.2.1用setAnchorPoint动态设置锚点无效

$
0
0

@somethinghero 写道:

需求是需要对一个node用不同的锚点做scale和rotate动画,然而发现代码设置锚点,值变了,对scale和angle属性无效。
比如调用
this.node.setAnchorPoint(cc.v2(0, 0));
this.node.scale = 0.5;
预期是node以左下角为锚点缩放0.5倍,然而缩放锚点还是编辑器里设置的中心点

帖子: 1

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 90806

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>