-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Closed
Labels
🕷 BugVerified that it’s actually a legit bug that exists in the current release.Verified that it’s actually a legit bug that exists in the current release.
Description
Current Behavior
When loading an asset bundle via Assets.loadBundle()
and assigning a progress callback, the progress callback will never reach 1 if images inside of the bundle specify multiple aliases.
Expected Behavior
The amount of aliases used in the bundle should not effect load progress callback values.
Steps to Reproduce
- View repro playground: https://www.pixiplayground.com/#/edit/NqwqxrZ6sjp2en3yPdtvj
- Load an asset bundle containing an image with multiple aliases and specify a load callback
- Observe that the load callback never reaches 1
Environment
pixi.js
version: 8.4.1- Running Example: https://www.pixiplayground.com/#/edit/NqwqxrZ6sjp2en3yPdtvj
Possible Solution
No response
Additional Information
It appears that when loading a bundle, the progress callback uses a key count to determine the amount loaded / the amount to load. The key count for some reason seems to include the aliases, but this behavior does not occur when loading a single asset instead of loading a bundle. I may dig deeper into this when I get a chance.
Metadata
Metadata
Assignees
Labels
🕷 BugVerified that it’s actually a legit bug that exists in the current release.Verified that it’s actually a legit bug that exists in the current release.