Navigation
API > API/Plugins > API/Plugins/DisplayCluster > API/Plugins/DisplayCluster/TMarginSet
Description
Returns a new margin set where each side is the maximum of:
- the current value, or
- the input value, if it is non-zero (i.e., treated as defined).
This allows selectively overriding margins while skipping undefined (zero) inputs.
| Name | GetMaxPerSideIfDefined |
| Type | function |
| Header File | /Engine/Plugins/Runtime/nDisplay/Source/DisplayCluster/Public/Math/MarginSet.h |
| Include Path | #include "Math/MarginSet.h" |
TMarginSet < T > GetMaxPerSideIfDefined
(
const TMarginSet < T > & In
) const
A new margin set with per-side conditional maximums.
Parameters
| Name | Remarks |
|---|---|
| In | The input margin set, where zero values are treated as "undefined". |