Closed zwazel closed 1 year ago
Are you maybe adding the loading state before adding the default plugins?
good call, you're right. Thanks!
Let's leave it open until I improved the readme. It still includes an example where the default plugins are added afterwards.
The example code was fine because it did not add dynamic assets. But I added a note about the ordering in the readme and generally moved the default plugins to the front in all example code.
Hello! I'm trying to use the DynamicAsset feature. Until now I've been only using the not dynamic asset loading features, and everything worked fine. For now I'm just trying to load a png as a StandardMaterial, as shown in one of your examples.
So I changed the cargo.toml file to add the dynamic feature:
and added the my_assets.assets.ron file inside the assets folder:
I've defined my resource:
added it to the loading state
Did I miss anything? Because anytime I try to start the game i get a runtime error saying the AssetServer doesnt exist. I only get this error when enabling the dynamic asset feature. the error: