UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
LevelStreamingDelegates.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2// Globally-bound delegates for level streaming status updates
3
4#pragma once
5
7
8class UWorld;
10class ULevel;
11
12enum class ELevelStreamingState : uint8;
14
15// TODO: what is the best way to capture a level which is queued for unload while it is during async load or add to world?
16// Are level async loads actually cancelled?
17
19{
20 // Called when a new target state for a streaming level is determined.
21 // Can be used to measure latency between requests and application
22 // (e.g. limits on current level loads & visibility changes)
24 UWorld*,
25 const ULevelStreaming*,
30
31 // Called when a streaming level enters a new state.
32 // When a level is newly added to the streaming system, PreviousState and NewState may be equal.
34 UWorld*,
35 const ULevelStreaming*,
37 ELevelStreamingState PreviousState,
40
41 // Notifications on when work actually beings on making a level visible or invisible, so profiling tools can measure the difference between time spent waiting to be added to the world and time spend actively working
44};
OODEFFUNC typedef void(OODLE_CALLBACK t_fp_OodleCore_Plugin_Free)(void *ptr)
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
ELevelStreamingState
Definition LevelStreaming.h:111
ELevelStreamingTargetState
Definition LevelStreaming.h:124
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition DelegateSignatureImpl.inl:1029
Definition LevelStreaming.h:139
Definition Level.h:423
Definition World.h:918
Definition LevelStreamingDelegates.h:19
static ENGINE_API TMulticastDelegate< void(UWorld *, const ULevelStreaming *, ULevel *LevelIfLoaded, ELevelStreamingState Current, ELevelStreamingTargetState PrevTarget, ELevelStreamingTargetState NewTarget)> OnLevelStreamingTargetStateChanged
Definition LevelStreamingDelegates.h:29
static ENGINE_API TMulticastDelegate< void(UWorld *, const ULevelStreaming *, ULevel *LevelIfLoaded, ELevelStreamingState PreviousState, ELevelStreamingState NewState)> OnLevelStreamingStateChanged
Definition LevelStreamingDelegates.h:39
static ENGINE_API TMulticastDelegate< void(UWorld *, const ULevelStreaming *, ULevel *LoadedLevel)> OnLevelBeginMakingVisible
Definition LevelStreamingDelegates.h:42
static ENGINE_API TMulticastDelegate< void(UWorld *, const ULevelStreaming *, ULevel *LoadedLevel)> OnLevelBeginMakingInvisible
Definition LevelStreamingDelegates.h:43