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
| Returns | Name | Description |
|---|---|---|
void | SetEntries | |
void | ClearEntries | |
MiriVec2 | ComputeDesiredSize | |
void | ArrangeChildren | |
int32_t | OnPaint | |
int32_t | GetNumChildren | |
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 overrideArrangeChildren
C++
void ArrangeChildren(const CGeometry& geo) overrideOnPaint
C++
int32_t OnPaint(const CMiriPaintArgs& args, const CGeometry& geo, CMiriRenderer& renderer, int32_t layerId) const overrideGetNumChildren
C++
int32_t GetNumChildren() const overrideGetChildAt
C++
TSharedPtr<MWidget> GetChildAt(int32_t index) const overrideGetTypeName
C++
const char* GetTypeName() const overrideGenerated from MiriGraphics/Widgets/MGraphicsWorldLayer.h via mirigraphics.json · Dec 5, 2026Version 1.1.0