22 lines
630 B
C#
22 lines
630 B
C#
using System.IO;
|
|
using UnityEditor.Build;
|
|
using UnityEditor.Build.Reporting;
|
|
using UnityEngine;
|
|
|
|
namespace NEG.Localization.Editor
|
|
{
|
|
public class LocalizationPreBuild : IPreprocessBuildWithReport
|
|
{
|
|
public int callbackOrder => 0;
|
|
|
|
public void OnPreprocessBuild(BuildReport report)
|
|
{
|
|
if(!Directory.Exists($"{Application.dataPath}/{LocalizationManager.ResourcesFolderPath}/{LocalizationManager.LanguageResourcePath}"))
|
|
{
|
|
Debug.LogWarning("No folder for localization, creating");
|
|
|
|
}
|
|
Debug.Log("test");
|
|
}
|
|
}
|
|
} |