Navigation
API > API/Plugins > API/Plugins/RigLogicModule > API/Plugins/RigLogicModule/UDNA
Description
Alias or Copy DNA Reader and optionally reinitialize RigLogic with the new DNA data.
Pass EDNACopyPolicy::Alias to prevent creation of a deep-copy of the given DNA and instead just take the given shared pointer as-is.
Pass ERigLogicInitPolicy::Defer when this call is immediately followed by another operation that rebuilds the runtime context (e.g. RestoreLegacyUEMHCCompatibility) to avoid constructing an FRigLogic that will be thrown away.
| Name | SetDNAReader |
| Type | function |
| Header File | /Engine/Plugins/Animation/RigLogic/Source/RigLogicModule/Public/DNA.h |
| Include Path | #include "DNA.h" |
| Source | /Engine/Plugins/Animation/RigLogic/Source/RigLogicModule/Private/DNA.cpp |
void SetDNAReader
(
TSharedPtr < IDNAReader > SourceDNAReader,
EDNACopyPolicy CopyPolicy,
ERigLogicInitPolicy InitPolicy
)