Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FRepLayout
Description
Creates and initialize a new Shadow Buffer.
Shadow Data / Shadow States are used to cache property data so that the Object's state can be compared between frames to see if any properties have changed. They are also used on clients to keep track of RepNotify state.
This includes:
- Allocating memory for all Properties in the class.
- Constructing instances of each Property.
- Copying the values of the Properties from given object.
| Name | CreateShadowBuffer |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Net/RepLayout.h |
| Include Path | #include "Net/RepLayout.h" |
| Source | /Engine/Source/Runtime/Engine/Private/RepLayout.cpp |
FRepStateStaticBuffer CreateShadowBuffer
(
const FConstRepObjectDataBuffer Source
) const
Parameters
| Name | Remarks |
|---|---|
| Source | Memory buffer storing object property data. |