import unreal
import os
import json
tickhandle = None
asset_registry = unreal.AssetRegistryHelpers.get_asset_registry()
def testRegistry(deltaTime):
unreal.log_warning("ticking.")
if asset_registry.is_loading_assets():
unreal.log_warning("still loading...")
else:
unreal.log_warning("ready!")
unreal.unregister_slate_pre_tick_callback(tickhandle)
main()
tickhandle = unreal.register_slate_pre_tick_callback(testRegistry)
Python: wait for asset registry is loaded
最新推荐文章于 2023-10-02 11:36:26 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)