public void LoadBundleFile(string bundlePath) { using (BundleFile bundle = BundleFile.Load(bundlePath)) { AddBundleFile(bundle); } }
public void LoadAssetBundle(string filePath) { using (BundleFile bundle = new BundleFile(this, filePath, OnRequestDependency)) { bundle.Load(filePath); } }
public void LoadAssetBundle(string filePath) { using (BundleFile bundle = new BundleFile()) { bundle.Load(filePath); ProcessSerializedFileData(bundle.FileData, filePath); } }
public void LoadAssetBundle(string filePath) { BundleFile bundle = new BundleFile(); using (AssetsFileData fileData = bundle.Load(filePath)) { foreach (AssetsFileEntry entry in fileData.AssetsEntries) { AssetsFile assetsFile = entry.ParseAssetsFile(this, filePath); AddAsset(assetsFile); } foreach (AssetsFileEntry entry in fileData.ResourceEntries) { ResourcesFile resesFile = entry.ParseResourcesFile(filePath); m_resources.Add(resesFile); } } }
public void Load(string filePath) { if (BundleFile.IsBundleFile(filePath)) { BundleFile bundle = new BundleFile(); using (AssetsFileData fileData = bundle.Load(filePath)) { foreach (AssetsFileEntry entry in fileData.AssetsEntries) { AssetsFile assetsFile = entry.CreateAssetsFile(this); AddAsset(assetsFile); } } } else { AssetsFile assetsFile = new AssetsFile(this, filePath); assetsFile.Load(filePath); AddAsset(assetsFile); } }