engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
FObjectDuplicationParameters结构体 参考

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.

类成员变量说明

◆ ApplyFlags

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.

◆ ApplyInternalFlags

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.

◆ bAssignExternalPackages

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.

◆ CreatedObjects

TMap<UObject*,UObject*>* FObjectDuplicationParameters::CreatedObjects

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

◆ DestClass

UClass* FObjectDuplicationParameters::DestClass

Optional class to specify for the destination object.

警告
: MUST BE SERIALIZATION COMPATIBLE WITH SOURCE OBJECT, AND DOES NOT WORK WELL FOR OBJECT WHICH HAVE COMPLEX COMPONENT HIERARCHIES!!!

◆ DuplicationSeed

TMap<UObject*,UObject*> FObjectDuplicationParameters::DuplicationSeed

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.


该结构体的文档由以下文件生成: