You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would the above be possible without needing to write an asset loader that manually deserialize and load each dependency?
Or to put it in other words, would it be possible to simply write something similar to let asset: MyCustomAsset = serde_json::from_slice(&bytes) in MyCustomAssetLoader and have the rest be automatically handled?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Suppose I have a custom asset type:
and suppose I would like to load such an asset via serde_json (or whichever format) where the file looks like:
Would the above be possible without needing to write an asset loader that manually deserialize and load each dependency?
Or to put it in other words, would it be possible to simply write something similar to
let asset: MyCustomAsset = serde_json::from_slice(&bytes)
inMyCustomAssetLoader
and have the rest be automatically handled?Beta Was this translation helpful? Give feedback.
All reactions