Hello,
I’m loading levels in my GameMode class via LoadStreamLevel function. It works nice.
But, is there any way to check whether level was loaded?
When I’m using code:
ULevelStreaming* ls = UGameplayStatics::GetStreamingLevel(this, FName(TEXT("LevelOne")));
if(ls != NULL)
{
if (ls->IsLevelLoaded())
{
...
}
}
I’m getting linker error 2019:
MyGameMode.cpp.obj : error LNK2019: unresolved external symbol "public: bool __cdecl ULevelStreaming::IsLevelLoaded(void)const " (?IsLevelLoaded@ULevelStreaming@@QEBA_NXZ) referenced in function "public: void __cdecl AMyGameMode::UnloadCurrentLevel(void)" (?UnloadCurrentLevel@AMyGameMode@@QEAAXXZ)
PS: And also, can You tell me in a nutshell about FLatentActionInfo in LoadStreamLevel and UnloadStreamLevel functions?