Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我想知道是否可以在 Cocos2d 中使用 Core Animation(比如在代码中添加 CABAsicAnimation)。请问我该怎么做?如果是,会影响性能吗?谢谢.:) 对不起我的英语我是法国人:/
您可以将 UIKit 视图与 Cocos2D 视图混合使用,并且由于所有 UIView 都支持 Core Animation,因此您可以同时在屏幕上显示两者。
查看您的 viewController 并注意 Cocos 场景是如何设置为子视图的。只需将另一个子视图添加到视图控制器,两者就可以同时出现在屏幕上,您可以在它们之间移动并进行任何您想要的操作。