UCompositeDataTable

Data table composed of a stack of other data tables.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/CompositeDataTable.h

Include

#include "Engine/CompositeDataTable.h"

Syntax

class UCompositeDataTable : public UDataTable

Remarks

Data table composed of a stack of other data tables.

Variables

Name Description

Protected variable

uint8: 1

 

bIsLoading

True if this asset is currently being loaded; false otherwise

Protected variable

uint8: 1

 

bShouldNotClearParentTablesOnEmpty

If this is true then the parent table array will not be cleared when EmptyTable is called

Protected variable

uint8: 1

 

bUpdatingParentTables

True if we're already in the middle of updating parent tables for this asset

Protected variable

TArray< UDataTa...

 

OldParentTables

Temporary copy used to detect changes so we can update delegates correctly on removal

Protected variable

TArray< UDataTa...

 

ParentTables

Parent tables Tables with higher indices override data in tables with lower indices

Protected variable

TMap< FName, ER...

 

RowSourceMap

Constructors

Name Description

Public function

UCompositeDataTable

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

void

 

AppendParentTables

(
    const TArray< UDataTable* >& ...
)

Support for runtime modification of parent tables Be aware this can be slow and can cause hitches during gameplay

Protected function

void

 

EmptyCompositeTable

(
    bool bClearParentTables
)

Empties the table if bClearParentTables is false then the row map will be cleared but the parent table array won't be changed

Protected function Const

const UCompo...

 

FindLoops

(
    TArray< const UCompositeDataTable&...
)

Searches the parent tables to see if there are any loops.

Public function Const

ERowState

 

GetRowState

(
    FName RowName
)

Protected function

void

 

OnParentTablesUpdated

(
    EPropertyChangeType::Type ChangeTyp...
)

Protected function

void

 

UpdateCachedRowMap

(
    bool bWarnOnInvalidChildren
)

Overridden from UDataTable

Name Description

Public function Virtual

void

 

AddRow

(
    FName RowName,
    const FTableRowBase& RowData
)

Copies RowData into table.

Public function Virtual

void

 

CleanBeforeStructChange()

Public function Virtual

void

 

EmptyTable()

Table management overrides. Composite data tables don't currently add or remove rows.

Public function Virtual

void

 

RemoveRow

(
    FName RowName
)

Removes a single row from the DataTable by name. Just returns if row is not found.

Public function Virtual

void

 

RestoreAfterStructChange()

Overridden from UObject

Name Description

Public function Virtual

void

 

GetPreloadDependencies

(
    TArray< UObject* >& OutDeps
)

Called during cooking.

Public function Virtual

void

 

PostEditChangeProperty

(
    FPropertyChangedEvent& PropertyCha...
)

Called when a property on this object has been modified externally

Public function Virtual

void

 

PostEditUndo()

Called after applying a transaction to the object.

Public function Virtual

void

 

PostLoad()

Do any object-specific cleanup required immediately after loading an object.

Public function Virtual

void

 

Serialize

(
    FArchive& Ar
)

Handles reading, writing, and reference collecting using FArchive.

Enums

Name

Description

Public enum

ERowState

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss