some
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user