Phaser home
Phaser AE
Open source
Phaser 4
Download
Learn
Editor
Tools
Docs
Examples
News
Log in
Examples
/
Components
/
Data
Phaser 4.1.0
Phaser 4 examples
Data
7
examples
Examples
7
Change Data Event
Learn how to listen for changes to specific keys in a Game Object's Data Manager and react by updating text or modifying values.
Data Values
Demonstrates how to store and retrieve custom data on a Game Object, and use the 'setdata' event to respond to value changes.
Get and Set Data Values
Learn how to use the Data Manager to store and retrieve custom properties on a Game Object.
Query Data
Demonstrates how to use regular expressions to filter and retrieve specific sets of keys and values from a Game Object's Data Manager.
Set Data Event
Demonstrates how to listen for and respond to the 'setdata' event when initial data values are first added to a Game Object's Data Manager.
Set Multiple Data Values
Demonstrates how to initialize multiple data properties on a Game Object using an object and how to listen for the 'changedata' event to update UI elements.
Store Scene Data
Demonstrates how to use the Scene Data Manager to store and retrieve custom key-value pairs at the Scene level.