Show / Hide Table of Contents

Class GameBundle

A Bundle encompassing an entire game.

Inheritance
System.Object
Bundle
GameBundle
Inherited Members
Bundle.Parent
Bundle.Resources
Bundle.Collections
Bundle.Bundles
Bundle.FailedFiles
Bundle.Scenes
Bundle.ResolveCollection(FileIdentifier)
Bundle.ResolveCollection(String)
Bundle.ResolveResource(String)
Bundle.AddResource(ResourceFile)
Bundle.AddCollection(AssetCollection)
Bundle.AddBundle(Bundle)
Bundle.AddFailed(FailedFile)
Bundle.IsCompatibleCollection(AssetCollection)
Bundle.GetRoot()
Bundle.FetchAssets()
Bundle.FetchAssetCollections()
Bundle.FetchResourceFiles()
Bundle.ToString()
Bundle.AddCollectionFromSerializedFile(SerializedFile, AssetFactoryBase, UnityVersion)
Bundle.Dispose(Boolean)
Bundle.Dispose()
Namespace: AssetRipper.Assets.Bundles
Assembly: AssetRipper.Assets.dll
Syntax
public sealed class GameBundle : Bundle

Properties

| Improve this Doc View Source

Name

The name of this bundle which is 'GameBundle'.

Declaration
public override string Name { get; }
Property Value
Type Description
System.String
Overrides
Bundle.Name
| Improve this Doc View Source

ResourceProvider

The IResourceProvider being used for this bundle.

Declaration
public IResourceProvider ResourceProvider { get; set; }
Property Value
Type Description
IResourceProvider

Methods

| Improve this Doc View Source

AddNewProcessedBundle(String)

Declaration
public ProcessedBundle AddNewProcessedBundle(string name = null)
Parameters
Type Name Description
System.String name
Returns
Type Description
ProcessedBundle
| Improve this Doc View Source

AddNewProcessedCollection(String, UnityVersion)

Adds a new processed asset collection to this bundle.

Declaration
public ProcessedAssetCollection AddNewProcessedCollection(string name, UnityVersion version)
Parameters
Type Name Description
System.String name

The name of the new asset collection.

UnityVersion version

The Unity version of the new asset collection.

Returns
Type Description
ProcessedAssetCollection
| Improve this Doc View Source

FetchAssetsInHierarchy()

Declaration
public IEnumerable<IUnityObjectBase> FetchAssetsInHierarchy()
Returns
Type Description
IEnumerable<IUnityObjectBase>
| Improve this Doc View Source

FromPaths(IEnumerable<String>, AssetFactoryBase, IGameInitializer)

Create and initialize a GameBundle from a set of paths.

Declaration
public static GameBundle FromPaths(IEnumerable<string> paths, AssetFactoryBase assetFactory, IGameInitializer initializer = null)
Parameters
Type Name Description
IEnumerable<System.String> paths

The set of paths to load.

AssetFactoryBase assetFactory

The factory for reading assets.

IGameInitializer initializer
Returns
Type Description
GameBundle
| Improve this Doc View Source

GetMaxUnityVersion()

Returns the maximum Unity version of all asset collections in this bundle.

Declaration
public UnityVersion GetMaxUnityVersion()
Returns
Type Description
UnityVersion
| Improve this Doc View Source

HasAnyAssetCollections()

Declaration
public bool HasAnyAssetCollections()
Returns
Type Description
System.Boolean
| Improve this Doc View Source

InitializeAllDependencyLists(IDependencyProvider)

Initializes all dependency lists.

Declaration
public void InitializeAllDependencyLists(IDependencyProvider dependencyProvider = null)
Parameters
Type Name Description
IDependencyProvider dependencyProvider
| Improve this Doc View Source

IsCompatibleBundle(Bundle)

Returns true if the given bundle is compatible with this bundle.

Declaration
protected override bool IsCompatibleBundle(Bundle bundle)
Parameters
Type Name Description
Bundle bundle

The bundle to check compatibility with.

Returns
Type Description
System.Boolean
Overrides
Bundle.IsCompatibleBundle(Bundle)
| Improve this Doc View Source

ResolveExternalResource(String)

Resolves an external ResourceFile, or returns null if it cannot be found.

Declaration
protected override ResourceFile ResolveExternalResource(string originalName)
Parameters
Type Name Description
System.String originalName

The original name of the ResourceFile.

Returns
Type Description
ResourceFile
Overrides
Bundle.ResolveExternalResource(String)

Extension Methods

PathExtensions.GetPath(Bundle)
PathExtensions.TryGetBundle(GameBundle, BundlePath)
PathExtensions.TryGetBundle(GameBundle, BundlePath, out Bundle)
PathExtensions.TryGetCollection(GameBundle, CollectionPath)
PathExtensions.TryGetCollection(GameBundle, CollectionPath, out AssetCollection)
PathExtensions.TryGetResource(GameBundle, ResourcePath)
PathExtensions.TryGetResource(GameBundle, ResourcePath, out ResourceFile)
PathExtensions.TryGetFailedFile(GameBundle, FailedFilePath)
PathExtensions.TryGetFailedFile(GameBundle, FailedFilePath, out FailedFile)
PathExtensions.TryGetAsset(GameBundle, AssetPath)
PathExtensions.TryGetAsset(GameBundle, AssetPath, out IUnityObjectBase)
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾