FGeometry::MakeRoot

Makes a new geometry that is essentially the root of a hierarchy (has no parent transforms to inherit).

Windows
MacOS
Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Layout/Geometry.h

Include

#include "Layout/Geometry.h"

Syntax

static FGeometry MakeRoot
(
    const FVector2D & InLocalSize,
    const FSlateLayoutTransform & LayoutTransform
)

Remarks

Makes a new geometry that is essentially the root of a hierarchy (has no parent transforms to inherit). For a root Widget, the LayoutTransform is often the window DPI scale + window offset.

Returns

The new root geometry

Parameters

Parameter

Description

LocalSize

Size of the geometry in Local Space.

LayoutTransform

Layout transform of the geometry.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss