Add events to signal when all assets have been loaded
Here’s the corrected version of your text: While a global loading screen is provided, I haven't found anything that allows me to listen to global events or "hooks" to know when all the assets have been loaded. It is common practice to expose a set of events on the Loader that allows tracking the asset loading progress. The original issue is that whenever I grab a child of the container, which is a sprite, via the getChildAt method, the sprite doesn't exist at the start. I believe this is related to the way the engine loads the assets. It likely queues the attachAsset calls and attaches sprites when they are loaded, resulting in an asynchronous object tree creation. The AI also says there are no ways to listen to the assets loading events. Are there similar feature requests from creators? Maybe you are already working on that feature?
18d
7
Be the first to comment