# Level Streaming Issue with C++

**URL:** <https://forums.unrealengine.com/t/level-streaming-issue-with-c/486605>\
**Category:** World Creation\
**Tags:** Level-Streaming, sub-level, unreal-engine, question\
**Created:** [July 26, 2021, 5:59am UTC](https://forums.unrealengine.com/t/level-streaming-issue-with-c/486605 "2021-07-26T05:59:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KaylaHK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KaylaHK](https://forums.unrealengine.com/u/KaylaHK)\
**Post date:** [July 26, 2021, 5:59am UTC](https://forums.unrealengine.com/t/level-streaming-issue-with-c/486605/1 "2021-07-26T05:59:14Z")

</div>

I am trying to use C++ to do the level streaming. But for some reason, I can’t re-load the level back after unloading it.

I checked with UE\_LOG and I find out that the level is “deleted” after unloading it. I can still find it in the level editor with no visibility but can’t reload it. How can I get the hidden level reloaded after unloading it ? Below is my coding.

```
FString AtestActor::Swap()
{
	if (bSwap)
	{
		
		
		FLatentActionInfo Info;
		//UGameplayStatics::UnloadStreamLevel(this, FName(NewLevel), Info, true);
		UGameplayStatics::UnloadStreamLevelBySoftObjectPtr(this, TestLevel, Info, true);
	
		UE_LOG(LogTemp, Warning, TEXT("%s"), *NewLevel);

	}

	return NewLevel;

}
FString AtestActor::OpenLevel()
{
	if (bOpenLevel)
	{
		FLatentActionInfo Info;
		
		//UGameplayStatics::LoadStreamLevel(this, FName(NewLevel), true, true, Info);
		UGameplayStatics::LoadStreamLevelBySoftObjectPtr(this, TestLevel, true, true, Info);
		UE_LOG(LogTemp, Warning, TEXT("%s"), *NewLevel);

	}
	return NewLevel;
}

```

I also find out that in the output log LogLevel: ActivateLevel /Game/UEDPIE\_0\_NewWorld 1 0 1 after unloading the level. Does that mean anything for the level?
