Replies: 2 comments
-
Instead of generating your own handle based on the bytes of Or does that not fit your needs? |
Beta Was this translation helpful? Give feedback.
-
About labeled assets, they don't free you from having to store a handle on the underlying asset somewhere to add that label to it later. In my case, I already have a main unique id that could be used to make a static handle anywhere in the code, that points to loaded asset. And that would be super cool. The only option I see so far is to store a large map table in memory somewhere, like (
but it's not very convenient, because my uuid is already unique ID and this is same id that bevy can store in Handle ( |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, i have some file format, that looks like this:
This file format is just a list of sub-assets, that can be any type.
But every sub-asset has field
id
.This field
id
, internally stored as u64 and can be caster to uuid, and then can be casted to uniqueHandle(uuid)
.example:
Then i trying to write asset loader, that must register each sub-asset in asset storage, with my handle, but i can`t find this functionality.
Example of my loader:
How i can achieve this?
Beta Was this translation helpful? Give feedback.
All reactions