[engine] 优化当支持性扩展没有正确安装时的错误日志

This commit is contained in:
SmallMain 2024-11-21 18:21:34 +08:00
parent a14c457602
commit d6fb7f841b
No known key found for this signature in database

View File

@ -104,7 +104,8 @@ var builtins = {
if (CC_EDITOR) {
cc.assetManager.loadAny(Editor.assetdb.remote.urlToUuid('db://enhance-kit-resources/sp/effects/' + name + '.effect'), function (err, effect) {
if (err) {
return Editor.error(err);
Editor.error("Please check if the supporting extension is installed correctly.");
Editor.error(err);
} else {
cb(effect);
}