37 virtual void Initialize(FSubsystemCollectionBase& Collection)
override;
40 UFUNCTION(BlueprintCallable, Category =
"Level|Streaming")
46 const UWorld* World = GetGameInstance()->GetWorld();
47 return World && World->GetStreamingLevels().Num() > 0;
51 virtual void Tick(
float DeltaTime)
override;
52 virtual bool IsTickable()
const override;
54 FString HandleLevelLoading(
ULevelStreamingData* ReqLevelLoadPipelineData, ULevelStreaming* TargetLevel);
55 bool InvalidateLevelLoadRequest(
const ULevelStreamingData* ReqLevelLoadPipelineData, ULevelStreaming*& PreviousLevelStreaming)
const;
75 void StartDuringLoadPhase();
76 void EvaluateDuringLoadCompletion();
83 UPROPERTY(EditAnywhere, Category = "Debug")
84 bool bDebugMode = true;
86 UPROPERTY(EditAnywhere)
87 int32 StreamingWindowSize = 3;
89 UPROPERTY(BlueprintAssignable, Category = "Level|Streaming")
90 FOnLevelLoadCompleted OnLevelLoadCompleted;
92 UPROPERTY(BlueprintAssignable, Category = "Level|Streaming")
93 FOnLevelLoadedInMemory OnLevelLoadedInMemory;
95 UPROPERTY(BlueprintAssignable, Category = "Level|Streaming")
96 FOnPlacePlayerTheWorld OnPlacePlayerTheWorld;
107 TWeakObjectPtr<ULevelStreaming> LevelToLoad;
110 TWeakObjectPtr<ULevelStreaming> LevelToUnload;
122 bool bIsLevelLoadRequested = false;
123 bool bAsyncLoading = false;
124 bool bLevelLoadDone = false;
125 bool bDuringLoadChainDone = false;
126 bool bFakeLoadingDone = false;
128 FTSTicker::FDelegateHandle FakeLoadingTickerHandle;
Definition LevelStreamingContext.h:10