예제 #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"))));
        }