# \[Interface\] Automatic Blueprint implementation differs from signature

**URL:** <https://forums.unrealengine.com/t/interface-automatic-blueprint-implementation-differs-from-signature/319328>\
**Category:** UI\
**Tags:** interface, unreal-engine, implementation, Blueprint, CPP, question\
**Created:** [May 21, 2015, 10:00am UTC](https://forums.unrealengine.com/t/interface-automatic-blueprint-implementation-differs-from-signature/319328 "2015-05-21T10:00:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_d9744154](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d9744154](https://forums.unrealengine.com/u/anonymous_user_d9744154)\
**Post date:** [May 21, 2015, 10:00am UTC](https://forums.unrealengine.com/t/interface-automatic-blueprint-implementation-differs-from-signature/319328/1 "2015-05-21T10:00:08Z")

</div>

Hi everyone,

I am trying to implement an Interface from a Blueprint, but it’s getting quite tricky, I don’t get what is happening…

I have a simple interface here :

#.h

```
#pragma once

#include "Components/WidgetComponent.h"
#include "InteractiveUIInterface.generated.h"

UINTERFACE(MinimalAPI)
class UInteractiveUIInterface : public UInterface
{
	GENERATED_UINTERFACE_BODY()
};

class IInteractiveUIInterface
{
	GENERATED_IINTERFACE_BODY()

	UFUNCTION(BlueprintImplementableEvent)
	bool OnButtonTriggered(int32 ID);

	UFUNCTION(BlueprintImplementableEvent)
	bool CreateTrigger(FTransform &triggerTransform, UWidgetComponent *&parent, int32 ID);
};

```

#.cpp

```
#include "SimulateurVR3D.h"
#include "InteractiveUIInterface.h"

UInteractiveUIInterface::UInteractiveUIInterface(const class FObjectInitializer& ObjectInitializer)
	: Super(ObjectInitializer)
{

}

```

Here, nothing special, it compile, and I can choose to implement my interface in my blueprint.  
But, if I go to the newly implemented function “CreateTrigger()”, here’s what I get :

![43545-interfaceimplementation.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/c/8/3c8a0469cd225d5f78d3fadeab9c729e0995a11a.png)

Which differs _slightly_ from what I asked… Two of my parameters are converted into return values…

I don’t know what I missed, I tried a few things, nothing seems to work better

Is anyone got an idea of what’s going on ?

Thanks !

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8e2766aa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8e2766aa](https://forums.unrealengine.com/u/anonymous_user_8e2766aa)\
**Post date:** [May 21, 2015, 12:22pm UTC](https://forums.unrealengine.com/t/interface-automatic-blueprint-implementation-differs-from-signature/319328/2 "2015-05-21T12:22:23Z")

</div>

Hello,

Please note that when you declare function parameter as a reference, Blueprint assumes that it is a return value, since in some functions you may pass a reference to the variable in which the result value should be stored.

In this case, please also consider the fact that the Unreal property system that Blueprints are built on only supports passing pointers to non-UObjects (but not UStructs).

Thus, please declare your method like this:

```
UFUNCTION(BlueprintImplementableEvent)
bool CreateTrigger(FTransform triggerTransform, UWidgetComponent *parent, int32 ID);

```

This should do it.

Hope this helped!

Have a great day!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d9744154](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d9744154](https://forums.unrealengine.com/u/anonymous_user_d9744154)\
**Post date:** [May 21, 2015, 12:30pm UTC](https://forums.unrealengine.com/t/interface-automatic-blueprint-implementation-differs-from-signature/319328/3 "2015-05-21T12:30:39Z")

</div>

Thanks a lot, you saved my day !

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8e2766aa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8e2766aa](https://forums.unrealengine.com/u/anonymous_user_8e2766aa)\
**Post date:** [May 21, 2015, 12:42pm UTC](https://forums.unrealengine.com/t/interface-automatic-blueprint-implementation-differs-from-signature/319328/4 "2015-05-21T12:42:06Z")

</div>

You are welcome! Good luck!
