class

CurveAsset

CurveAsset (.mcurve) — named FRichCurve channels (UE's CurveFloat/CurveVector/CurveLinearColor collapsed into one asset type: one channel = float curve, three = vector, four = color). Channels evaluate independently; missing channels return the caller's default, so gameplay code degrades to its hardcoded value when a designer hasn't authored the curve yet.

Module
AssetSystem
Header
#include "AssetSystem/Assets/CurveAsset.h"
Namespace
Mowo

Constructors

SignatureNameDescription
CurveAsset()CurveAsset
~CurveAsset() override~CurveAsset

Public functions

ReturnsNameDescription
boolLoad
voidUnload
boolCreateGPU
voidDestroyGPU
boolDestroyGPUIsFrameSafe
boolSaveToFile
std::stringSerializeToStringUndo snapshots for the curve editor.
boolLoadFromString
std::vector<FChannel>&GetChannels
const std::vector<FChannel>&GetChannels
FRichCurve*FindChannel
const FRichCurve*FindChannel
FRichCurve&EnsureChannel
floatEvalConvenience evaluate: the named channel, or def when absent/empty.

Function details

CurveAsset

C++
CurveAsset()

~CurveAsset

C++
~CurveAsset() override

Load

C++
bool Load(const std::string& path) override

Unload

C++
void Unload() override

CreateGPU

C++
bool CreateGPU(const GPUContext& ctx) override

DestroyGPU

C++
void DestroyGPU() override

DestroyGPUIsFrameSafe

C++
bool DestroyGPUIsFrameSafe() const override

SaveToFile

C++
bool SaveToFile(const std::string& path) const

SerializeToString

C++
std::string SerializeToString() const

Undo snapshots for the curve editor.

LoadFromString

C++
bool LoadFromString(const std::string& text)

GetChannels

C++
std::vector<FChannel>& GetChannels()

GetChannels

C++
const std::vector<FChannel>& GetChannels() const

FindChannel

C++
FRichCurve* FindChannel(const std::string& name)

FindChannel

C++
const FRichCurve* FindChannel(const std::string& name) const

EnsureChannel

C++
FRichCurve& EnsureChannel(const std::string& name)

Eval

C++
float Eval(const std::string& channel, float time, float def = 0.0f) const

Convenience evaluate: the named channel, or def when absent/empty.

Generated from AssetSystem/Assets/CurveAsset.h via assetsystem.json · Nov 4, 2026Version 1.0.0