Pipeline.Loader 类型

模块: cc

The loader pipe, it can load several types of files:

  1. Images
  2. JSON
  3. Plist
  4. Audio
  5. Font
  6. Cocos Creator scene It will not interfere with items of unknown type. You can pass custom supported types in the constructor.

索引

方法
  • constructor Constructor of Loader, you can pass custom supported types.
  • addHandlers Add custom supported types handler or modify existing type handler.

Details

方法

constructor

Constructor of Loader, you can pass custom supported types.

meta description
定义于 cocos2d/core/load-pipeline/loader.js:261
参数列表
  • extMap Object Custom supported types with corresponded handler
示例
var loader = new Loader({
   // This will match all url with `.scene` extension or all url with `scene` type
   'scene' : function (url, callback) {}
});
addHandlers

Add custom supported types handler or modify existing type handler.

meta description
定义于 cocos2d/core/load-pipeline/loader.js:281
参数列表
  • extMap Object Custom supported types with corresponded handler

条与 "" 相匹配的结果

    没有与 "" 匹配的结果