Class: UpdateList

Phaser.GameObjects. UpdateList

The Update List plugin.

Update Lists belong to a Scene and maintain the list Game Objects to be updated every frame.

Some or all of these Game Objects may also be part of the Scene's Display List, for Rendering.


new UpdateList(scene)

Parameters:
Name Type Description
scene Phaser.Scene

The Scene that the Update List belongs to.

Since: 3.0.0
Source: src/gameobjects/UpdateList.js (Line 12)

Extends

Members


scene :Phaser.Scene

The Scene that the Update List belongs to.

Type:
Since: 3.0.0
Source: src/gameobjects/UpdateList.js (Line 41)

systems :Phaser.Scenes.Systems

The Scene's Systems.

Type:
Since: 3.0.0
Source: src/gameobjects/UpdateList.js (Line 50)

Methods


destroy()

The Scene that owns this plugin is being destroyed.

We need to shutdown and then kill off all external references.

Since: 3.0.0
Source: src/gameobjects/UpdateList.js (Line 207)

sceneUpdate(time, delta)

The update step.

Pre-updates every active Game Object in the list.

Parameters:
Name Type Description
time number

The current timestamp.

delta number

The delta time elapsed since the last frame.

Since: 3.20.0
Source: src/gameobjects/UpdateList.js (Line 134)

shutdown()

The Scene that owns this plugin is shutting down.

We need to kill and reset all internal properties as well as stop listening to Scene events.

Since: 3.0.0
Source: src/gameobjects/UpdateList.js (Line 161)