static string GetImagesFolder() { string asmPath = Path.GetFullPath(AssemblyLocation.GetAssemblyDirectory( Assembly.GetAssembly(typeof(PlasticLocalization)))); return(Path.Combine(asmPath, "images")); }
internal static bool IsRunningAsUPMPackage() { string unityPlasticDllPath = Path.GetFullPath( AssemblyLocation.GetAssemblyDirectory( Assembly.GetAssembly(typeof(PlasticLocalization)))); return(Directory.Exists( Path.GetFullPath(Path.Combine( unityPlasticDllPath, // assets relative path when running as a UPM package "../../../Editor/PlasticSCM/Assets")))); }