Builtins
Class
Module: cc.AssetManager
This module contains the builtin asset, it's a singleton, all member can be accessed with cc.assetManager.builtins
Index
Methods
init
InitializegetBuiltin
Get the built-in asset using specific type and name.clear
Clear all builtin assets
Details
Methods
init
Initialize
meta | description |
---|---|
Defined in | cocos2d/core/asset-manager/builtins.js:66 |
Parameters
cb
Function Callback when finish loading built-in assets
getBuiltin
Get the built-in asset using specific type and name.
meta | description |
---|---|
Returns | Asset | Cache |
Defined in | cocos2d/core/asset-manager/builtins.js:90 |
Parameters
Examples
cc.assetManaer.builtins.getBuiltin('effect', 'phone');
clear
Clear all builtin assets
meta | description |
---|---|
Defined in | cocos2d/core/asset-manager/builtins.js:114 |