当前位置:网站首页>Cocos prefab export import and update

Cocos prefab export import and update

2020-12-07 00:25:16 Ah ho boy

be based on prefab Componentization of , When instantiating, instantiate resources through paths , So other people's prefab After updating, just import it

Don't put the prefab Drag in , Otherwise, it's difficult to synchronize the updates and modifications later , But use prefab Dynamic loading is OK

 

Export and select directly , Generate a zip package

 

It seems that the entire file structure has been restored , Pay attention to conflicts in the same directory

 

  onLoad() {
    const node = cc.instantiate(this.prefab);
    this.node.addChild(node);
  }

 

版权声明
本文为[Ah ho boy]所创,转载请带上原文链接,感谢
https://chowdera.com/2020/12/20201207002313796u.html