Writer::setFrom

Initialize the [Writer](API\Plugins\RigLogicLib\dna\Writer) from the given [Reader](API\Plugins\RigLogicLib\dna\Reader). @note This function copies all the data from the given [Reader](API\Plugins\RigLogicLib\dna\Reader) into the [Writer](API\Plugins\RigLogicLib\dna\Writer) instance, by calling each getter function of the [Reader](API\Plugins\RigLogicLib\dna\Reader), and passing the return values to the matching setter functions in the [Writer](API\Plugins\RigLogicLib\dna\Writer). It is implemented in the abstract class itself to provide the functionality for all DNA Writers.

Windows
MacOS
Linux

References

Module

RigLogicLib

Header

/Engine/Plugins/Animation/RigLogic/Source/RigLogicLib/Public/dna/Writer.h

Include

#include "dna/Writer.h"

Source

/Engine/Plugins/Animation/RigLogic/Source/RigLogicLib/Private/dna/Writer.cpp

Syntax

void setFrom
(
    const Reader * source,
    DataLayer layer,
    MemoryResource * memRes
)

Remarks

Initialize the Writer from the given Reader. @note This function copies all the data from the given Reader into the Writer instance, by calling each getter function of the Reader, and passing the return values to the matching setter functions in the Writer. It is implemented in the abstract class itself to provide the functionality for all DNA Writers.

Parameters

Parameter

Description

source

The source DNAReader from which the data needs to be copied.

layer

Limit which layers should be taken over from the given source reader.

memRes

Optional memory resource to use for temporary allocations during copying.

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