# Custom Blueprint nodes are not working in 4.7 preview 2

**URL:** <https://forums.unrealengine.com/t/custom-blueprint-nodes-are-not-working-in-4-7-preview-2/303547>\
**Category:** Blueprint\
**Tags:** unreal-engine, bug-report, CPP, Blueprint, question\
**Created:** [January 10, 2015, 3:05pm UTC](https://forums.unrealengine.com/t/custom-blueprint-nodes-are-not-working-in-4-7-preview-2/303547 "2015-01-10T15:05:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![serioussam909](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@serioussam909](https://forums.unrealengine.com/u/serioussam909)\
**Post date:** [January 10, 2015, 3:05pm UTC](https://forums.unrealengine.com/t/custom-blueprint-nodes-are-not-working-in-4-7-preview-2/303547/1 "2015-01-10T15:05:18Z")

</div>

I’m trying to add a custom blueprint node, but it does not show up in the editor.  
Created an empty project and tried to follow this guide

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

Here’s my code:

MyEdGraphNode.h:

```
#pragma once

#include "EdGraph/EdGraphNode.h"
#include "MyEdGraphNode.generated.h"

/**
 * 
 */
UCLASS()
class MYPROJECT_API UMyEdGraphNode : public UEdGraphNode
{
	GENERATED_BODY()

	UFUNCTION(BlueprintPure, meta = (FriendlyName = "Hello World", CompactNodeTitle = "HelloWorld", Keywords = "String Hello World"), Category = Game)
	static FText HelloWorld();
 
 	
};

```

MyEdGraphNode.cpp:

```
#include "MyProject.h"
#include "MyEdGraphNode.h"

FText UMyEdGraphNode::HelloWorld()
{
	return FText::FromString("Hello World");
}

```

Looks like that the bug was introduced somewhere between revisions  
1dd24d607310d0ad6c6eac15cf6ff9d8ffffba11 and  
d352f8edad29ac619b62081ae8ac695738f35ef3 in branch 4.7

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [January 16, 2015, 12:19am UTC](https://forums.unrealengine.com/t/custom-blueprint-nodes-are-not-working-in-4-7-preview-2/303547/2 "2015-01-16T00:19:47Z")

</div>

Hi serioussam909,

Subclassing EdGraphNode is actually not the correct way to create a new custom node for your Blueprints. I’ll make myself a note to see if we can get in touch with the User who created this tutorial to get it updated.

The preferred method for accomplishing this task is actually somewhat simpler. You just need to add the function for your node to an existing Actor class (it may work with any class, but I always use Actor classes), or create a new class just for the node. Add the UFUNCTION macro and declaration to the class header file and the function definition to the class source file, build the project in Visual Studio, and your new node will be available in your Blueprint. Be aware of the access specifier you are using, though. If you create the function as a private function, then only Blueprints made from that class will be able to use the node. If you make the function public, any Blueprint will be able to use the node.

For example, I just created a new code project using the First Person template. I opened the default character class header file and added the following code under a `public:` access specifier:

```
UFUNCTION(BlueprintPure, meta = (FriendlyName = "Hello World", CompactNodeTitle = "HelloWorld", Keywords = "String Hello World"), Category = Game)
static FText HelloWorld();

```

Then I opened the default character class source file and added the following code:

```
FText ATestCustomNodeCharacter::HelloWorld()
{
	return FText::FromString("Hello World");
}

```

I then built the project in Visual Studio and re-opened it in the Editor. I opened the level Blueprint, added a Begin Play node that executed a Print String node, then searched for and added my new node and wired it into the In String pin on the Print String node.

![26799-helloworld.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/2/f/a2f88510f85a436cc90f5d0313194001e30054cc.png)

Starting PIE mode yielded a “Hello World” message in the top left corner of the viewport.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_db03eb5f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_db03eb5f](https://forums.unrealengine.com/u/anonymous_user_db03eb5f)\
**Post date:** [March 12, 2015, 5:15pm UTC](https://forums.unrealengine.com/t/custom-blueprint-nodes-are-not-working-in-4-7-preview-2/303547/3 "2015-03-12T17:15:45Z")

</div>

If you want to create an entirely custom node - not just a function - is the guide here correct? [A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums](https://wiki.unrealengine.com/Create_Custom_K2_Node_For_Blueprint) (custom node with dynamically allocated pins, execution logic, etc)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [March 17, 2015, 10:43pm UTC](https://forums.unrealengine.com/t/custom-blueprint-nodes-are-not-working-in-4-7-preview-2/303547/4 "2015-03-17T22:43:51Z")

</div>

Hi Benholio,

I haven’t looked through that tutorial, but I’ll try to set aside some time soon to go through it and make sure it is still up to date.
