[add] log

This commit is contained in:
建喵 2022-08-18 12:16:09 +08:00
parent f836b1ecaf
commit 9f588f4c39

View File

@ -82,6 +82,7 @@ module.exports = {
sourceData = sourceData.replace(new RegExp(short_uuid1, 'g'), short_uuid2); sourceData = sourceData.replace(new RegExp(short_uuid1, 'g'), short_uuid2);
fs.writeFileSync(source_path, sourceData); fs.writeFileSync(source_path, sourceData);
Editor.assetdb.refresh(path3, function (err, results) { }); Editor.assetdb.refresh(path3, function (err, results) { });
Editor.log(`ReplaceResource 替換完成`);
} catch (error) { } catch (error) {
Editor.error(`replaceResource error: ${error}`); Editor.error(`replaceResource error: ${error}`);
} }