Twoorb Plugins  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Twoorb.PrefabSystem.AssetBundleDependency Class Reference

Container class for an asset bundle. Similar to the AssetBundleData.cs class, but this class keeps track of other bundles depending on assets from this bundle. More...

Public Member Functions

void Initialize (AssetBundle assetBundle, string bundleID)
 Initializes the dependency bundle More...
 
void AddDependency (string bundleID)
 Add an id of the asset bundle that depends on this bundle. If it already contains the id, it will not add anything to the list More...
 
bool RemoveDependency (string bundleID)
 Removes a bundle id from depending from this bundle. More...
 
void Unload ()
 Unloads the referenced AssetBundle. It ALWAYS unloads all loaded objects. More...
 

Properties

bool HasDependencies [get]
 Returns if this bundle has any other asset bundles depending on it More...
 

Detailed Description

Container class for an asset bundle. Similar to the AssetBundleData.cs class, but this class keeps track of other bundles depending on assets from this bundle.

Member Function Documentation

void Twoorb.PrefabSystem.AssetBundleDependency.AddDependency ( string  bundleID)

Add an id of the asset bundle that depends on this bundle. If it already contains the id, it will not add anything to the list

Parameters
bundleIDThe asset bundle id that depends on this bundle
void Twoorb.PrefabSystem.AssetBundleDependency.Initialize ( AssetBundle  assetBundle,
string  bundleID 
)

Initializes the dependency bundle

Parameters
assetBundleThe dependency bundle
bundleIDThe ID if the bundle
bool Twoorb.PrefabSystem.AssetBundleDependency.RemoveDependency ( string  bundleID)

Removes a bundle id from depending from this bundle.

Parameters
bundleIDThe bundle id to remove
Returns
If the operation was successful
void Twoorb.PrefabSystem.AssetBundleDependency.Unload ( )

Unloads the referenced AssetBundle. It ALWAYS unloads all loaded objects.

Property Documentation

bool Twoorb.PrefabSystem.AssetBundleDependency.HasDependencies
get

Returns if this bundle has any other asset bundles depending on it


The documentation for this class was generated from the following file: