mirror of
https://github.com/wyb10a10/cocos_creator_framework.git
synced 2026-05-19 16:56:07 +08:00
Update ResExample.ts
Fix Bug: 释放错误
This commit is contained in:
@@ -19,7 +19,7 @@ export default class NetExample extends cc.Component {
|
||||
|
||||
onUnloadRes() {
|
||||
this.attachNode.removeAllChildren(true);
|
||||
resLoader.releaseRes("Prefab/HelloWorld");
|
||||
cc.loader.releaseRes("Prefab/HelloWorld");
|
||||
}
|
||||
|
||||
onMyLoadRes() {
|
||||
|
||||
Reference in New Issue
Block a user