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
I try to load multiple textures with this.load.pack(). JSON file contains a section of spritesheets and one of them has a normal map included.
When I load the game browser shows the error: Texture key already in use: m4a1. I'm sure my JSON file doesn't contain the same key twice. Then I move a normalMap definition to the next image - the error now is: Texture key already in use: gun2.
This means generating sprites with normal map uses the same key twice somewhere.
📝
The example below is very basic, so the error happens once per 30-50 page refreshes, not every single time. In my bigger project this happens much more often
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
I try to load multiple textures with
this.load.pack()
. JSON file contains a section of spritesheets and one of them has a normal map included.When I load the game browser shows the error:
Texture key already in use: m4a1
. I'm sure my JSON file doesn't contain the same key twice. Then I move a normalMap definition to the next image - the error now is:Texture key already in use: gun2
.This means generating sprites with normal map uses the same key twice somewhere.
Detailed browser error:
Example Test Code
pack.json
content:The text was updated successfully, but these errors were encountered: