Hi. I am newbie. I am trying to load and unload levels with c++. When I load new level I am trying to unload previous level, but it doesn’t work properly. It unloads previous level but it doesn’t load new level. I am using UGameplayStatics::LoadStreamLevel and UGameplayStatics::UnloadStreamLevel. I searched the problem, but I couldn’t find any solution. Any idea? Is there another way to load and unload levels with c++? Thanks.
If anybody have the same problem you can use UGameplayStatics::GetStreamingLevel(this, LevelNameToLoad)->SetShouldBeLoaded(true) to load UGameplayStatics::GetStreamingLevel(this, LevelNameToLoad)->SetShouldBeLoaded(false) to unload. It works properly.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.