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