[Version 4.12.5]
While working on an endless runner prototype where my Tiles are created as Streaming Levels, I ran into a supposed hardcoded limit for Streaming Level Instances.
I can add (exactly) 1,000 streaming levels this way:
But the 1,001st results in a crash.
Some observations:
-
only levels that were at one point set to ShouldBeLoaded = true count towards the limit.
-
it doesn’t matter how many levels are visible/loaded at a given time.
-
setting the “bIsRequestingUnloadAndRemoval” (in C++) makes no difference.
-
log file output:
[861]LogWindows:Error: === Critical error: ===
Fatal error: [File:D:\Build++UE4+Release-4.12+Compile\Sync\Engine\Source\Runtime\CoreUObject\Private\Serialization\AsyncLoading.cpp] [Line: 2181]
LoadPackageAsync failed to begin to load a package because the supplied package name was neither a valid long package name nor a filename of a map within a content folder: ‘’
Not sure if 1000 is the allocation limit for the internal array of level instances, maybe it is changeable in the settings?
If there was a way to assign a new map to an existing instance, I could reuse those, but I do not see such an option.