195{
196 switch (Phase)
197 {
198 case ELevelStreamingPhase::PreLoad:
199 {
201
202 if (PreLoad == nullptr)
203 {
204 return;
205 }
206
207 if (CallType == ELevelStreamingEffectCallType::Start)
208 {
210 }
211 else if (CallType == ELevelStreamingEffectCallType::End)
212 {
214 }
215
216 return;
217 }
218
219 case ELevelStreamingPhase::DuringLoad:
220 {
222
223 if (Loading == nullptr)
224 {
225 return;
226 }
227
228 if (CallType == ELevelStreamingEffectCallType::Start)
229 {
231 }
232 else if (CallType == ELevelStreamingEffectCallType::End)
233 {
235 }
236
237 return;
238 }
239
240 case ELevelStreamingPhase::PostLoad:
241 {
243
244 if (PostLoad == nullptr)
245 {
246 return;
247 }
248
249 if (CallType == ELevelStreamingEffectCallType::Start)
250 {
252 }
253 else if (CallType == ELevelStreamingEffectCallType::End)
254 {
256 }
257
258 return;
259 }
260
261 case ELevelStreamingPhase::None:
262 {
265 return;
266 }
267 }
268}
#define LOG_ERROR(Category, Format,...)
Definition CK_UE.h:40
#define NAMEOF(Type)
Definition CK_UE.h:30
Definition LevelLoadingInterface.h:23
virtual void OnLoadingStart(const FLevelStreamingContext Context)=0
virtual void OnLoadingEnd(const FLevelStreamingContext Context)=0
Definition LevelPostLoadInterface.h:23
virtual void OnPostLoadStart(const FLevelStreamingContext Context)=0
virtual void OnPostLoadEnd(const FLevelStreamingContext Context)=0
Definition LevelPreLoadInterface.h:23
virtual void OnPreLoadEnd(const FLevelStreamingContext Context)=0
virtual void OnPreLoadStart(const FLevelStreamingContext Context)=0
Definition LevelStreamingEffect.h:121
ELevelStreamingEffectResult LastExecutionResult
Definition LevelStreamingEffect.h:157