Phaser API Documentation

  Version: 
<private> setFromJSON(sprite, properties)

Description:

Sets the sprite data from the JSON object.

Parameters:

name type description
sprite Phaser.GameObjects.GameObject

The object for which to populate data.

properties Object.<string, *> | Array.<Object>

The properties to set in either JSON object format or else a list of objects with name and value fields.

Since: 3.60.0