ArchiveAndCompressBundles.TaskInput GetDefaultInput() { ArchiveAndCompressBundles.TaskInput input = new ArchiveAndCompressBundles.TaskInput(); input.InternalFilenameToWriteResults = new Dictionary <string, WriteResult>(); input.InternalFilenameToBundleName = new Dictionary <string, string>(); input.AssetToFilesDependencies = new Dictionary <UnityEditor.GUID, List <string> >(); input.BuildCache = null; input.Threaded = false; input.ProgressTracker = null; input.OutCachedBundles = new List <string>(); input.GetCompressionForIdentifier = (x) => UnityEngine.BuildCompression.LZ4; input.GetOutputFilePathForIdentifier = (x) => Path.Combine(m_TempDir, "bundleoutdir", x); input.TempOutputFolder = Path.Combine(m_TempDir, "temptestdir"); return(input); }
private WriteResult AddSimpleBundle(ArchiveAndCompressBundles.TaskInput input, string bundleName, string internalName) { string tempFilename = CreateFileOfSize(GetUniqueFilename(Path.Combine(m_TempDir, "src", "testfile.bin")), 1024); return(AddSimpleBundle(input, bundleName, internalName, tempFilename)); }