- Home /
Question by
JCNemeth · Nov 21, 2018 at 04:30 PM ·
assetsscene-switchingunloadunusedassets
Is there a way to track the Progress or Status of UnloadUnusedAssets()?
Hey all,
So I'm attempting to swap between a pair of scenes via a standard Button, and on entry to my new scene (loading screen has finished and disappeared) I've discovered a sort of "freeze hitch" in the scene. On checking this out in Xcode, I discovered that what is bogging down the scene is the UnloadUnusedAssets() process, which can take between 5 and 50 seconds to complete (10k assets being removed).
Is there a way to call the status of said process, or at least the "Done vs notDone" value? I'm looking to add these attributes to the conditions of my loading screen, such that it won't fade until the UUA is finished.
Thanks in advance!
Comment
Your answer