public static TextLocalizationConfig LoadCaseLocalization(string caseName) { string caseAssetPath = $"{LocalizationSystem.CASE_PATH_PREFIX}/{caseName}/Localization/CN.asset"; TextLocalizationConfig config = AssetDatabase.LoadAssetAtPath <TextLocalizationConfig>(caseAssetPath); if (config != null) { config.Discard(); config.BuildBuffer(); } else { Debug.LogError($"case localization config not exist => {caseAssetPath}"); } LocalizationSystem.UnRegisterTextConfig(LocalizationSystem.Region, LocalizationSystem.TAG_CURRENT_CASE); LocalizationSystem.RegisterTextConfig(LocalizationSystem.Region, LocalizationSystem.TAG_CURRENT_CASE, config); return(config); }