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 Initialize
  • getBuiltin 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
  • type string The type of asset, such as effect
  • name string The name of asset, such as phong
Examples
cc.assetManaer.builtins.getBuiltin('effect', 'phone');
clear

Clear all builtin assets

meta description
Defined in cocos2d/core/asset-manager/builtins.js:114

results matching ""

    No results matching ""