#I’ve never had to do anything of sort
1 messages · Page 1 of 1 (latest)
No. I'm pretty sure there were cases I was calling it and completely ignoring the handle (cause I would do something with the completion callback)
But I don't have access to that code base anymore to look.
Mhh if you had a callback there's a chance that your lambda was holding a reference to the handle
I can definitely say that this fixes my issue of an asset bundle not being loaded
In my custom AM I used a map of FName (which most likely now should be a gameplay tag) to an array of handles.
and custom wrappers around LoadPrimaryAsset/ChangeBundleState functions with a mandatory layer name/tag parameter - menu, lobby, session.
so after load request handles were stored there and after game mode ended or by trigger - handles for that layer were cleaned along with optional trigger of unloadprimaryasset.
this was used since ue4.25?-sh
so i almost never had significant problems with gc and missed assets, well instead had cases with a bit too much kept loaded - but solved by breaking down things
Alright so you did hold the loading handles