You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After I fixed the issue #4544 by my self, and remove a scene with a DynamicTilemap, I get the following error: TypeError: Cannot read property 'tilemapLayer' of undefined
I breaked this down to, that first the DisplayList destroys the DynamicTilemapLayer, and then the UpdateList trys to destroy it. But the DynamicTilemapLayer is not prepared to, that its destroy method is called more than once, and breakes with that error.
Example Test Code
// main game scene
const testmap = this.make.tilemap({ key: 'Testmap' });
testmap.createDynamicLayer('walkable', [testmap.addTilesetImage('tiles', 'tiles')])
// some ui scene, with an exit button, which removes the main game scene
mainScene.scene.remove(); // during this call, the error occures
Additional Information
How I already told, I fixed the issue #4544 by my self, so that the UpdateList really removes its content. By this, it is tried twice to remove the DynamicTilemapLayer.
The text was updated successfully, but these errors were encountered:
Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.
Version
Description
After I fixed the issue #4544 by my self, and remove a scene with a DynamicTilemap, I get the following error:
TypeError: Cannot read property 'tilemapLayer' of undefined
I breaked this down to, that first the DisplayList destroys the DynamicTilemapLayer, and then the UpdateList trys to destroy it. But the DynamicTilemapLayer is not prepared to, that its destroy method is called more than once, and breakes with that error.
Example Test Code
Additional Information
How I already told, I fixed the issue #4544 by my self, so that the UpdateList really removes its content. By this, it is tried twice to remove the DynamicTilemapLayer.
The text was updated successfully, but these errors were encountered: