# add existing sub-level by python in UE4.25

**URL:** <https://forums.unrealengine.com/t/add-existing-sub-level-by-python-in-ue4-25/483492>\
**Category:** Editor Scripting\
**Tags:** error, Python, sub-level, unreal-engine, question\
**Created:** [May 17, 2021, 10:34am UTC](https://forums.unrealengine.com/t/add-existing-sub-level-by-python-in-ue4-25/483492 "2021-05-17T10:34:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_67718b911](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_67718b911](https://forums.unrealengine.com/u/anonymous_user_67718b911)\
**Post date:** [May 17, 2021, 10:34am UTC](https://forums.unrealengine.com/t/add-existing-sub-level-by-python-in-ue4-25/483492/1 "2021-05-17T10:34:48Z")

</div>

I’m trying to load a sublevel into the current level in python, but I don’t know how.

I found this article and tried it, but I get the following error message.

> **[Could add a sub-level to current level with python?](https://forums.unrealengine.com/questions/979392/could-add-a-sub-level-to-current-level-with-python.html)**
>
> Here is a function called : create\_new\_streaming\_level in unreal.EditorLevelUtils — Unreal Python 4.27 (Experimental) documentation But could create a sub-level by existing level?

```
world = unreal.EditorLevelLibrary.get_editor_world()
levelStreaming = unreal.EditorLevelUtils().add_level_to_world_transform(world, subLevelPath , unreal.LevelStreamingAlwaysLoaded)

```

error:  
LogPython: Error: ‘EditorLevelUtils’ object has no attribute ‘add\_level\_to\_world’

It seems that this function is new in 4.26.  
Is there any way to load it in 4.25?

Reference:  
[https://docs.unrealengine.com/en-US/PythonAPI/class/EditorLevelUtils.html](https://docs.unrealengine.com/en-US/PythonAPI/class/EditorLevelUtils.html)
