Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layers's setToTop() method throws an exception: this.getDisplayList is not a function #7014

Closed
leha-games opened this issue Jan 23, 2025 · 1 comment
Assignees

Comments

@leha-games
Copy link

Version

  • Phaser Version: 3.87.0
  • Operating system: Windows 10

Description

Calling setToTop() method of Phaser.GameObjects.Layer throws an exceptions: Uncaught TypeError: this.getDisplayList is not a function

Example Test Code

this.add.layer().setToTop();

Additional Information

The getDisplayList() method appears to be missing from the Phaser.GameObjects.Layer class.

@zekeatchan
Copy link
Collaborator

Hi @leha-games. Thanks for submitting this issue. @rexrainbow has submitted a PR to fix this and we've merged it to the master branch. It will be part of the next release. Do test it out and let us know if you encounter any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants