SamsonGame/Assets/Sources/I2/Localization/Scripts/Editor/PostProcessBuild_UnloadLang...

31 lines
1.1 KiB
C#
Raw Normal View History

2021-12-29 20:50:11 +03:00
namespace I2.Loc
{
public class PostProcessBuild_UnloadLanguages
{
// [PostProcessBuild]
// public static void SaveGlobalSources(BuildTarget buildTarget, string pathToBuiltProject)
// {
//if (LocalizationManager.Sources.Count <= 0)
// LocalizationManager.UpdateSources();
// foreach (var source in LocalizationManager.Sources.Where(x=>x.IsGlobalSource()))
// {
// source.SaveLanguages(true, PersistentStorage.eFileType.Streaming);
// }
// }
// [PostProcessScene]
// public static void SaveLocalSources()
// {
// if (EditorApplication.isPlayingOrWillChangePlaymode)
// return;
// LanguageSource[] sceneSources = (LanguageSource[])Resources.FindObjectsOfTypeAll(typeof(LanguageSource));
// foreach (var source in sceneSources.Where(x=>!x.IsGlobalSource()))
// {
// source.SaveLanguages(true, PersistentStorage.eFileType.Streaming);
// }
// }
}
}