private static void ImportAsset(string file, AssetBundle sourceBundle, AssetBundle destinationBundle) { using (var stream = sourceBundle.OpenFileRaw(file)) { destinationBundle.ImportFileRaw( file, stream, 0, sourceBundle.GetSourceExtension(file), sourceBundle.GetFileLastWriteTime(file), sourceBundle.GetAttributes(file), sourceBundle.GetCookingRulesSHA1(file)); } }
public override void ImportFileRaw(string path, Stream stream, int reserve, string sourceExtension, DateTime time, AssetAttributes attributes, byte[] cookingRulesSHA1) { Bundle.ImportFileRaw(path, stream, reserve, sourceExtension, time, attributes, cookingRulesSHA1); }