Phaser API Documentation

  Version: 
once(event, fn, [context])

Description:

Add a one-time listener for a given event.

Parameters:

name type arguments Default description
event string | symbol

The event name.

fn function

The listener function.

context * <optional> this

The context to invoke the listener with.

Returns:
Description:

this.

Examples:
Since: 3.0.0