Skip to content

Feature suggestion: also clear scene events when scene shutdown #5722

Closed

Description

@rexrainbow

When scene shutdown

  • All game objects will be destroyed by engine,
    • Registered events on game objects will also be clear, too.
  • Touch, keyboard and GamePad events will be clear by engine,
  • Cameras will be destroyed by engine

But scene events (e.x. scene.events.on('update', callback)) won't be clear by engine. User has to remove registered events manually.

Add events.removeAllListeners() at the end of Systems.shutdown() method might clear scene events.

Activity

  1. locked and limited conversation to collaborators on Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions