Loader#withSyncPoints()

withSyncPoints(callback, callbackContext) → {Phaser.Loader}

Add a synchronization point to the assets/files added within the supplied callback.

A synchronization point denotes that an asset must be completely loaded before
subsequent assets can be loaded. An asset marked as a sync-point does not need to wait
for previous assets to load (unless they are sync-points). Resources, such as packs, may still
be downloaded around sync-points, as long as they do not finalize loading.

Parameters
Name Type Argument Default Description
callback function

The callback is invoked and is supplied with a single argument: the loader.

callbackContext object <optional>
(loader)

Context for the callback.

Returns

This Loader instance.

Source code: loader/Loader.js (Line 1649)
doc_phaser
2017-02-14 10:54:36
Comments
Leave a Comment

Please login to continue.