Unreal module has no attribute EditorLevelLibrary

Keep getting this error, even though the same code worked yesterday and I haven’t changed it.

currentLevel = unreal.EditorLevelLibrary.get_editor_world()

LogPython: Error: AttributeError: ‘module’ object has no attribute ‘EditorLevelLibrary’

Python Automation Test = enabled (what is this, anyway?)
Python Editor Script Plugin = enabled
Sequencer Scripting = enabled

I greatly appreciate that editor scripting has been exposed to python, but you guys sure aren’t making it easy.

2 Likes