Replies: 3 comments 4 replies
-
Yeah I think this is a good idea. Imo this should be implemented as a "generic" AssetLoader that takes a Deserialize type, a set of file extensions, and some way to plug in an arbitrary serde Deserializer type. It would also need to take a Uuid, as all assets require a TypeUuid impl. |
Beta Was this translation helpful? Give feedback.
-
Does bevy choose the |
Beta Was this translation helpful? Give feedback.
-
Take a look at ron loader plugin, it seems pretty accurate |
Beta Was this translation helpful? Give feedback.
-
I wish bevy offered an ergonomic way to load arbitrary structs and other data to be used in the game as files from the game assets.
Currently, AFAIK, one needs to write boilerplate to define a new custom asset type for each such piece of data / struct type that is to be loaded.
Some generic API for automagic integration with Serde, so that any
Deserialize
struct could be loaded as a bevy asset (ideally with any arbitraryDeserializer
, not necessarily RON), would be awesome.Beta Was this translation helpful? Give feedback.
All reactions