Skip to content

Entities do not exists yet in PreStartup/Startup/PostStartup stage #260

Answered by Trouv
Twyker asked this question in Q&A
Discussion options

You must be logged in to vote

This is true, you won't have access to these things during the Startup schedule This is actually just the nature of bevy's asset system being asynchronous, not really the design of this plugin. When loading an asset, you'll only get a handle to that asset which will eventually point to the asset's data in its asset store, but it will point to nothing for some time. So, if you're loading assets on startup, that data won't be available for at least one update after startup.

If you need to do some processing on asset data once after it is loaded, listening for that asset's AssetEvent in a system is a pretty common strategy. Since bevy_ecs_ldtk does its own processing on .ldtk assets, it also…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Twyker
Comment options

Answer selected by Twyker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants