class

MGraphicsWorldLayer

Hosts world-anchored widget trees on the screen-space overlay: each child is placed at the projected screen position of the entity it belongs to, scaled by distance and faded out past its draw distance. This is the projection half of a UMG WidgetComponent — the tree is real Miri UI, its placement comes from the camera rather than from a canvas slot. Painted back to front so a nameplate nearer the camera covers one behind it.

Module
MiriGraphics
Header
#include "MiriGraphics/Widgets/MGraphicsWorldLayer.h"
Namespace
Miri

Public functions

ReturnsNameDescription
voidSetEntries
voidClearEntries
MiriVec2ComputeDesiredSize
voidArrangeChildren
int32_tOnPaint
int32_tGetNumChildren
TSharedPtr<MWidget>GetChildAt
const char*GetTypeName

Function details

SetEntries

C++
void SetEntries(std::vector<FEntry> entries)

ClearEntries

C++
void ClearEntries()

ComputeDesiredSize

C++
MiriVec2 ComputeDesiredSize(float scale) const override

ArrangeChildren

C++
void ArrangeChildren(const CGeometry& geo) override

OnPaint

C++
int32_t OnPaint(const CMiriPaintArgs& args, const CGeometry& geo, CMiriRenderer& renderer, int32_t layerId) const override

GetNumChildren

C++
int32_t GetNumChildren() const override

GetChildAt

C++
TSharedPtr<MWidget> GetChildAt(int32_t index) const override

GetTypeName

C++
const char* GetTypeName() const override
Generated from MiriGraphics/Widgets/MGraphicsWorldLayer.h via mirigraphics.json · Dec 5, 2026Version 1.1.0