本文整理汇总了C++中UEdGraphNode::PrepareForCopying方法的典型用法代码示例。如果您正苦于以下问题:C++ UEdGraphNode::PrepareForCopying方法的具体用法?C++ UEdGraphNode::PrepareForCopying怎么用?C++ UEdGraphNode::PrepareForCopying使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UEdGraphNode
的用法示例。
在下文中一共展示了UEdGraphNode::PrepareForCopying方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: PrepareForCopying
void UBehaviorTreeGraphNode_CompositeDecorator::PrepareForCopying()
{
Super::PrepareForCopying();
if (BoundGraph)
{
for (int32 i = 0; i < BoundGraph->Nodes.Num(); i++)
{
UEdGraphNode* Node = BoundGraph->Nodes[i];
Node->PrepareForCopying();
}
}
}
示例2: CopySelectedNodes
void FNiagaraEditor::CopySelectedNodes()
{
// Export the selected nodes and place the text on the clipboard
TSharedPtr<SGraphEditor> CurrentGraphEditor = NodeGraphEditorPtr.Pin();
FGraphPanelSelectionSet SelectedNodes = CurrentGraphEditor->GetSelectedNodes();
FString ExportedText;
int32 CopySubNodeIndex = 0;
for (FGraphPanelSelectionSet::TIterator SelectedIter(SelectedNodes); SelectedIter; ++SelectedIter)
{
UEdGraphNode* Node = Cast<UEdGraphNode>(*SelectedIter);
if (Node == nullptr)
{
SelectedIter.RemoveCurrent();
continue;
}
Node->PrepareForCopying();
}
FEdGraphUtilities::ExportNodesToText(SelectedNodes, ExportedText);
FPlatformMisc::ClipboardCopy(*ExportedText);
}