FRepLayout::CreateShadowBuffer

Creates and initialize a new Shadow Buffer.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/Net/RepLayout.h

Include

#include "Net/RepLayout.h"

Source

/Engine/Source/Runtime/Engine/Private/RepLayout.cpp

Syntax

FRepStateStaticBuffer CreateShadowBuffer
(
    const FConstRepObjectDataBuffer Source
) const

Remarks

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.

Parameters

Parameter

Description

Source

Memory buffer storing object property data.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss