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-x ではアニメーションを CCAnimationCache にキャッシュしています。しかし、どうすればすべてのアニメーションキャッシュをクリアできますか?
試してみてください
CCAnimationCache::sharedAnimationCache()->purgeSharedAnimationCache();
すべての CCAnimation オブジェクトと共有インスタンスを解放します。それ以外の場合も使用できます
removeAnimationByName("youAnimationName");
これにより、必要な特定のアニメーションが削除されます。
これがお役に立てば幸いです.. :)