Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Log an error when registering an AssetSource after AssetPlugin has be…
…en built (#10202) # Objective - Provides actionable feedback when users encounter the error in #10162 - Complements #10186 ## Solution - Log an error when registering an AssetSource after the AssetPlugin has been built (via DefaultPlugins). This will let users know that their registration order needs changing The outputted error message will look like this: ```rust ERROR bevy_asset::server: 'AssetSourceId::Name(test)' must be registered before `AssetPlugin` (typically added as part of `DefaultPlugins`) ``` --------- Co-authored-by: 66OJ66 <[email protected]> Co-authored-by: Alice Cecile <[email protected]>
- Loading branch information