示例#1
0
文件: Images.cs 项目: Buster-00/Q_G
        static string GetImagesFolder()
        {
            string asmPath = Path.GetFullPath(AssemblyLocation.GetAssemblyDirectory(
                                                  Assembly.GetAssembly(typeof(PlasticLocalization))));

            return(Path.Combine(asmPath, "images"));
        }
示例#2
0
        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"))));
        }