UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
StaticLightingDescriptors.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
3
#pragma once
4
5
#include "
UObject/SoftObjectPtr.h
"
6
7
class
AActor
;
8
class
UMapBuildDataRegistry
;
9
class
AMapBuildDataActor
;
10
11
#if WITH_EDITOR
12
13
struct
FLightingActorDesc
14
{
15
// Actor
16
FGuid
ActorGuid;
17
18
// Actor Package
19
FName
ActorPackage;
20
21
// All precomputed data guids associated with this actor
22
TArray<FGuid>
PrecomputedLightingGuids
;
23
24
// Actor
25
TSoftObjectPtr<AActor>
Actor
;
26
27
// CellLevelPackage Name
28
FName
CellLevelPackage
;
29
};
30
31
struct
FLightingCellDesc
32
{
33
TSoftObjectPtr<UMapBuildDataRegistry>
MapBuildData;
34
TSoftObjectPtr<AMapBuildDataActor>
DataActor
;
35
TArray<FGuid>
ActorInstanceGuids
;
36
FBox
Bounds;
37
TArray<FName>
DataLayers;
38
FName
RuntimeGrid;
39
40
// CellLevelPackage Name
41
FName
CellLevelPackage
;
42
};
43
44
struct
FStaticLightingDescriptors
45
{
46
struct
FActorPackage
47
{
48
FName
PackageName;
49
FGuid
Guid
;
50
FName
AssociatedLevelPackage
;
51
};
52
53
TMap<FGuid, FLightingActorDesc>
ActorGuidsToDesc
;
54
TMap<FName, FLightingCellDesc>
LightingCellsDescs
;
55
TArray<FActorPackage>
StaleMapDataActorsPackage
;
56
TArray<FActorPackage>
MapDataActorsPackage
;
57
UWorld
*
World
;
58
UNREALED_API
void
InitializeFromWorld
(
UWorld
*
World
);
59
60
UNREALED_API
UMapBuildDataRegistry
*
GetOrCreateRegistryForActor
(
AActor
*
Actor
);
61
UNREALED_API
UMapBuildDataRegistry
*
GetRegistryForActor
(
AActor
*
Actor
,
bool
bCreateIfNotFound
=
false
);
62
63
[[
nodiscard
]]
UNREALED_API
TArray<UMapBuildDataRegistry*>
GetAllMapBuildData
();
64
65
UNREALED_API
bool
CreateAndUpdateActors
();
66
67
UNREALED_API
static
void
Set
(
FStaticLightingDescriptors
*);
68
UNREALED_API
static
FStaticLightingDescriptors
*
Get
();
69
};
70
71
#endif
EARSessionType::World
@ World
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
EDatasmithElementType::Actor
@ Actor
SoftObjectPtr.h
EPropertyBagContainerType::Set
@ Set
EVariantTypes::Guid
@ Guid
AActor
Definition
Actor.h:257
AMapBuildDataActor
Definition
MapBuildDataActor.h:16
FName
Definition
NameTypes.h:617
TArray
Definition
Array.h:670
TMap
Definition
UnrealString.h.inl:34
UMapBuildDataRegistry
Definition
MapBuildDataRegistry.h:295
UWorld
Definition
World.h:918
ObjectPtr_Private::Get
FORCEINLINE T * Get(const FObjectPtr &ObjectPtr)
Definition
ObjectPtr.h:426
FGuid
Definition
Guid.h:109
TSoftObjectPtr
Definition
SoftObjectPtr.h:174
UE::Math::TBox< double >
Engine
Source
Runtime
Engine
Public
WorldPartition
StaticLightingData
StaticLightingDescriptors.h
Generated by
1.9.8