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

Get error when start a scene using plugin rexUI #9

Closed
raphlee opened this issue Nov 30, 2018 · 2 comments
Closed

Get error when start a scene using plugin rexUI #9

raphlee opened this issue Nov 30, 2018 · 2 comments

Comments

@raphlee
Copy link

raphlee commented Nov 30, 2018

Version

  • Phaser Version: 3.14 and 3.15.1
  • Operating system: Windows 10
  • Browser: Google Chrome | 70.0.3538.102 (Official Build) (64-bit) (cohort: Stable)

Description

My game have plugin rexUI from rexUI to create a simple scroll view (use GridTable) in a scene called Menu. Everything works fine, until I click an item view, this call a callback to start a scene (called Game). In console, it showed error and the game got frozen.
Actually, the game got frozen in version 3.14. When I update to version (just downloaded in webs) 3.15.1, it no longer frozen, the Game scene is loaded but the error still thrown.

Code

Import plugin in scene (Menu)

preload() { this.load.scenePlugin({ key: 'rexuiplugin', url: 'assets/libs/rexuiplugin.min.js', sceneKey: 'rexUI' }); }

Event:

// event table.on('cell.click', function (cellContainer, cellIndex) { console.log('Game scene with index ' + cellIndex); this.scene.start('Game'); }, this);

Here is screen shot:
error


It's linked to issue I post in Phaser Issue

@rexrainbow
Copy link
Owner

Thank you for this reporting, it is a bug in my plugin, which I turn off scene event when that scene has been destroyed.
This bug hass been fixed, please get the lastest version of my ui plugins.

@raphlee
Copy link
Author

raphlee commented Dec 1, 2018

thx @rexrainbow . I will check it out.

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