DreamGUI
类参考

UDreamLayoutContainerGridPanel

UMG Grid Panel

本页由 DreamGUIReferenceDocs commandlet 从反射生成,正文是头文件注释的原文(英文),所以不翻译——这样它永远和代码一致。概念讲解见核心概念。

Inherits from UDreamPanelLayoutBase.

Declared in Public/Core/Components/DreamPanelLayouts.h.

UMG Grid Panel

Properties

NameTypeCategoryIn the details panelFrom BlueprintDescription
PaddingFMarginGridPanelyesSetPadding
SpacingFVector2DGridPanelyesSetSpacing
ColumnFillTArray<float>GridPanelyesSetColumnFill
RowFillTArray<float>GridPanelyesSetRowFill

Functions

FunctionKindDescription
void ClearFill()callableDrop every fill coefficient, so every track goes back to sizing itself from its children.
void SetColumnFill(TArray<float> Value)callableSet Column Fill
void SetColumnFillAt(int32 InColumnIndex, float InCoefficient)callableUMG's UGridPanel::SetColumnFill(Index, Coefficient), under a name that says it addresses one track.
void SetPadding(FMargin Value)callableSet Padding
void SetRowFill(TArray<float> Value)callableSet Row Fill
void SetRowFillAt(int32 InRowIndex, float InCoefficient)callableSet Row Fill At
void SetSpacing(FVector2D Value)callableSet Spacing

Compared with UMG

Every Blueprint-facing member of the UMG class, and where it went. adopt: same name, same meaning. map: here under another name or on another type. reject: deliberately absent, with the reason.

UMGMemberStatusHereNote
UGridPanelColumnFilladoptColumnFill
UGridPanelRowFilladoptRowFill
UGridPanelAddChildToGridmapAddChildOne slot class here means one verb; the row and column are set on the slot it returns.
UGridPanelSetColumnFillmapSetColumnFillAtUMG's takes an index and a coefficient. The plain name is already the whole-array BlueprintSetter for ColumnFill and two reflected functions cannot share a name, so the per-track form carries the suffix.
UGridPanelSetRowFillmapSetRowFillAtAs SetColumnFill.
UGridPanelClearFilladoptClearFill

本页目录