FObjectInstancingGraph::FObjectInstancingGraph( UObject* DestinationSubobjectRoot ) : SourceRoot(NULL) , DestinationRoot(NULL) , bCreatingArchetype(false) , bEnableSubobjectInstancing(true) , bLoadingObject(false) { SetDestinationRoot(DestinationSubobjectRoot); }
void FObjectInstancingGraph::AddNewObject(class UObject* ObjectInstance) { if (HasDestinationRoot()) { AddNewInstance(ObjectInstance); } else { SetDestinationRoot(ObjectInstance); } }
void FObjectInstancingGraph::AddNewObject(class UObject* ObjectInstance, UObject* InArchetype /*= nullptr*/) { if (HasDestinationRoot()) { AddNewInstance(ObjectInstance, InArchetype); } else { SetDestinationRoot(ObjectInstance, InArchetype); } }