CodeSmile AssetDatabase 1.9
Unity's AssetDatabase in enjoyable, consistent, concise, convenient, comprehensible, safe, documented form.
Loading...
Searching...
No Matches
Asset.Bundle Class Reference

Groups all asset bundle related functionality. More...

+ Collaboration diagram for Asset.Bundle:

Static Public Member Functions

static void ForceRemove ([NotNull] String bundleName)
 Removes a specific asset bundle by name.
 
static String[] GetAllDependencies ([NotNull] String bundleName)
 Returns all bundle names that the given asset bundle depends on, directly or indirectly (recursive).
 
static String[] GetAllPaths ([NotNull] String bundleName)
 Returns all asset paths that are part of a given asset bundle.
 
static String[] GetDirectDependencies ([NotNull] String bundleName)
 Returns the bundle names that the given asset bundle directly depends on.
 
static String GetOwningBundle ([NotNull] Path path)
 Returns the bundle name that contains the asset path.
 
static String GetOwningBundleVariant ([NotNull] Path path)
 Returns the bundle variant name that contains the asset path.
 
static String[] GetPaths ([NotNull] String bundleName, [NotNull] String assetName)
 Returns the asset paths in a given asset bundle that matches an asset name.
 
static void Remove ([NotNull] String bundleName)
 Removes a specific asset bundle by name.
 
static void RemoveUnused ()
 Removes all unused asset bundles.
 

Properties

static String[] All [get]
 Returns all asset bundle names.
 
static String[] Unused [get]
 Returns all unused asset bundle names.
 

Detailed Description

Groups all asset bundle related functionality.

Note: Unity recommends to use the Addressables package to manage Bundles rather than through code.

Definition at line 18 of file Asset.Bundle.cs.