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 manage to work around the issue by using one of two methods:
Pull the ID assignation out of the if statement, assigning it the texture index
Manually set composite parent to true (not really sure of the implications of this)
I was wondering if this was a bug of if I was just not using the library properly. If it is indeed a bug, I can make a PR applying one of the two fixes I found.
The text was updated successfully, but these errors were encountered:
When trying to create a Tilemap using an array of baseTextures, I noticed that the .tile() function would always render the first texture, regardless of the index I gave it. Digging into the issue, I noticed that the textureId (https://github.com/pixijs/tilemap/blob/123f8530c10bb1de790346d435ad65345ce8b2ae/src/Tilemap.ts#L491C22-L491C22) is only set when compositeParent is true, otherwise it stays at a value of 0 and always picks the first sprite.
I manage to work around the issue by using one of two methods:
I was wondering if this was a bug of if I was just not using the library properly. If it is indeed a bug, I can make a PR applying one of the two fixes I found.
The text was updated successfully, but these errors were encountered: