官网PythonAPI教程
教程链接https://dev.epicgames.com/community/learning/courses/wk4/an-in-depth-look-at-using-python-for-game-development/vymW/an-in-depth-look-at-using-python-for-game-development-introduction
获得路径下的所有文件路径
def listAssetPaths(path=‘/Game’): assetPaths = unreal.EditorAssetLibrary.list_assets(path) for assetPath in assetPaths: print(assetPath)
EditorUtilityLibrary和EditorActorSubsystem
EditorUtilityLibrary可以让我们获取和内容浏览器有关的功能EditorActorSubsystem可以可以提供和世界大纲视图有关的功能(这个类在UE5里面有,UE4.27里面没 ...