Why SKShapeNode does not have anchor point? [closed]

与世无争的帅哥 提交于 2019-11-30 22:28:28

问题


i am trying to understand why SKShapeNode does not have an anchor point ?


回答1:


When you use an image you may need to align it on its node's position. There's no other way to do so but through anchorPoint because the image itself can't be modified (not easily anyway).

When you create a shape you have full control over the alignment of the shape through CGPath. You can simply translate the path to change the shape's alignment relative to the node's position.

This is my interpretation, not fact.



来源:https://stackoverflow.com/questions/20721352/why-skshapenode-does-not-have-anchor-point

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!