UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
LevelInstancePropertyOverrideDesc.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#if WITH_EDITOR
6
9
10struct FAssetData;
11
12// Shared so that existing containers can keep it alive even if owning LevelInstance might have released it
13class FLevelInstancePropertyOverrideDesc : public TSharedFromThis<FLevelInstancePropertyOverrideDesc>
14{
15 friend class FLevelInstanceActorDesc;
19public:
21
22protected:
23 FName GetWorldPackage() const { return WorldAsset.GetLongPackageFName(); }
24 FSoftObjectPath GetAssetPath() const { return AssetPath; }
25 FName GetAssetPackage() const { return PackageName; }
26
30
31 // Returns the overriden ActorDesc for an Actor part of BaseContainer or any of its Child containers
34
36
38
41
42 // Utility methods to find Base ActorDescs
45
46 FString GetContainerName() const;
49
51private:
52 FSoftObjectPath AssetPath;
53 FSoftObjectPath WorldAsset;
54 FName PackageName;
55
57
58 // Override ActorDescs are stored as shared pointers because we have FLevelInstanceActorDesc::Init which can be called multiple times for an actor (Every time CreateActorDesc is called)
59 // This will result in the new FLevelInstanceActorDesc copying some ActorDescs from the previous FLevelInstanceActorDesc (the one still in the parent Container)
60 // For this operation to not trash the previous FLevelInstanceActorDesc we need to share those ptrs
62};
63
64#endif
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
FArchive & operator<<(FArchive &Ar, FEnvQueryDebugProfileData::FStep &Data)
Definition EnvQueryTypes.cpp:489
void Init()
Definition LockFreeList.h:4
Definition Archive.h:1208
Definition NameTypes.h:617
Definition WorldPartitionActorDesc.h:282
Definition Array.h:670
Definition UnrealString.h.inl:34
Definition SharedPointer.h:1640
Definition ActorDescContainer.h:40
Definition LevelInstanceContainerInstance.h:16
Definition LevelInstancePropertyOverrideAsset.h:32
Definition LevelInstancePropertyOverrideContainer.h:21
Definition WorldPartitionActorContainerID.h:9
Definition AssetData.h:162
Definition Guid.h:109
Definition SoftObjectPath.h:56