最近刚发现一个问题,anchorPoint这个属性虽然是属于CCNode的,但是CCLayer设置anchorPoint没有效果。CCLayer的anchorPoint被默认设定在(0, 0)位置,而且无法改变。

根据网上的搜索得到一个解决办法:在setAnchorPoint之前先设置setIsRelativeAnchorPoint = YES;

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
  • 2022-12-23
  • 2021-12-05
  • 2021-06-14
猜你喜欢
  • 2021-07-20
  • 2022-12-23
  • 2021-06-12
  • 2022-01-25
  • 2021-12-12
  • 2021-07-15
相关资源
相似解决方案