UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
WarnIfAssetsLoadedInScope.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
"
6
#include "
UObject/SoftObjectPath.h
"
7
8
class
UObject
;
9
struct
FProgramCounterSymbolInfo
;
10
struct
FAssetData
;
11
12
#if WITH_EDITOR
13
14
class
FWarnIfAssetsLoadedInScope
:
public
FNoncopyable
15
{
16
public
:
17
COREUOBJECT_API
FWarnIfAssetsLoadedInScope
();
18
COREUOBJECT_API
FWarnIfAssetsLoadedInScope
(
TConstArrayView<FAssetData>
InSpecificAssets
);
19
20
COREUOBJECT_API
~FWarnIfAssetsLoadedInScope
();
21
22
private
:
23
bool
IsEnabled
()
const
;
24
void
OnAssetLoaded
(
UObject
* InObject);
25
26
private
:
27
FDelegateHandle
AssetsLoadedHandle
;
28
TConstArrayView<FAssetData>
SpecificAssets;
29
30
struct
FLoadEvent
31
{
32
FSoftObjectPath
ObjectPath
;
33
TArray<FProgramCounterSymbolInfo>
Callstack;
34
};
35
36
TArray<FLoadEvent>
ObjectsLoaded;
37
};
38
39
#endif
CoreMinimal.h
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
ESanitizeNameTypeFlags::ObjectPath
@ ObjectPath
SoftObjectPath.h
FDelegateHandle
Definition
IDelegateInstance.h:14
FNoncopyable
Definition
UnrealTemplate.h:321
TArray
Definition
Array.h:670
UObject
Definition
Object.h:95
AudioLinkFactory_Private::IsEnabled
bool IsEnabled()
Definition
IAudioLinkFactory.cpp:13
FAssetData
Definition
AssetData.h:162
FProgramCounterSymbolInfo
Definition
GenericPlatformStackWalk.h:43
FSoftObjectPath
Definition
SoftObjectPath.h:56
Engine
Source
Runtime
CoreUObject
Public
Misc
WarnIfAssetsLoadedInScope.h
Generated by
1.9.8