且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

子类化使用SpriteKit .sks场景文件创建的SKNodes

更新时间:2022-01-22 22:05:18

我写了一个小助手代表来处理这个问题: https://github.com/ice3 - 软件/节点存档委托。它使用 NSKeyedUnarchiverDelegate 按名称对子精灵进行子类化。

I wrote a little helper delegate to deal with this: https://github.com/ice3-software/node-archive-delegate. It uses the NSKeyedUnarchiverDelegate to subclass your sprites by name.