save content using cc.Asset._nativeAsset.setter, add handler of '.bin'#3935
Merged
pandamicro merged 2 commits intococos:v2.0-releasefrom Mar 12, 2019
SantyWang:v2.0-release
Merged
save content using cc.Asset._nativeAsset.setter, add handler of '.bin'#3935pandamicro merged 2 commits intococos:v2.0-releasefrom SantyWang:v2.0-release
pandamicro merged 2 commits intococos:v2.0-releasefrom
SantyWang:v2.0-release
Conversation
Contributor
Author
|
参考#2981 现在用户释放资源基本都是用getDependsRecursively先获取依赖再传递给release函数,感觉没有必要返回spriteAtlas的spriteFrame在一个数组里了 |
jareguo
reviewed
Mar 1, 2019
Contributor
|
这样修改后,之前的 example 需要同步调整,也采用 |
jareguo
approved these changes
Mar 1, 2019
pandamicro
approved these changes
Mar 9, 2019
Contributor
其实当初那么改,主要原因也不是为了方便 release,而是为了保持行为和其它的 sub asset(如 texture -> sprite frame) 一致。loadResDir 总是会返回所有的子资源。 重新想了一下,这里始终不会有特别统一的解决方法。日后有需要的话再采用类似 AssetBundle 的方案替代吧 |
jareguo
added a commit
to jareguo/engine
that referenced
this pull request
May 14, 2019
jareguo
added a commit
to jareguo/engine
that referenced
this pull request
May 15, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Re: cocos-creator/2d-tasks#1170
Changes: