v2.0.5;
插件代码中,调用Editor.Ipc.sendToPanel(‘scene’, ‘scene:apply-prefab’, asset._uuid);无法保存。想在插件中对prefab进行更改操作。
var uuid = Editor.assetdb.remote.urlToUuid('db://assets/Scene/bg.prefab');
cc.loader.load({ type: "uuid", uuid: uuid }, function (err, asset) {
let label = asset.data.getChildByName("lb").getComponent(cc.Label);
label.string = "ttttt!!";
Editor.Ipc.sendToPanel('scene', 'scene:apply-prefab', asset._uuid);
});