Navigation
API > API/Runtime > API/Runtime/Engine
Defines a curve of interpolated points to evaluate over a given range
| Name | UCurveBase |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Classes/Curves/CurveBase.h |
| Include Path | #include "Curves/CurveBase.h" |
Syntax
UCLASS (Abstract, BlueprintType, MinimalAPI)
class UCurveBase :
public UObject ,
public FCurveOwnerInterface
Inheritance Hierarchy
- FCurveOwnerInterface → UCurveBase
- UObjectBase → UObjectBaseUtility → UObject → UCurveBase
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UCurveBase
(
const FObjectInitializer& ObjectInitializer |
Curves/CurveBase.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FOnUpdateCurve | TMulticastDelegate_TwoParams< void, UCurveBase *, EPropertyChangeType::Type > | Delegate called whenever the curve data is updated. | Curves/CurveBase.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AssetImportData | TObjectPtr< class UAssetImportData > | Curves/CurveBase.h |
|
|
| bOnCurveUpdateInteractive | bool | Curves/CurveBase.h | ||
| OnUpdateCurve | FOnUpdateCurve | Curves/CurveBase.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Create curve from CSV style comma-separated string. | Curves/CurveBase.h | ||
FString ExportAsJSONString() |
Exports the curve as a JSON string | Curves/CurveBase.h | |
void GetTimeRange
(
double& MinTime, |
Curves/CurveBase.h | ||
void GetTimeRange
(
float& MinTime, |
Get the time range across all curves | Curves/CurveBase.h |
|
void GetValueRange
(
float& MinValue, |
Get the value range across all curves | Curves/CurveBase.h |
|
void GetValueRange
(
double& MinValue, |
Curves/CurveBase.h | ||
| Imports the curve data from a JSON string. | Curves/CurveBase.h | ||
void ResetCurve() |
Reset all curve data | Curves/CurveBase.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void GetAssetRegistryTags
(
TArray< FAssetRegistryTag >& OutTags |
Curves/CurveBase.h | ||
virtual void GetAssetRegistryTags
(
FAssetRegistryTagsContext Context |
Override to ensure we write out the asset import data | Curves/CurveBase.h | |
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Curves/CurveBase.h | ||
virtual void PostInitProperties() |
Curves/CurveBase.h | ||
virtual void PostLoad() |
Curves/CurveBase.h |
Overridden from FCurveOwnerInterface
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void GetCurves
(
TAdderReserverRef< FRichCurveEditInfoConst > Curves |
Returns set of curves to edit. Must not release the curves while being edited. | Curves/CurveBase.h | |
| Returns set of curves to query. Must not release the curves while being edited. | Curves/CurveBase.h | ||
| Curves/CurveBase.h | |||
| Returns the owner(s) of the curve | Curves/CurveBase.h | ||
virtual bool IsValidCurve
(
FRichCurveEditInfo CurveInfo |
Validates that a previously retrieved curve is still valid for editing. | Curves/CurveBase.h | |
virtual void MakeTransactional() |
Called to make curve owner transactional | Curves/CurveBase.h | |
virtual void ModifyOwner() |
Called to modify the owner of the curve | Curves/CurveBase.h | |
virtual void OnCurveChanged
(
const TArray< FRichCurveEditInfo >& ChangedCurveEditInfos |
Called when any of the curves have been changed | Curves/CurveBase.h | |
virtual bool RepointCurveOwner
(
const FPackageReloadedEvent& InPackageReloadedEvent, |
Called during package reload to repoint a curve interface asset | Curves/CurveBase.h | |
virtual void SetOnCurveChangedIsInteractive
(
bool bInteractive |
Tell the curve owner that calls to OnCurveChanged are from an interactive drag | Curves/CurveBase.h |
Deprecated Variables
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ImportPath_DEPRECATED | FString | The filename imported to create this object. | Curves/CurveBase.h |