FBlueprintEditorUtils::CreateNewGraph

Creates a new empty graph.

Windows
MacOS
Linux

Syntax

static UEdGraph * CreateNewGraph
(
    UObject * ParentScope,
    const FName & GraphName,
    TSubclassOf< class UEdGraph > GraphClass,
    TSubclassOf< class UEdGraphSchema > SchemaClass
)

Remarks

Creates a new empty graph.

Returns

null if it fails, else.

Parameters

Parameter

Description

ParentScope

The outer of the new graph (typically a blueprint).

GraphName

Name of the graph to add.

SchemaClass

Schema to use for the new graph.

References

Module

UnrealEd

Header

Editor/UnrealEd/Public/Kismet2/BlueprintEditorUtils.h

Source

Editor/UnrealEd/Private/Kismet2/BlueprintEditorUtils.cpp

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback