Ue Blueprint Cpp Integrationのロゴ

Ue Blueprint Cpp Integration

コミュニティ
kevinpbuckley
ue-blueprint-cpp-integration

Expose C++ classes, functions, and properties to Blueprint in Unreal Engine — UFUNCTION specifiers (BlueprintCallable, BlueprintPure, BlueprintImplementableEvent, BlueprintNativeEvent), UPROPERTY exposure (BlueprintReadWrite/ReadOnly, EditAnywhere/DefaultsOnly, ExposeOnSpawn), UCLASS specifiers (Blueprintable, BlueprintType), meta=(...) tags, Blueprint function libraries, TSubclassOf/soft references, and Blueprint-implementable interfaces. Use when deciding which specifiers to put on C++ members or functions, designing a designer-facing API, calling between C++ and Blueprint, or debugging missing nodes/properties/events in the Blueprint graph.

概要

公開者kevinpbuckley
リポジトリunreal-engine-skills
スキル名ue-blueprint-cpp-integration
スター
89
フォーク
9
同梱ファイル
3
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 3個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    kevinpbuckleyがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Ue Blueprint Cpp Integration」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/kevinpbuckley/unreal-engine-skills/tree/master/skills/core/ue-blueprint-cpp-integration
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kevinpbuckley/unreal-engine-skills.git /tmp/unreal-engine-skills
mkdir -p .claude/skills
cp -r /tmp/unreal-engine-skills/skills/core/ue-blueprint-cpp-integration .claude/skills/ue-blueprint-cpp-integration
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでUe Blueprint Cpp Integrationを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にUe Blueprint Cpp Integrationを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Ue Blueprint Cpp Integrationは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Blueprint ↔ C++ integration

The boundary between C++ and Blueprint is defined entirely by reflection specifiers declared in UHT macros. Getting them right produces a clean, designer-friendly API; getting them wrong means nodes don't appear, properties don't show, or events never fire. This is the contract layer of the "C++ base + Blueprint subclass" pattern.

When to use this skill

  • Choosing UFUNCTION/UPROPERTY/UCLASS specifiers to expose C++ to designers.
  • Letting Blueprints override or implement C++ behavior via events.
  • Building a Blueprint function library of static helpers.
  • Passing class references or soft assets between C++ and Blueprint.
  • Defining a shared interface contract implementable in C++ or Blueprint.

Mental model: what UHT generates

Unreal Header Tool (UHT) reads each macro and generates two things: metadata (stored in the UClass/UFunction/FProperty object) and thunk functions (the glue that lets Blueprint call C++ and vice versa). The specifiers you write are instructions to UHT, not runtime code. BlueprintCallable adds exec-pin wiring; BlueprintPure suppresses those pins; event specifiers generate the dispatching thunk that routes a call from the Blueprint VM to the right C++ or BP body.

Exposing functions (UFUNCTION)

cpp
// Side-effect function — gets exec in/out pins in BP
UFUNCTION(BlueprintCallable, Category="Combat")
void ApplyDamage(float Amount);

// Pure query — no exec pins, result cached per evaluation
UFUNCTION(BlueprintPure, Category="Combat")
float GetHealthPercent() const;

// C++ raises it; Blueprint defines what happens — no C++ body
UFUNCTION(BlueprintImplementableEvent, Category="FX")
void OnHitReaction(const FVector& ImpactPoint);

// C++ has a default; Blueprint may override it
UFUNCTION(BlueprintNativeEvent, Category="AI")
void OnAlert(AActor* Threat);
void OnAlert_Implementation(AActor* Threat);   // the C++ fallback

Key rules:

  • BlueprintCallable — designers can call it with side effects. Add Category always.
  • BlueprintPure — for value queries. No exec pins. Avoid heavy work; BP re-evaluates it every time the output pin is read.
  • BlueprintImplementableEvent — UHT generates the thunk; you may not provide a C++ body. Call it from C++ by invoking the base name (OnHitReaction(...)); BP decides what happens.
  • BlueprintNativeEvent — provide _Implementation as the C++ default. Call the base name so the engine routes to the BP override when present. In a C++ override of an NE, call Super::FuncName_Implementation(...).

Additional useful function specifiers:

  • CallInEditor — adds a button in the Details panel (editor only).
  • BlueprintAuthorityOnly — BP can only call it on the server/single-player.
  • BlueprintCosmetic — skipped on dedicated servers.
  • meta=(DisplayName="Friendly Name") — overrides the node label in the BP graph.
  • meta=(ExpandEnumAsExecs="Param") — creates one exec pin per enum value.

Full specifier table and advanced meta tags: references/ufunction-specifiers.md.

Exposing properties (UPROPERTY)

cpp
// Editable in all contexts; read-write from BP; clamped in editor UI
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Stats",
          meta=(ClampMin="0.0", ClampMax="1000.0"))
float MaxHealth = 100.f;

// Read-only from BP; C++ internal writes are fine
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Stats")
float CurrentHealth = 100.f;

// Appears as a pin on SpawnActor/BeginDeferredActorSpawn nodes
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Spawn",
          meta=(ExposeOnSpawn="true"))
int32 StartingAmmo = 30;

// Designer picks a class (C++ or Blueprint); type-safe
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category="Setup")
TSubclassOf<AActor> ProjectileClass;

// Private member exposed to BP via allow-access meta
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Components",
          meta=(AllowPrivateAccess="true"))
TObjectPtr<UStaticMeshComponent> Mesh;

Edit/visibility specifier summary:

SpecifierEdit?Where?
EditAnywhereyesarchetypes + instances
EditDefaultsOnlyyesarchetypes only (class defaults)
EditInstanceOnlyyesplaced/spawned instances only
VisibleAnywhereread-only displayeverywhere
VisibleDefaultsOnlyread-only displayarchetypes only

Blueprint access specifiers: BlueprintReadWrite (get+set node), BlueprintReadOnly (get only). These are independent of the Edit/Visible axis — combine them as needed.

Useful meta tags: ClampMin/ClampMax (editor input range), UIMin/UIMax (slider range), ExposeOnSpawn="true" (spawn pin), AllowPrivateAccess="true" (expose private member to BP), EditCondition="bSomeFlag" (grey-out unless flag is true).

Full property specifier and meta-tag reference: references/uproperty-specifiers.md.

UCLASS specifiers for Blueprint

cpp
// Subclassable in BP and usable as a BP variable type
UCLASS(Blueprintable, BlueprintType)
class MYGAME_API UMyDataAsset : public UDataAsset { ... };

// Cannot be subclassed in BP (abstract base, library)
UCLASS(Abstract, NotBlueprintable)
class MYGAME_API UMyInternalBase : public UObject { ... };
  • Blueprintable — designers can create a Blueprint subclass of this C++ class.
  • BlueprintType — the class can be used as a variable type in Blueprint graphs.
  • Both are inherited by subclasses unless overridden.
  • MinimalAPI — exports only the type info needed for Cast<> and vtable; keeps compile times low for classes that don't need all methods accessible in other modules.

Passing class references and soft assets

cpp
// Type-safe class reference: editor shows only AProjectile and subclasses
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category="Projectile")
TSubclassOf<AProjectile> ProjectileClass;

// Async-loadable texture: not kept in memory until loaded
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category="Visuals")
TSoftObjectPtr<UTexture2D> SplashTexture;

// Async-loadable class (useful in streaming scenarios)
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category="AI")
TSoftClassPtr<AAIController> AIControllerClass;

Spawn with a class ref: GetWorld()->SpawnActor<AProjectile>(ProjectileClass, Location, Rotation). Load a soft ref asynchronously via the Asset Manager or RequestAsyncLoad (see ue-asset-management).

Blueprint function libraries

For utility functions not tied to any particular object instance:

cpp
#include "Kismet/BlueprintFunctionLibrary.h"

UCLASS()
class MYGAME_API UGeometryLibrary : public UBlueprintFunctionLibrary
{
    GENERATED_BODY()
public:
    UFUNCTION(BlueprintPure, Category="Geometry",
              meta=(DisplayName="Snap To Grid"))
    static FVector SnapToGrid(const FVector& In, float GridSize);

    UFUNCTION(BlueprintCallable, Category="Geometry")
    static bool TraceLineOfSight(const UObject* WorldContext,
                                 const FVector& From, const FVector& To);
};

Methods must be static. They appear as global nodes in any BP graph. UGameplayStatics (Engine/Classes/Kismet/GameplayStatics.h) is the canonical large example.

Blueprint-implementable interfaces

An interface lets unrelated classes share a C++/Blueprint contract without a common parent:

cpp
// Interactable.h
#include "UObject/Interface.h"

UINTERFACE(MinimalAPI, Blueprintable)
class UInteractable : public UInterface { GENERATED_BODY() };

class IInteractable
{
    GENERATED_BODY()
public:
    // C++ default provided; Blueprint may override
    UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category="Interact")
    void Interact(AActor* Instigator);
};

Implement in C++: inherit IInteractable and provide Interact_Implementation. Implement in Blueprint: add the interface in Class Settings; implement the event node.

Calling interface functions safely from C++:

cpp
if (Target->Implements<UInteractable>())
    IInteractable::Execute_Interact(Target, this);   // routes to BP override if present

// Cast<> only works when the interface is implemented in C++, not Blueprint

Use Execute_<FuncName> for any BlueprintNativeEvent/BlueprintImplementableEvent on an interface — it is the only path that correctly dispatches to Blueprint overrides.

Full interface patterns, TScriptInterface, and Cast<> caveats: references/blueprint-interfaces.md.

Delegates exposed to Blueprint

cpp
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnHealthDepleted, float, LastDamage);

UPROPERTY(BlueprintAssignable, Category="Events")
FOnHealthDepleted OnHealthDepleted;

BlueprintAssignable lets designers bind to the event in the Event Graph. The delegate must be DYNAMIC_MULTICAST — UHT only exposes that family to Blueprint. See ue-delegates-and-events.

Gotchas

  • No Category — members land in a flat "Default" group; always set a meaningful one.
  • BlueprintImplementableEvent with a C++ body — compile error; UHT generates the body.
  • Calling a BlueprintNativeEvent via _Implementation directly bypasses Blueprint overrides; always invoke the base name in production code.
  • Missing Execute_ on interface calls — silently skips Blueprint implementations.
  • BlueprintReadWrite on a private member without meta=(AllowPrivateAccess="true") won't compile — UHT rejects the combination.
  • Returning const& to Blueprint — unsafe; BP holds a copy of the pin value. Return by value.
  • BlueprintPure on a slow function — BP re-runs it for every connected node; cache in a variable or switch to BlueprintCallable.
  • Cast<IMyInterface> on a BP-only implementor returns null — use Implements<> + Execute_ for interfaces implemented in Blueprint.
  • Forgetting GENERATED_BODY() in the I-prefixed interface class — UHT will refuse to generate the dispatcher.

Version notes

  • TObjectPtr<T> is the modern UPROPERTY member idiom (UE5+); older code uses raw T* which still works. Prefer TObjectPtr for new code.
  • BlueprintPure=false on a const function forces it to show exec pins (UE 5.0+).
  • The specifier set is stable across UE 5.x; the line numbers in source citations may drift across patch releases but header paths and enum names are stable.

References & source material

Engine source (UE 5.8, under Engine/Source/):

  • Runtime/CoreUObject/Public/UObject/ObjectMacros.h — UF::BlueprintImplementableEvent:992, UF::BlueprintNativeEvent:997, UF::BlueprintPure:1026, UF::BlueprintCallable:1029; UP::EditAnywhere:1158, UP::EditDefaultsOnly:1164, UP::BlueprintReadOnly:1176, UP::BlueprintReadWrite:1182, UP::BlueprintAssignable:1146; meta AllowPrivateAccess:1351, ExposeOnSpawn:1434; UC::Blueprintable:850, UC::BlueprintType:844.
  • Runtime/Engine/Classes/Kismet/BlueprintFunctionLibrary.h — UBlueprintFunctionLibrary:15.
  • Runtime/Engine/Classes/Kismet/GameplayStatics.h — canonical large BP function library.
  • Runtime/CoreUObject/Public/UObject/Interface.h — UInterface:18, IInterface:24.

Official docs (UE 5.8):

Deep-dive references in this skill:

Related skills: ue-cpp-fundamentals, ue-blueprint-fundamentals, ue-delegates-and-events, ue-asset-management.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Ue Blueprint Cpp Integration」では何ができますか?

Expose C++ classes, functions, and properties to Blueprint in Unreal Engine — UFUNCTION specifiers (BlueprintCallable, BlueprintPure, BlueprintImplementableEvent, BlueprintNativeEvent), UPROPERTY exposure (BlueprintReadWrite/ReadOnly, EditAnywhere/DefaultsOnly, ExposeOnSpawn), UCLASS specifiers (Blueprintable, BlueprintType), meta=(...) tags, Blueprint function libraries, TSubclassOf/soft references, and Blueprint-implementable interfaces. Use when deciding which specifiers to put on C++ members or functions, designing a designer-facing API, calling between C++ and Blueprint, or debugging m...

TypingMindでUe Blueprint Cpp Integrationを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Ue Blueprint Cpp Integrationはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにUe Blueprint Cpp Integrationをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/kevinpbuckley/unreal-engine-skills/tree/master/skills/core/ue-blueprint-cpp-integrationを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Ue Blueprint Cpp Integrationを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Ue Blueprint Cpp Integrationで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもUe Blueprint Cpp Integrationを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Ue Blueprint Cpp Integration」は無料ですか?

kevinpbuckleyがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇