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
| Signature | Name | Description |
|---|---|---|
CurveAsset() | CurveAsset | |
~CurveAsset() override | ~CurveAsset |
Public functions
| Returns | Name | Description |
|---|---|---|
bool | Load | |
void | Unload | |
bool | CreateGPU | |
void | DestroyGPU | |
bool | DestroyGPUIsFrameSafe | |
bool | SaveToFile | |
std::string | SerializeToString | Undo snapshots for the curve editor. |
bool | LoadFromString | |
std::vector<FChannel>& | GetChannels | |
const std::vector<FChannel>& | GetChannels | |
FRichCurve* | FindChannel | |
const FRichCurve* | FindChannel | |
FRichCurve& | EnsureChannel | |
float | Eval | Convenience evaluate: the named channel, or def when absent/empty. |
Function details
CurveAsset
C++
CurveAsset()~CurveAsset
C++
~CurveAsset() overrideLoad
C++
bool Load(const std::string& path) overrideUnload
C++
void Unload() overrideCreateGPU
C++
bool CreateGPU(const GPUContext& ctx) overrideDestroyGPU
C++
void DestroyGPU() overrideDestroyGPUIsFrameSafe
C++
bool DestroyGPUIsFrameSafe() const overrideSaveToFile
C++
bool SaveToFile(const std::string& path) constSerializeToString
C++
std::string SerializeToString() constUndo 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() constFindChannel
C++
FRichCurve* FindChannel(const std::string& name)FindChannel
C++
const FRichCurve* FindChannel(const std::string& name) constEnsureChannel
C++
FRichCurve& EnsureChannel(const std::string& name)Eval
C++
float Eval(const std::string& channel, float time, float def = 0.0f) constConvenience evaluate: the named channel, or def when absent/empty.
Generated from AssetSystem/Assets/CurveAsset.h via assetsystem.json · Nov 4, 2026Version 1.0.0