Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/LevelInstance > API/Runtime/Engine/LevelInstance/ULevelInstanceSubsystem > API/Runtime/Engine/LevelInstance/ULevelInstanceSubsystem/CheckForLoop
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/LevelInstance/LevelInstanceSubsystem.h |
| Include | #include "LevelInstance/LevelInstanceSubsystem.h" |
| Source | /Engine/Source/Runtime/Engine/Private/LevelInstance/LevelInstanceSubsystem.cpp |
static bool CheckForLoop
(
const ILevelInstanceInterface * LevelInstance,
TSoftObjectPtr < UWorld > WorldAsset,
TArray < TPair < FText , TSoftObjectPtr < UWorld > > > * LoopInfo,
const ILevelInstanceInterface ** LoopStart
)
Remarks
Lambda expr format that checks ancestor owners of a LevelInstance. Detects if the WorldAsset shares the same package as the current LevelInstance or any of its ancestors owning the LevelInstance. Used in conjunction with ForEachLevelInstanceAncestorsAndSelf to find a loop using a boolean lambda capture.