Cocos Creator API

1.3.0

Cocos Creator is a highly customizable game development tool that utilizes the power of cocos2d-x.

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.

Loader
(
  • extMap
)

Constructor of Loader, you can pass custom supported types.

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
(
  • extMap
)

Add custom supported types handler or modify existing type handler.

extMap Object

Custom supported types with corresponded handler

There are no methods that match your current filter settings. You can change your filter settings in the index section on this page. index