Git Product home page Git Product logo

Comments (5)

GreenGums avatar GreenGums commented on June 19, 2024 1

目前我移除md5的操作如下:
removeMD5(str:string){ let strArr = str.split('.'); if(strArr.length<=2){ return str; } if(strArr.length===3){ return strArr[0]+'.'+strArr[2]; } else{ cc.log(error!,can not remove md5:${str}); return null; } }
在oppo平台上已解决不能正确释放龙骨动画依赖资源的问题

from cocos_creator_framework.

wyb10a10 avatar wyb10a10 commented on June 19, 2024 1

if (this._isSceneDepend(item.url)) -> if (this._isSceneDepend(item.id)) 修复

from cocos_creator_framework.

GreenGums avatar GreenGums commented on June 19, 2024

private _isSceneDepend(itemUrl) {
let scene: any = cc.director.getScene();
if(!scene){
return false;
}
let len = scene.dependAssets.length;
for (let i = 0; i < len; ++i) {
if (scene.dependAssets[i] == itemUrl)//itemUrl带上了md5,而左边没有
return true;
}
return false;
}

from cocos_creator_framework.

GreenGums avatar GreenGums commented on June 19, 2024

if (this._isSceneDepend(item.url)) -> if (this._isSceneDepend(item.id)) 修复
果然你这边修复起来比我要容易得多。我整老半天你几秒钟就搞定了。

from cocos_creator_framework.

wyb10a10 avatar wyb10a10 commented on June 19, 2024

欢迎提issue!过年可以好好写一写cocos的代码和文章了

from cocos_creator_framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.