Phaser API Documentation

  Version: 
getData()

Description:

Returns any data that was sent to this Scene by another Scene.

The data is also passed to Scene.init and in various Scene events, but you can access it at any point via this method.

Type:
  • any
Since: 3.22.0
Source: src/scene/Systems.js (Line 535)