UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
LevelInstanceLevelStreaming.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
9
10#if WITH_EDITOR
12#endif
13
14#include "LevelInstanceLevelStreaming.generated.h"
15
18
19UCLASS(Transient, MinimalAPI)
21{
23
24public:
25 ENGINE_API ILevelInstanceInterface* GetLevelInstance() const;
26
27#if WITH_EDITOR
28 virtual bool ShowInLevelCollection() const override { return false; }
29 virtual bool IsUserManaged() const override { return false; }
30
31 ENGINE_API FBox GetBounds() const;
32
34#endif
35
36protected:
38 static ENGINE_API void UnloadInstance(ULevelStreamingLevelInstance* LevelStreaming);
39
40 ENGINE_API virtual void OnLevelLoadedChanged(ULevel* Level) override;
41
43
44 const FLevelInstanceID& GetLevelInstanceID() const { return LevelInstanceID; }
45private:
46#if WITH_EDITOR
48
52 ENGINE_API virtual void OnCurrentStateChanged(ELevelStreamingState InPrevState, ELevelStreamingState InNewState) override;
56
58 {
62 };
63
65
66 bool IsEditorWorldMode() const;
67
69
71 mutable FBox CachedBounds;
73#endif
74 FLevelInstanceID LevelInstanceID;
75};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
ELevelStreamingState
Definition LevelStreaming.h:111
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition LevelInstanceEditorInstanceActor.h:20
Definition WorldPartitionActorDescInstance.h:18
Definition LevelInstanceInterface.h:33
Definition Array.h:670
Definition ActorDescContainerInstance.h:23
Definition LevelInstanceSubsystem.h:55
Definition LevelStreamingDynamic.h:21
Definition LevelInstanceLevelStreaming.h:21
const FLevelInstanceID & GetLevelInstanceID() const
Definition LevelInstanceLevelStreaming.h:44
Definition Level.h:423
Definition AsyncRegisterLevelContext.cpp:16
Definition LevelInstanceTypes.h:14
Definition Optional.h:131
Definition WeakObjectPtrTemplates.h:25