UCurveBase

Copyright Epic Games, Inc.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Curves/CurveBase.h

Include

#include "Curves/CurveBase.h"

Syntax

class UCurveBase :
    public UObject,
    public FCurveOwnerInterface

Remarks

Copyright Epic Games, Inc. All Rights Reserved. Copyright Epic Games, Inc. All Rights Reserved. Defines a curve of interpolated points to evaluate over a given range

Variables

Name Description

Public variable

TObjectPtr< cla...

 

AssetImportData

Public variable

FOnUpdateCurve

 

OnUpdateCurve

Constructors

Name Description

Public function

UCurveBase

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

TArray< FStr...

 

CreateCurveFromCSVString

(
    const FString& InString
)

Create curve from CSV style comma-separated string.

Public function Const

FString

 

ExportAsJSONString()

Exports the curve as a JSON string

Public function Const

void

 

GetTimeRange

(
    double& MinTime,
    double& MaxTime
)

Public function Const

void

 

GetTimeRange

(
    float& MinTime,
    float& MaxTime
)

Get the time range across all curves

Public function Const

void

 

GetValueRange

(
    float& MinValue,
    float& MaxValue
)

Get the value range across all curves

Public function Const

void

 

GetValueRange

(
    double& MinValue,
    double& MaxValue
)

Public function Virtual

void

 

ImportFromJSONString

(
    const FString& InString,
    TArray< FString >& OutProblems
)

Imports the curve data from a JSON string.

Public function

void

 

ResetCurve()

Reset all curve data

Overridden from UObject

Name Description

Public function Virtual Const

void

 

GetAssetRegistryTags

(
    TArray< FAssetRegistryTag >& OutTa...
)

Override to ensure we write out the asset import data

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.

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

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

FOnUpdateCurve

Delegate called whenever the curve data is updated.

Deprecated Variables

Name Description

Public variable

FString

 

ImportPath_DEPRECATED

The filename imported to create this object.