UWorld::AddLevel is not working ! Why? Please Help me

My code like this

ULevel *level=NewObject<ULevel>();
GetWorld()->AddLevel(level);

i wanna to add a new level into worldscene,but it is not working when test fucntion “GetWorld()->AddLevel(level)”.
please help me.

is that any way to addlevel into world in the custom plugin program?

but when i use GetWorld()->SpwanActor<AActor>() it can work,why the addlevel not ???

i’m chinese my english is not very well ,so…can you get my point?

I don’t think you can simply add empty level like this.

I think you should create an empty level resource first, save it somewhere in the content folder, then add it to streaming levels of your current level.