UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
LinkerLoadImportBehavior.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
3
#pragma once
4
#include "
UObject/ObjectHandle.h
"
5
6
#if UE_WITH_OBJECT_HANDLE_LATE_RESOLVE
7
8
class
FLinkerLoad
;
9
struct
FObjectImport
;
10
class
IAssetRegistryInterface
;
11
12
namespace
UE::LinkerLoad
13
{
14
enum class
EImportBehavior
:
uint8
15
{
16
Eager
= 0,
17
// @TODO: OBJPTR: we want to permit lazy background loading in the future
18
//LazyBackground,
19
LazyOnDemand
,
20
};
21
22
23
EImportBehavior
GetPropertyImportLoadBehavior
(
const
FObjectImport
& Import,
const
FLinkerLoad
&
LinkerLoad
);
24
32
bool
TryLazyImport
(
const
IAssetRegistryInterface
&
AssetRegistry
,
const
FObjectImport
& Import,
const
FLinkerLoad
&
LinkerLoad
,
FObjectPtr
& ObjectPtr);
33
40
bool
CanLazyImport
(
const
IAssetRegistryInterface
&
AssetRegistry
,
const
FObjectImport
& Import,
const
FLinkerLoad
&
LinkerLoad
);
41
48
bool
TryLazyLoad
(
const
UClass
&
Class
,
const
FSoftObjectPath
&
ObjectPath
,
TObjectPtr<UObject>
&
OutObjectPtr
);
49
52
EImportBehavior
FindLoadBehavior
(
const
UClass
&
Class
);
53
55
bool
IsImportLazyLoadEnabled();
56
57
58
}
59
60
#endif
// UE_WITH_OBJECT_HANDLE_LATE_RESOLVE
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
ESanitizeNameTypeFlags::ObjectPath
@ ObjectPath
ObjectHandle.h
EPackageLoader::LinkerLoad
@ LinkerLoad
ERepBuildType::Class
@ Class
uint8
uint8_t uint8
Definition
binka_ue_file_header.h:8
AssetRegistry
Definition
AssetRegistry.Build.cs:6
FLinkerLoad
Definition
LinkerLoad.h:124
IAssetRegistryInterface
Definition
AssetRegistryInterface.h:454
UClass
Definition
Class.h:3793
FObjectImport
Definition
ObjectResource.h:444
FObjectPtr
Definition
ObjectPtr.h:55
FSoftObjectPath
Definition
SoftObjectPath.h:56
TObjectPtr
Definition
ObjectPtr.h:488
Engine
Source
Runtime
CoreUObject
Internal
UObject
LinkerLoadImportBehavior.h
Generated by
1.9.8