# How to make a custom blue print

**URL:** <https://forums.unrealengine.com/t/how-to-make-a-custom-blue-print/284060>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [May 23, 2014, 11:12am UTC](https://forums.unrealengine.com/t/how-to-make-a-custom-blue-print/284060 "2014-05-23T11:12:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gansaibow](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gansaibow](https://forums.unrealengine.com/u/Gansaibow)\
**Post date:** [May 23, 2014, 11:12am UTC](https://forums.unrealengine.com/t/how-to-make-a-custom-blue-print/284060/1 "2014-05-23T11:12:55Z")

</div>

Custom BluePrintの作り方

[参考URL]

Custom Blueprint Node Creation

> **[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...

Blueprint Node: Math Node

> **[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...

[必須ソフト]  
Visual Studio Express 2013 for Windows Desktop

[http://www.microsoft.com/ja-jp/download/details.aspx?id=40787](http://www.microsoft.com/ja-jp/download/details.aspx?id=40787)

1.ソースコードをプロジェクトに追加する。  
\<手順\>  
File → Add Code to Project…

[http://comiclo.jp/UE4QA/01/01\_AddCodeToProject.png](http://comiclo.jp/UE4QA/01/01_AddCodeToProject.png)

2.親クラスを選択する。  
\<手順\>  
EdGraphNodeを検索のバーに入力してEnterを押下する。  
Object

- EdGraphNode を選択する。  
Nextボタンを押下する。

[http://comiclo.jp/UE4QA/01/02\_ChooseParentClass.png](http://comiclo.jp/UE4QA/01/02_ChooseParentClass.png)

3.クラス名を決定する。  
\<手順\>  
Nameに作成するクラス名を入力する。  
CreateClassボタンを押下する。

[http://comiclo.jp/UE4QA/01/03\_01\_CreateClass.png](http://comiclo.jp/UE4QA/01/03_01_CreateClass.png)

メッセージダイアログでYesを押下する。

[http://comiclo.jp/UE4QA/01/03\_02\_MessageDialog.png](http://comiclo.jp/UE4QA/01/03_02_MessageDialog.png)

4.ヘッダー(CustomBP.h)とソース(Custom.cpp)にHelloWorldノードのコードを追加する。

–CustomBP.h–

#pragma once

#include “GameFramework/Character.h”  
#include “CustomBP.generated.h”

/\*\*  
\*  
\*/  
UCLASS()  
class ACustomBP : public ACharacter  
{  
GENERATED\_UCLASS\_BODY()

public:  
UFUNCTION(BlueprintPure, meta = (FriendlyName = “Hello World”, CompactNodeTitle = “HelloWorld”, Keywords = “String Hello World”), Category = Game)  
static FText HelloWorld();

};

[http://comiclo.jp/UE4QA/01/04\_1\_CustomBP\_header.png](http://comiclo.jp/UE4QA/01/04_1_CustomBP_header.png)

–CustomBP.cpp–

#include “MyProject.h”  
#include “CustomBP.h”

ACustomBP::ACustomBP(const class FPostConstructInitializeProperties& PCIP)  
: Super(PCIP)  
{

}

FText ACustomBP::HelloWorld()  
{  
return FText::FromString(“Hello World”);  
}

[http://comiclo.jp/UE4QA/01/04\_2\_CustomBP\_source.png](http://comiclo.jp/UE4QA/01/04_2_CustomBP_source.png)

5.ローカルWindowsデバッガーを起動する。  
ローカルWindowsデバッガーを押下する。

[http://comiclo.jp/UE4QA/01/05\_01\_DebugBuild.png](http://comiclo.jp/UE4QA/01/05_01_DebugBuild.png)

はいを押下する。

[http://comiclo.jp/UE4QA/01/05\_02\_DebugBuild\_Yes.png](http://comiclo.jp/UE4QA/01/05_02_DebugBuild_Yes.png)

6.BluePrintでHelloWorldノードを追加できるか確認する。  
Find a Node にHelloと入力する。  
Hello Worldが表示されるので、Event GraphにドラッグするとHelloWorldノードが追加される。

[http://comiclo.jp/UE4QA/01/06\_BlueprintConfirm.png](http://comiclo.jp/UE4QA/01/06_BlueprintConfirm.png)

---

<div class="post-metadata">

**Author:** ![Joe\_Conley](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joe\_Conley](https://forums.unrealengine.com/u/Joe_Conley)\
**Post date:** [May 24, 2014, 12:08am UTC](https://forums.unrealengine.com/t/how-to-make-a-custom-blue-print/284060/2 "2014-05-24T00:08:22Z")

</div>

チュトリアルありがとうございます！

---

<div class="post-metadata">

**Author:** ![Gansaibow](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gansaibow](https://forums.unrealengine.com/u/Gansaibow)\
**Post date:** [May 24, 2014, 4:54pm UTC](https://forums.unrealengine.com/t/how-to-make-a-custom-blue-print/284060/3 "2014-05-24T16:54:44Z")

</div>

アニメーションのフレーム指定の方法を教えていただきありがとうございました。  
今、配列を引数にする方法と戻り値にする方法を模索中です
