Navigation
API > API/Editor > API/Editor/UnrealEd
Used to serialize data for copying/pasting to/from spreadsheets (in Excel or Sheets). Properties can be customized to be processed in a specific fashion.
| Name | USheetSerializationSubSystem |
| Type | class |
| Header File | /Engine/Source/Editor/UnrealEd/Public/SheetSerialization.h |
| Include Path | #include "SheetSerialization.h" |
Syntax
UCLASS (MinimalAPI)
class USheetSerializationSubSystem : public UEditorSubsystem
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → USubsystem → UDynamicSubsystem → UEditorSubsystem → USheetSerializationSubSystem
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CellGetters | TMap< FString, FFillCellsFromProperty > | SheetSerialization.h | ||
| HeaderGetters | TMap< FString, FFillHeadersFromProperty > | SheetSerialization.h | ||
| PropertySetters | TMap< FString, FSetPropertyFromCells > | SheetSerialization.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FString ExportForSheet
(
TArray< FDataTableRowData >& Rows, |
Serialize the specified rows from the given data table into a format able to be pasted into a spreadsheet, optionally including headers. | SheetSerialization.h | |
int32 FillCellsFromObject
(
FSheetData& SheetData, |
Fill cell values into the sheet data for the given object, returning the number of rows used. | SheetSerialization.h | |
int32 FillCellsFromProperty
(
FSheetData& SheetData, |
Fill cell values into the sheet data for the given property, returning the number of rows used. | SheetSerialization.h | |
int32 FillHeadersFromProperty
(
FSheetData& SheetData, |
Fill headers into the sheet data for the given property, returning the number of columns used. | SheetSerialization.h | |
int32 FillHeadersFromStruct
(
FSheetData& SheetData, |
Fill headers into the sheet data for the given struct, returning the number of columns used. | SheetSerialization.h | |
bool ImportFromSheet
(
const FString& SheetText, |
Deserialize clipboard text from a spreadsheet into the given data table, replacing all of its contents with that from the spreadsheet. | SheetSerialization.h | |
bool ImportRowFromSheet
(
const FString& SheetText, |
Deserialize clipboard text from a spreadsheet into a single row of the given data table, replacing the row's contents with that from the spreadsheet Does not change the row's name, but outputs the new desired row name so that it may be changed separately. | SheetSerialization.h | |
void SetObjectFromCells
(
FSheetData& SheetData, |
Sets the value for the object based on cells from the sheet data at the given starting position. | SheetSerialization.h | |
void SetPropertyFromCells
(
FSheetData& SheetData, |
Sets the value for the property of the object based on cells from the sheet data at the given starting position. | SheetSerialization.h |
Public Virtual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Deinitialize() |
SheetSerialization.h | ||
virtual void Initialize
(
FSubsystemCollectionBase& Collection |
SheetSerialization.h | ||
virtual void RegisterCellGetter
(
const FString& PropertyClassName, |
Register the function to get cell values from the given property class. | SheetSerialization.h | |
virtual void RegisterHeaderGetter
(
const FString& PropertyClassName, |
Register the function to get column headers from the given property class. | SheetSerialization.h | |
virtual void RegisterPropertySetter
(
const FString& PropertyClassName, |
Register the function to set the value of the given property class from cell values. | SheetSerialization.h | |
virtual void UnregisterCellGetter
(
const FString& PropertyClassName |
Unregister the function to get cell values from the given property class. | SheetSerialization.h | |
virtual void UnregisterHeaderGetter
(
const FString& PropertyClassName |
Unregister the function to get column headers from the given property class. | SheetSerialization.h | |
virtual void UnregisterPropertySetter
(
const FString& PropertyClassName |
Unregister the function to set the value of the given property class from cell values. | SheetSerialization.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Escape the cell data for proper spreadsheet formatting. | SheetSerialization.h | ||
static USheetSerializationSubSystem * Get() |
Gets the singleton. | SheetSerialization.h | |
| Unescape the cell data coming from a spreadsheet. | SheetSerialization.h |