some
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -31,13 +31,16 @@ TArray<ULevelStreaming*> UcppGI::cppLvlManage(UObject* WorldContextObject, Fcppc
|
|||||||
{
|
{
|
||||||
TArray<ULevelStreaming*> outStruct;
|
TArray<ULevelStreaming*> outStruct;
|
||||||
bool loadthis;
|
bool loadthis;
|
||||||
auto temp = Fcppcoords();
|
/*for 3Dtour only*/
|
||||||
temp.house = -2;
|
if(currentState==11) {
|
||||||
temp.section = -2;
|
auto temp = Fcppcoords();
|
||||||
temp.floor = 1;
|
temp.house = -2;
|
||||||
|
temp.section = -2;
|
||||||
|
temp.floor = 1;
|
||||||
|
|
||||||
|
cppLoadList.AddUnique(temp);
|
||||||
|
}
|
||||||
cppLoadList.AddUnique(currentCoords);
|
cppLoadList.AddUnique(currentCoords);
|
||||||
cppLoadList.AddUnique(temp);
|
|
||||||
|
|
||||||
for (const auto& lvl : cppLevels)
|
for (const auto& lvl : cppLevels)
|
||||||
{
|
{
|
||||||
@@ -69,9 +72,10 @@ TArray<ULevelStreaming*> UcppGI::cppLvlManage(UObject* WorldContextObject, Fcppc
|
|||||||
else { /*load new level instance*/
|
else { /*load new level instance*/
|
||||||
|
|
||||||
bool b;
|
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->SetPriority(lvl.coords.flat == -1 ? 1 : 0);
|
||||||
newlvl->bShouldBlockOnLoad = lvl.dontUnload;
|
newlvl->bShouldBlockOnLoad = lvl.dontUnload;
|
||||||
|
cppCreatedList.Add(lvl.uniqName);
|
||||||
cpploadedList.Add(lvl.uniqName);
|
cpploadedList.Add(lvl.uniqName);
|
||||||
outStruct.Add(newlvl);
|
outStruct.Add(newlvl);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user