I have the problem that my asset registry is not loading fast enough. I want to read all assets in a folder with a for loop and unreal.find_asset. The problem is, that I want to do this right after the start of unreal (the function is in a init_unreal.py). When starting Unreal, the assets can’t be accessed and it prints the error: The AssetRegistry is currently loading.
I tried several things to wait for the asset registry to be loaded, but Unreal freezes at this point (forever).
That’s one of my tries:
asset_registry = unreal.AssetRegistryHelpers.get_asset_registry() while True: is_loading = asset_registry.is_loading_assets() unreal.log_warning(is_loading) if is_loading == False: break
is there a “unreal way” to wait for things to be loaded?
Thanks in advance for your time and help.