-
Hi! Thanks for any help/assistance 🥺 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 I also highly recommend using |
Beta Was this translation helpful? Give feedback.
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. Sincebevy_ecs_ldtk
does its own processing on.ldtk
assets, it also…