The root path of this bundle, such like 'http://example.com/bundle1'
for internal use
The dependency of this bundle
The name of this bundle
Get cached asset within this bundle by path and type.
After you load asset with {{#crossLink "Bundle/load:method"}}{{/crossLink}} or {{#crossLink "Bundle/loadDir:method"}}{{/crossLink}},
you can acquire them by passing the path to this API.
NOTE:The path
and type
parameters passed need to be the same as those passed to Bundle.load
,
otherwise it may return some other resources with the same name!
The path of asset
Only asset of type will be returned if this argument is supplied.
Get asset's info with uuid
The asset's uuid
info
Get all asset's info within specific folder
The relative path of folder, such as 'images'
The constructor should be used to filter paths
The output array
Infos
Get asset's info using path, only valid when asset is in bundle folder.
The relative path of asset, such as 'images/a'
The constructor of asset, such as cc.Texture2D
The asset info
Get scene'info with name
The name of scene
info
Initialize this bundle with options
Load the asset within this bundle by the path which is relative to bundle's path
Paths of the target assets.The path is relative to the bundle's folder, extensions must be omitted.
Only asset of type will be loaded if this argument is supplied.
Callback invoked when progression change.
Callback invoked when all assets loaded.
Load all assets under a folder inside the bundle folder.
Note: All asset paths in Creator use forward slashes, paths using backslashes will not work.
path of the target folder.The path is relative to the bundle folder, extensions must be omitted.
Only asset of type will be loaded if this argument is supplied.
Callback invoked when progression change.
A callback which is called when all assets have been loaded, or an error occurs.
Loads the scene within this bundle by its name.
The name of the scene to load.
Some optional parameters
Callback invoked when progression change.
callback, will be called after scene launched.
Preload the asset within this bundle by the path which is relative to bundle's path.
After calling this method, you still need to finish loading by calling Bundle.load
.
It will be totally fine to call Bundle.load
at any time even if the preloading is not
yet finished
Paths of the target asset.The path is relative to bundle folder, extensions must be omitted.
Only asset of type will be loaded if this argument is supplied.
Callback invoked when progression change.
Callback invoked when the resource loaded.
Preload all assets under a folder inside the bundle folder.
After calling this method, you still need to
finish loading by calling Bundle.loadDir
.
It will be totally fine to call Bundle.loadDir
at any time even if the preloading is not yet finished
path of the target folder.The path is relative to the bundle folder, extensions must be omitted.
Only asset of type will be preloaded if this argument is supplied.
Callback invoked when progression change.
A callback which is called when all assets have been loaded, or an error occurs.
Preloads the scene within this bundle by its name. After calling this method, you still need to finish loading
by calling Bundle.loadScene
or cc.director.loadScene
.It will be totally fine to call Bundle.loadDir
at any
time even if the preloading is not yet finished
The name of the scene to preload.
Some optional parameters
callback, will be called when the load progression change.
callback, will be called after scene loaded.
Release the asset loaded by {{#crossLink "Bundle/load:method"}}{{/crossLink}} or {{#crossLink "Bundle/loadDir:method"}}{{/crossLink}} and it's dependencies. Refer to {{#crossLink "AssetManager/releaseAsset:method"}}{{/crossLink}} for detailed informations.
NOTE:The path
and type
parameters passed need to be the same as those passed to Bundle.load
,
otherwise it may release some other resources with the same name!
The path of asset
Only asset of type will be released if this argument is supplied.
Release all assets within this bundle. Refer to {{#crossLink "AssetManager/releaseAll:method"}}{{/crossLink}} for detailed informations.
Release all unused assets within this bundle. Refer to {{#crossLink "AssetManager/releaseAll:method"}}{{/crossLink}} for detailed informations.
Generated using TypeDoc
A bundle contains an amount of assets(includes scene), you can load, preload, release asset which is in this bundle