# Trouble hooking up a c++ declared interface to a blueprint.

**URL:** <https://forums.unrealengine.com/t/trouble-hooking-up-a-c-declared-interface-to-a-blueprint/255929>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [October 15, 2021, 3:30am UTC](https://forums.unrealengine.com/t/trouble-hooking-up-a-c-declared-interface-to-a-blueprint/255929 "2021-10-15T03:30:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ConcernedCitizen](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/concernedcitizen/32/88717_2.png) [@ConcernedCitizen](https://forums.unrealengine.com/u/ConcernedCitizen)\
**Post date:** [October 15, 2021, 3:30am UTC](https://forums.unrealengine.com/t/trouble-hooking-up-a-c-declared-interface-to-a-blueprint/255929/1 "2021-10-15T03:30:39Z")

</div>

Trying to teach myself a few things in c++ and ran into a weird issue.

So I have an interface:

```auto
#pragma once

#include "UObject/Interface.h"
#include "ReactToLightingRigInterface.generated.h"

UINTERFACE(BlueprintType, Blueprintable)
class MY_API UMyFancyInterface : public UInterface
{
 GENERATED_BODY()
};

class MY_API IMyFancyInterface
{
 GENERATED_BODY()
};

```

This compiles fine and I can have a blueprint implement it and another blueprint that has one as a variable.

However, when I go to assign a scene blueprint with it, I get `specified object doesn't implement the required interface class`. However, if I make a blueprint search the scene and hard-assign the variable then it assigns just fine.

---

<div class="post-metadata">

**Author:** ![ConcernedCitizen](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/concernedcitizen/32/88717_2.png) [@ConcernedCitizen](https://forums.unrealengine.com/u/ConcernedCitizen)\
**Post date:** [October 17, 2021, 3:56pm UTC](https://forums.unrealengine.com/t/trouble-hooking-up-a-c-declared-interface-to-a-blueprint/255929/2 "2021-10-17T15:56:58Z")

</div>

Update on this:  
So I have my interface IFoo and a root class Bar that has an IFoo property.

I create BlueprintA and have it implement IFoo. When I try and set a BlueprintA instance as the reference in Bar, I get the “doesn’t implement interface” error.

If I instead create in MyImplementer in c++ and implement IFoo there, then in UR I create a new BlueprintB and have it be a subclass of MyImplementer then I CAN set it as the reference in Bar.

Am I missing a flag somewhere in the interface? I’d like to be able to just implement it in blueprints without needing to add the step of creating a base class.
