UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UnrealExporter.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3/*=============================================================================
4 UnrealExporter.h: Exporter class definition.
5=============================================================================*/
6
7#pragma once
8
9#include "CoreMinimal.h"
10
11class AActor;
12
24{
25public:
30
36
39
40 virtual ~FExportObjectInnerContext() = default;
41 virtual int32 GetObjectNumber() const { return 0; }
42
43protected:
44 friend class UExporter;
45
49
51
53
54public:
61 {
62 return ObjectToInnerMap.Find(InObj);
63 }
64
68 ENGINE_API virtual bool IsObjectSelected(const UObject* InObj) const;
69};
70
71#if WITH_EDITOR
73{
74public:
77
78 ENGINE_API virtual bool IsObjectSelected(const UObject* InObj) const override;
79 virtual int32 GetObjectNumber() const override { return SelectedActors.Num(); }
80
81private:
83
84 TSet<const AActor*> SelectedActors;
85};
86#endif
87
103ENGINE_API void ExportProperties( const class FExportObjectInnerContext* Context, FOutputDevice& Out, UClass* ObjectClass, uint8* Object, int32 Indent, UClass* DiffClass, uint8* Diff, UObject* Parent, uint32 PortFlags=0, UObject* ExportRootScope = NULL );
104
110
113
119ENGINE_API void DumpObject(const TCHAR *Label, UObject* Object);
120
#define NULL
Definition oodle2base.h:134
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
ENGINE_API void DumpObject(const TCHAR *Label, UObject *Object)
Definition UnrealExporter.cpp:1335
ENGINE_API FString DumpObjectToString(UObject *Object)
Definition UnrealExporter.cpp:1342
ENGINE_API FString DumpComponentsToString(UObject *Object)
Definition UnrealExporter.cpp:1322
ENGINE_API void ExportProperties(const class FExportObjectInnerContext *Context, FOutputDevice &Out, UClass *ObjectClass, uint8 *Object, int32 Indent, UClass *DiffClass, uint8 *Diff, UObject *Parent, uint32 PortFlags=0, UObject *ExportRootScope=NULL)
ENGINE_API void DumpComponents(UObject *Object)
Definition UnrealExporter.cpp:1295
uint8_t uint8
Definition binka_ue_file_header.h:8
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition Actor.h:257
Definition UnrealExporter.h:24
virtual ENGINE_API bool IsObjectSelected(const UObject *InObj) const
Definition UnrealExporter.cpp:557
TMap< UObject *, InnerList > ObjectToInnerMapType
Definition UnrealExporter.h:48
TArray< UObject * > InnerList
Definition UnrealExporter.h:47
ENGINE_API void AddObjectToInnerMap(UObject *InObject)
Definition UnrealExporter.cpp:537
const TArray< UObject * > * GetObjectInners(UObject *InObj) const
Definition UnrealExporter.h:60
virtual int32 GetObjectNumber() const
Definition UnrealExporter.h:41
FExportObjectInnerContext(const bool bIgnoredValue)
Definition UnrealExporter.h:38
ObjectToInnerMapType ObjectToInnerMap
Definition UnrealExporter.h:50
ENGINE_API FExportObjectInnerContext()
Definition UnrealExporter.cpp:515
virtual ~FExportObjectInnerContext()=default
Definition OutputDevice.h:133
Definition Array.h:670
Definition UnrealString.h.inl:34
Definition Class.h:3793
Definition Exporter.h:23
Definition Object.h:95