Closed zainthemaynnn closed 1 year ago
You could split loading of Other
and Raw
assets into two loading states. Then all your other assets get loaded once and you can retrieve the handles from a resource when loading the raw assets. Would that work for your use case?
yes, thanks. I ended up doing this along with enums pointing to the preloaded handles instead of string keys.
I have a custom asset that contains fields that referring to the keys of other assets in the assets file. is there a way I can get the handle corresponding to that key? for example, in the code below, converting
RawAsset.other_key
to aProcesssedAsset.other_handle
.this works but I think this adds a completely new
OtherAsset
every time I get the handle? additionally it's impossible to get the handle inDynamicAsset::load
.