UCurveTable

Imported spreadsheet table as curves.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/CurveTable.h

Include

#include "Engine/CurveTable.h"

Syntax

class UCurveTable :
    public UObject,
    public FCurveOwnerInterface

Remarks

Imported spreadsheet table as curves.

Variables

Name Description

Public variable

UAssetImportDat...

 

AssetImportData

Protected variable

ECurveTableMode

 

CurveTableMode

Protected variable

TMap< FName, FR...

 

RowMap

Map of name of row to row data structure.

Constructors

Name Description

Public function

UCurveTable

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

FRichCurve &

 

AddRichCurve

(
    FName RowName
)

Public function

FSimpleCurve...

 

AddSimpleCurve

(
    FName RowName
)

Public function

TArray< FStr...

 

CreateTableFromCSVString

(
    const FString& InString,
    ERichCurveInterpMode InterpMode
)

Create table from CSV style comma-separated string.

Public function

TArray< FStr...

 

CreateTableFromJSONString

(
    const FString& InString,
    ERichCurveInterpMode InterpMode
)

Create table from JSON string. RowCurve must be defined before calling this function.

Public function

TArray< FStr...

 

CreateTableFromOtherTable

(
    const UCurveTable* InTable
)

Create table from another Curve Table

Public function Virtual

void

 

EmptyTable()

Empty the table info (will not clear RowCurve)

Public function Const

FRealCurve &...

 

FindCurve

(
    FName RowName,
    const FString& ContextString,
    bool bWarnIfNotFound
)

Function to find the row of a table given its name.

Public function Const

FRichCurve &...

 

FindRichCurve

(
    FName RowName,
    const FString& ContextString,
    bool bWarnIfNotFound
)

Public function Const

FSimpleCurve...

 

FindSimpleCurve

(
    FName RowName,
    const FString& ContextString,
    bool bWarnIfNotFound
)

Public function Const

ECurveTableM...

 

GetCurveTableMode()

Public function Static

int32

 

GetGlobalCachedCurveID()

Public function

const TMap< ...

 

GetRichCurveRowMap()

Public function Const

const TMap< ...

 

GetRichCurveRowMap()

Public function

const TMap< ...

 

GetRowMap()

Public function Const

const TMap< ...

 

GetRowMap()

Public function

const TMap< ...

 

GetSimpleCurveRowMap()

Public function Const

const TMap< ...

 

GetSimpleCurveRowMap()

Public function Const

FString

 

GetTableAsCSV()

Output entire contents of table as CSV

Public function Const

FString

 

GetTableAsJSON()

Output entire contents of table as JSON

Public function Const

FString

 

GetTableAsString()

Output entire contents of table as a string

Public function Static

void

 

InvalidateAllCachedCurves()

Protected function Static

FName

 

MakeValidName

(
    const FString& InString
)

Util that removes invalid chars and then make an FName

Public function

FOnCurveTabl...

 

OnCurveTableChanged()

Gets a multicast delegate that is called any time the curve table changes.

Public function Const

bool

 

WriteTableAsJSON

(
    const TSharedRef< TJsonWriter< Char...,
    bool bAsArray
)

Output entire contents of table as JSON.

Overridden from UObject

Name Description

Public function Virtual

void

 

FinishDestroy()

Called to finish destroying the object.

Public function Virtual Const

void

 

GetAssetRegistryTags

(
    TArray< FAssetRegistryTag >& OutTa...
)

Gathers a list of asset registry searchable tags which are name/value pairs with some type information This only needs to be implemented for asset objects

Public function Virtual

void

 

PostEditChangeProperty

(
    FPropertyChangedEvent& PropertyCha...
)

Called when a property on this object has been modified externally

Public function Virtual

void

 

PostInitProperties()

Called after the C++ constructor and after the properties have been initialized, including those loaded from config.

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.

Overridden from FCurveOwnerInterface

Name Description

Public function Virtual

TArray< FRic...

 

GetCurves()

Returns set of curves to query. Must not release the curves while being edited.

Public function Virtual Const

TArray< FRic...

 

GetCurves()

Returns set of curves to edit. Must not release the curves while being edited.

Public function Virtual Const

TArray< cons...

 

GetOwners()

Returns the owner(s) of the curve

Public function Virtual Const

bool

 

HasRichCurves()

Whether the curves returned by GetCurves are rich or simple curves

Public function Virtual

bool

 

IsValidCurve

(
    FRichCurveEditInfo CurveInfo
)

Validates that a previously retrieved curve is still valid for editing.

Public function Virtual

void

 

MakeTransactional()

Called to make curve owner transactional

Public function Virtual

void

 

ModifyOwner()

Called to modify the owner of the curve

Public function Virtual

void

 

OnCurveChanged

(
    const TArray< FRichCurveEditInfo > ...
)

Called when any of the curves have been changed

Public function Virtual Const

bool

 

RepointCurveOwner

(
    const FPackageReloadedEvent& InPac...,
    FCurveOwnerInterface*& OutNewC...
)

Called during package reload to repoint a curve interface asset

Typedefs

Name

Description

FOnCurveTableChanged

Constants

Name

Description

GlobalCachedCurveID

Deprecated Variables

Name Description

Public variable

FString

 

ImportPath_DEPRECATED

The filename imported to create this object.

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