Navigation
API > API/Runtime > API/Runtime/Core
Lays out up a struct at runtime, in hopefully the same way as a compiler, and returns the offset of each member as it's added.
| Name | FStructBuilder |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/StructBuilder.h |
| Include Path | #include "Misc/StructBuilder.h" |
Syntax
class FStructBuilder
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
constexpr FStructBuilder() |
Misc/StructBuilder.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Alignment | int32 | The alignment of the struct. | Misc/StructBuilder.h | |
| EndOfLastMember | int32 | The offset from the start of the struct to the end of the last added member. | Misc/StructBuilder.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 AddMember
(
int32 MemberSize, |
Adds a new member to the end of the struct. | Misc/StructBuilder.h | |
int32 GetAlignment() |
Returns the current alignment of the struct. | Misc/StructBuilder.h | |
int32 GetSize() |
Returns the current size of the struct. | Misc/StructBuilder.h |