update editor
1. 编辑器界面支持本地化配置。 2. 资源构建过程中的异常输出增加错误码提示。 3. 修复了资源构建界面乱码问题。 4. 修复了自动收集着色器对依赖资源无效的问题。
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user