Phaser API Documentation

  Version: 

Member of: Phaser.Curves.Path

fromJSON(data)

Description:

Creates a Path from a Path Configuration object.

The provided object should be a Phaser.Types.Curves.JSONPath, as returned by #toJSON. Providing a malformed object may cause errors.

Parameters:

name type description
data Phaser.Types.Curves.JSONPath

The JSON object containing the Path data.

Returns:
Description:

This Path object.

Since: 3.0.0
Source: src/curves/path/Path.js (Line 332)