Cocos Creator Editor 编辑器扩展记录

//获取NodeTree面板选中的Node的uuid列表
Editor.Selection.curSelection('node')

//进入指定预制件的预制件模式
Editor.Ipc.sendToAll('scene:enter-prefab-edit-mode', '7e977c15-ba64-4b07-8187-1bbf59fbc9fe');

Editor.Selection.select('asset', assetUuid);//选中资源
Editor.Ipc.sendToAll('assets:hint', assetUuid);//高亮资源

https://github.com/shpz/CreatorClean 资源清理插件

原文地址:https://www.cnblogs.com/kingBook/p/13321430.html