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 #4204

Closed
raphlee opened this issue Nov 29, 2018 · 3 comments
Closed

Get error when start a scene using plugin rexUI #4204

raphlee opened this issue Nov 29, 2018 · 3 comments

Comments

@raphlee
Copy link

raphlee commented Nov 29, 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.

Example Test 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);

Additional Information

Here is screen shot:
error


I guess, the problem is when start a scene, the old scene is destroy, but not everything, specially is plugin. I tried use 'switch' scene instead, it's working like a charm, but I don't want to change scene like this.

@rexrainbow
Copy link
Contributor

Please report to my github, with a very simple and run-able test code. I would like to solve it first.

@raphlee
Copy link
Author

raphlee commented Nov 30, 2018

ok @rexrainbow . So if you have any idea, solution or fixed version please lemme know. Thx.

@raphlee
Copy link
Author

raphlee commented Dec 1, 2018

thanks to @rexrainbow , plugin was fixed.

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

3 participants