update editor

1. 编辑器界面支持本地化配置。
2. 资源构建过程中的异常输出增加错误码提示。
3. 修复了资源构建界面乱码问题。
4. 修复了自动收集着色器对依赖资源无效的问题。
This commit is contained in:
hevinci
2023-10-13 12:06:20 +08:00
parent db889366ac
commit 0c70f27560
66 changed files with 623 additions and 268 deletions
@@ -0,0 +1,38 @@
using System;
using UnityEditor;
using UnityEngine;
namespace YooAsset.Editor
{
public class ChineseSimplified : ILocalization
{
public string GetLanguage(ELanguageKey key)
{
switch (key)
{
case ELanguageKey.None: return "Invalid language";
// AssetBundleBuilder
case ELanguageKey.ABB_WindowTitle: return "资源包构建工具";
case ELanguageKey.AAB_NoPackageTips: return "没有发现可构建的资源包";
case ELanguageKey.ABB_BuildOutput: return "构建输出目录";
case ELanguageKey.ABB_BuildVersion: return "构建版本";
case ELanguageKey.ABB_BuildMode: return "构建模式";
case ELanguageKey.ABB_Encryption: return "加密方法";
case ELanguageKey.ABB_Compression: return "压缩方式";
case ELanguageKey.ABB_FileNameStyle: return "文件命名方式";
case ELanguageKey.ABB_CopyBuildinFileOption: return "内置文件拷贝选项";
case ELanguageKey.ABB_CopyBuildinFileTags: return "内置文件拷贝参数";
case ELanguageKey.ABB_ClickBuild: return "开始构建";
// AssetBundleCollector
default:
{
Debug.LogError($"Not found language : {key}");
return string.Empty;
}
}
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 65cd951ca39cd1b469691424350f5bc6
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,7 @@
using System;
using UnityEditor;
using UnityEngine;
namespace YooAsset.Editor
{
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 27a994f8cae769f4e9aa986c3ecb5079
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: