This struct is used for passing parameter values to the StaticDuplicateObject() method. 更多...
#include <UObjectGlobals.h>
Public 成员函数 | |
| COREUOBJECT_API | FObjectDuplicationParameters (UObject *InSourceObject, UObject *InDestOuter) |
| Constructor | |
Public 属性 | |
| EObjectFlags | ApplyFlags |
| A bitmask of EObjectFlags to set on each duplicate object created. 更多... | |
| EInternalObjectFlags | ApplyInternalFlags |
| A bitmask of EInternalObjectFlags to set on each duplicate object created. 更多... | |
| bool | bAssignExternalPackages = true |
| if an object being duplicated as an assigned external package, the duplicated object will try to assign an associated package to itself. 更多... | |
| TMap< UObject *, UObject * > * | CreatedObjects |
| If non-null, this will be filled with the list of objects created during the call to StaticDuplicateObject. 更多... | |
| UClass * | DestClass |
| Optional class to specify for the destination object. 更多... | |
| FName | DestName |
| The name to use for the duplicate of SourceObject | |
| UObject * | DestOuter |
| The object to use as the Outer for the duplicate of SourceObject. | |
| TMap< UObject *, UObject * > | DuplicationSeed |
| Objects to use for prefilling the dup-source => dup-target map used by StaticDuplicateObject. 更多... | |
| EObjectFlags | FlagMask |
| A bitmask of EObjectFlags to propagate to the duplicate of SourceObject (and its subobjects). | |
| EInternalObjectFlags | InternalFlagMask |
| A bitmask of EInternalObjectFlags to propagate to the duplicate of SourceObject (and its subobjects). | |
| uint32 | PortFlags |
| Any PortFlags to be applied when serializing. | |
| UObject * | SourceObject |
| The object to be duplicated | |
This struct is used for passing parameter values to the StaticDuplicateObject() method.
Only the constructor parameters are required to be valid - all other members are optional.
| EObjectFlags FObjectDuplicationParameters::ApplyFlags |
A bitmask of EObjectFlags to set on each duplicate object created.
Different from FlagMask in that only the bits from FlagMask which are also set on the source object will be set on the duplicate, while the flags in this value will always be set.
| EInternalObjectFlags FObjectDuplicationParameters::ApplyInternalFlags |
A bitmask of EInternalObjectFlags to set on each duplicate object created.
Different from FlagMask in that only the bits from FlagMask which are also set on the source object will be set on the duplicate, while the flags in this value will always be set.
| bool FObjectDuplicationParameters::bAssignExternalPackages = true |
if an object being duplicated as an assigned external package, the duplicated object will try to assign an associated package to itself.
The associated package should come from the DuplicationSeed.
If non-null, this will be filled with the list of objects created during the call to StaticDuplicateObject.
Key will be the source object; value will be the duplicated object
| UClass* FObjectDuplicationParameters::DestClass |
Optional class to specify for the destination object.
Objects to use for prefilling the dup-source => dup-target map used by StaticDuplicateObject.
Can be used to allow individual duplication of several objects that share a common Outer in cases where you don't want to duplicate the shared Outer but need references between the objects to be replaced anyway.
Objects in this map will NOT be duplicated Key should be the source object; value should be the object which will be used as its duplicate.