You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Or, if you are using a config object use the `normalMap` property:
270
-
*
271
-
* ```javascript
272
-
* this.load.unityAtlas({
273
-
* key: 'mainmenu',
274
-
* textureURL: 'images/MainMenu.png',
275
-
* normalMap: 'images/MainMenu-n.png',
276
-
* atlasURL: 'images/MainMenu.txt'
277
-
* });
278
-
* ```
279
-
*
280
-
* The normal map file is subject to the same conditions as the image file with regard to the path, baseURL, CORs and XHR Settings.
281
-
* Normal maps are a WebGL only feature.
282
-
*
283
-
* Note: The ability to load this type of file will only be available if the Unity Atlas File type has been built into Phaser.
284
-
* It is available in the default build but can be excluded from custom builds.
285
-
*
286
-
* @method Phaser.Loader.LoaderPlugin#spine
287
-
* @fires Phaser.Loader.LoaderPlugin#addFileEvent
288
-
* @since 3.16.0
289
-
*
290
-
* @param {(string|Phaser.Loader.FileTypes.SpineFileConfig|Phaser.Loader.FileTypes.SpineFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.
291
-
* @param {string|string[]} [textureURL] - The absolute or relative URL to load the texture image file from. If undefined or `null` it will be set to `<key>.png`, i.e. if `key` was "alien" then the URL will be "alien.png".
292
-
* @param {string} [atlasURL] - The absolute or relative URL to load the texture atlas data file from. If undefined or `null` it will be set to `<key>.txt`, i.e. if `key` was "alien" then the URL will be "alien.txt".
293
-
* @param {XHRSettingsObject} [textureXhrSettings] - An XHR Settings configuration object for the atlas image file. Used in replacement of the Loaders default XHR Settings.
294
-
* @param {XHRSettingsObject} [atlasXhrSettings] - An XHR Settings configuration object for the atlas data file. Used in replacement of the Loaders default XHR Settings.
295
-
*
296
-
* @return {Phaser.Loader.LoaderPlugin} The Loader instance.
297
-
FileTypesManager.register('spine', function (key, jsonURL, atlasURL, jsonXhrSettings, atlasXhrSettings)
298
-
{
299
-
var multifile;
300
-
301
-
// Supports an Object file definition in the key argument
302
-
// Or an array of objects in the key argument
303
-
// Or a single entry where all arguments have been defined
304
-
305
-
if (Array.isArray(key))
306
-
{
307
-
for (var i = 0; i < key.length; i++)
308
-
{
309
-
multifile = new SpineFile(this, key[i]);
310
-
311
-
this.addFile(multifile.files);
248
+
this.complete=true;
312
249
}
313
250
}
314
-
else
315
-
{
316
-
multifile = new SpineFile(this, key, jsonURL, atlasURL, jsonXhrSettings, atlasXhrSettings);
0 commit comments