This commit is contained in:
2024-01-09 20:08:00 +05:00
parent 4aca15f778
commit 106595664b
8 changed files with 10 additions and 6 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+10 -6
View File
@@ -31,13 +31,16 @@ TArray<ULevelStreaming*> UcppGI::cppLvlManage(UObject* WorldContextObject, Fcppc
{
TArray<ULevelStreaming*> outStruct;
bool loadthis;
auto temp = Fcppcoords();
temp.house = -2;
temp.section = -2;
temp.floor = 1;
/*for 3Dtour only*/
if(currentState==11) {
auto temp = Fcppcoords();
temp.house = -2;
temp.section = -2;
temp.floor = 1;
cppLoadList.AddUnique(temp);
}
cppLoadList.AddUnique(currentCoords);
cppLoadList.AddUnique(temp);
for (const auto& lvl : cppLevels)
{
@@ -69,9 +72,10 @@ TArray<ULevelStreaming*> UcppGI::cppLvlManage(UObject* WorldContextObject, Fcppc
else { /*load new level instance*/
bool b;
if (ULevelStreamingDynamic* newlvl = ULevelStreamingDynamic::LoadLevelInstance(WorldContextObject, lvl.path, FVector(0, 0, lvl.Z), FRotator(), b, lvl.uniqName.ToString())) {
if (ULevelStreamingDynamic* newlvl = ULevelStreamingDynamic::LoadLevelInstance(WorldContextObject, lvl.path, FVector(0, 0, lvl.Z), FRotator(0), b, lvl.uniqName.ToString())) {
newlvl->SetPriority(lvl.coords.flat == -1 ? 1 : 0);
newlvl->bShouldBlockOnLoad = lvl.dontUnload;
cppCreatedList.Add(lvl.uniqName);
cpploadedList.Add(lvl.uniqName);
outStruct.Add(newlvl);
}