Esempio n. 1
0
    public static void BuildAssetBundleWithOutMeta()
    {
        string [] argv = System.Environment.GetCommandLineArgs();

        if (argv.Length != 0)
        {
            for (int i = 5; i < argv.Length; i++)
            {
                BundleExporter.ExportBundleForCloud(new string[] { argv[i] }, "MogoResourcesOSX");
                using (System.IO.FileStream fs = System.IO.File.Open("BuildResourceList.txt", System.IO.FileMode.OpenOrCreate | System.IO.FileMode.Append))
                {
                    System.IO.StreamWriter sw = new System.IO.StreamWriter(fs);
                    sw.WriteLine(argv[i]);
                    sw.Flush();
                    sw.Close();
                    fs.Close();
                }
            }
        }
    }
Esempio n. 2
0
    public static void MakeMetaForAll()
    {
        List <string> res = new List <string>();    //=BuildProjectExWizard.GetAllResources();

        System.IO.FileStream   fs = System.IO.File.Open("AllResources.txt", System.IO.FileMode.OpenOrCreate);
        System.IO.StreamReader sr = new System.IO.StreamReader(fs);
        string temp = sr.ReadLine();

        while (null != temp)
        {
            res.Add(temp);
            temp = sr.ReadLine();
        }
        sr.Close();
        fs.Close();
        int nIndex = 0;
        int nCount = res.Count;

        for (; nIndex < nCount; nIndex++)
        {
            Debug.Log("Export meta ------------" + nIndex + "/" + nCount + "---------------" + res[nIndex]);
            BundleExporter.MakeMeta(new string[] { res[nIndex] }, "MogoResourcesOSX");
        }
    }
Esempio n. 3
0
 public void OnReimported(string path)
 {
     BundleExporter.ExportBundleIfNeeded(path);
 }
Esempio n. 4
0
 public static void MakeMetaForSelectedObject()
 {
     Object [] selectedObjects = Selection.objects;
     BundleExporter.MakeMeta(new string[] { AssetDatabase.GetAssetPath(selectedObjects[0]) }, "MogoResourcesOSX");
 }