unreal.DNACopyPolicy¶
- class unreal.DNACopyPolicy¶
Bases:
EnumBaseControls whether SetDNAReader takes ownership of an independent copy of the source reader or aliases the input shared pointer directly.
Copy (default): the asset performs a deep copy of the source reader. This isolates the asset from caller-side mutation.
Alias: the asset stores the input TSharedPtr<IDNAReader> directly. Cheaper, but the asset’s reader is then sensitive to caller-side mutation and retains all layers the source had. It is safe today because IDNAReader exposes only one non-const method (Unload), which is reachable only in non-editor builds. If a new mutator is added to IDNAReader, every Alias call site must be re-audited for cross-asset mutation hazards.
C++ Source:
Plugin: RigLogic
Module: RigLogicModule
File: DNACommon.h
- ALIAS: DNACopyPolicy = Ellipsis¶
1
- COPY: DNACopyPolicy = Ellipsis¶
0