struct

FMiriGraphicsAsset

The .ui asset: design canvas resolution + the widget tree root. MDF text/binary is the on-disk form, consistent with .mat / .animgraph.

Module
MiriGraphics
Header
#include "MiriGraphics/FMiriGraphicsAsset.h"
Namespace
Mowo

Properties

TypeNameDescription
int32_tDesignWidthDefault 1920.
int32_tDesignHeightDefault 1080.
std::stringThemePathOptional .theme this screen resolves its colour/font/metric tokens against. Empty falls back to the host's project theme, then the built-in default theme, so every existing asset keeps the colours it had.
FMiriGraphicsScreenTransitionScreenTransition
FMiriGraphicsScreenInputInput
boolPooledDefault false.
std::vector<std::string>StylePathsThe .style assets this screen's widgets name with style:, searched in order.
std::stringControllerClass
std::vector<FMiriGraphicsExposedVar>Exposed
std::vector<FMiriGraphicsAnimation>Animations
FMiriGraphicsNodeRoot
static constexpr uint32_tkSchemaVersionBumped when the on-disk shape changes; files without the marker are 1. Default 1.
static constexpr const char*PackageClassThe class a screen's package declares (ROADMAP §23.6); SaveToFile keeps the package form for a file that already has one. Default "UIWidget".

Public functions

ReturnsNameDescription
std::stringSerializeToMDF
boolParseFromMDF
boolLoadFromFile
boolSaveToFileRefuses to overwrite a file this asset failed to load, and anything loaded from a newer schema: in both cases what the asset holds is less than what is on disk, and saving would write the difference away.
const FMiriGraphicsExposedVar*FindExposed
const FMiriGraphicsAnimation*FindAnimation
FMiriGraphicsAnimation*FindAnimation
FMiriGraphicsAssetMakeDefault
const char*AnchorName
EMiriGraphicsAnchorAnchorFromName
voidAnchorPresetVectorsThe anchor/alignment vectors a preset stands for.
const char*SlotAlignName
EMiriGraphicsSlotAlignSlotAlignFromName

Function details

SerializeToMDF

C++
std::string SerializeToMDF() const

ParseFromMDF

C++
bool ParseFromMDF(const std::string& text, std::string* outError = nullptr)

LoadFromFile

C++
bool LoadFromFile(const std::string& path, std::string* outError = nullptr)

SaveToFile

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

Refuses to overwrite a file this asset failed to load, and anything loaded from a newer schema: in both cases what the asset holds is less than what is on disk, and saving would write the difference away.

FindExposed

C++
const FMiriGraphicsExposedVar* FindExposed(const std::string& name) const

FindAnimation

C++
const FMiriGraphicsAnimation* FindAnimation(const std::string& name) const

FindAnimation

C++
FMiriGraphicsAnimation* FindAnimation(const std::string& name)

MakeDefault

C++
static FMiriGraphicsAsset MakeDefault()

AnchorName

C++
static const char* AnchorName(EMiriGraphicsAnchor anchor)

AnchorFromName

C++
static EMiriGraphicsAnchor AnchorFromName(const std::string& name)

AnchorPresetVectors

C++
static void AnchorPresetVectors(EMiriGraphicsAnchor anchor, Vec2& outMin, Vec2& outMax, Vec2& outAlignment)

The anchor/alignment vectors a preset stands for. The presets are exactly the ten UMG shortcuts, so a preset node and its expanded fractional form lay out identically.

SlotAlignName

C++
static const char* SlotAlignName(EMiriGraphicsSlotAlign align)

SlotAlignFromName

C++
static EMiriGraphicsSlotAlign SlotAlignFromName(const std::string& name)
Generated from MiriGraphics/FMiriGraphicsAsset.h via mirigraphics.json · Dec 5, 2026Version 1.1.0