Ejemplo n.º 1
0
        public void Pack(
            PackProject project,
            string outputPath,
            BuildAssetBundleOptions options = BuildAssetBundleOptions.None,
            BuildTarget target = BuildTarget.WebPlayer)
        {
            this.project      = project;
            this.outputPath   = Util.GetAbsolutePath(outputPath, appDir);
            this.tmpPackPath += target.ToString() + "/" + mainManifestName + "/";

            CreatePack();

            DoPack(options, target);
        }
Ejemplo n.º 2
0
        public void Pack(
            string projectFile,
            string outputPath,
            BuildAssetBundleOptions options = BuildAssetBundleOptions.None,
            BuildTarget target = BuildTarget.WebPlayer)
        {
            if (!File.Exists(projectFile))
            {
                Debug.LogError("projectFile not exist :" + projectFile);
                return;
            }

            var str = File.ReadAllText(projectFile);

            Pack(PackProject.ParseFrom(str), outputPath);
        }