Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/FEditorBulkData
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void UpdatePayload
(
FSharedBuffer InPayload, |
Replaces the existing payload (if any) with a new one. | Serialization/EditorBulkData.h | |
void UpdatePayload
(
FCompressedBuffer InPayload, |
Replaces the existing payload (if any) with a new one. | Serialization/EditorBulkData.h | |
void UpdatePayload
(
FSharedBufferWithID InPayload, |
Allows the existing payload to be replaced with a new one. | Serialization/EditorBulkData.h |
UpdatePayload(FSharedBuffer, UObject *)
Description
Replaces the existing payload (if any) with a new one. It is important to consider the ownership model of the payload being passed in to the method.
To pass in a raw pointer use 'FSharedBuffer::...(Data, Size)' to create a valid FSharedBuffer. Use 'FSharedBuffer::MakeView' if you want to retain ownership on the data being passed in, and use 'FSharedBuffer::TakeOwnership' if you are okay with the bulkdata object taking over ownership of it. The bulkdata object must own its internal buffer, so if you pass in a non-owned FSharedBuffer (ie by using 'FSharedBuffer::MakeView') then a clone of the data will be created internally and assigned to the bulkdata object.
| Name | UpdatePayload |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/Serialization/EditorBulkData.h |
| Include Path | #include "Serialization/EditorBulkData.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/Serialization/EditorBulkData.cpp |
void UpdatePayload
(
FSharedBuffer InPayload,
UObject * Owner
)
Parameters
| Name | Remarks |
|---|---|
| InPayload | The payload that this bulkdata object should reference. |
| Owner | The object that owns the bulkdata, or null to not associate with a UObject. |
See Also
UpdatePayload(FCompressedBuffer, UObject *)
Description
Replaces the existing payload (if any) with a new one. Note that FCompressedBuffers already know the FIoHash of the raw payload and so we do not recalculate it, making this method much faster for larger payloads than the other overloads.
| Name | UpdatePayload |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/Serialization/EditorBulkData.h |
| Include Path | #include "Serialization/EditorBulkData.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/Serialization/EditorBulkData.cpp |
void UpdatePayload
(
FCompressedBuffer InPayload,
UObject * Owner
)
Parameters
| Name | Remarks |
|---|---|
| InPayload | The payload that this bulkdata object should reference. |
| Owner | The object that owns the bulkdata, or null to not associate with a UObject. |
See Also
UpdatePayload(FSharedBufferWithID, UObject *)
Description
Allows the existing payload to be replaced with a new one.
To pass in a raw pointer use 'FSharedBuffer::...(Data, Size)' to create a valid FSharedBuffer. Use 'FSharedBuffer::MakeView' if you want to retain ownership on the data being passed in, and use 'FSharedBuffer::TakeOwnership' if you are okay with the bulkdata object taking over ownership of it. The bulkdata object must own its internal buffer, so if you pass in a non-owned FSharedBuffer (ie by using 'FSharedBuffer::MakeView') then a clone of the data will be created internally and assigned to the bulkdata object.
Use this override if you want compute PayloadId before updating the bulkdata
| Name | UpdatePayload |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/Serialization/EditorBulkData.h |
| Include Path | #include "Serialization/EditorBulkData.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/Serialization/EditorBulkData.cpp |
void UpdatePayload
(
FSharedBufferWithID InPayload,
UObject * Owner
)
Parameters
| Name | Remarks |
|---|---|
| InPayload | The payload to update the bulkdata with |
| Owner | The object that owns the bulkdata, or null to not associate with a UObject. |