# Can I make a function callable from BP without it being a member of an inherited class

**URL:** <https://forums.unrealengine.com/t/can-i-make-a-function-callable-from-bp-without-it-being-a-member-of-an-inherited-class/70699>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [August 5, 2016, 12:30am UTC](https://forums.unrealengine.com/t/can-i-make-a-function-callable-from-bp-without-it-being-a-member-of-an-inherited-class/70699 "2016-08-05T00:30:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_a40f9dff](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a40f9dff](https://forums.unrealengine.com/u/anonymous_user_a40f9dff)\
**Post date:** [August 5, 2016, 12:30am UTC](https://forums.unrealengine.com/t/can-i-make-a-function-callable-from-bp-without-it-being-a-member-of-an-inherited-class/70699/1 "2016-08-05T00:30:06Z")

</div>

What I’ve got is:

UCLASS()  
class MY\_UNREAL\_PROJECT\_API MainLoop  
{  
GENERATED\_BODY();  
public:  
UFUNCTION(BlueprintCallable)  
void mainLoop();  
}

And on compiling I get either (depending on which macros are put in):

1. MainLoop is not a class or namespace name
2. Class MainLoop must inherit from UObject

---

<div class="post-metadata">

**Author:** ![BrUnO\_XaVIeR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bruno_xavier/32/1110230_2.png) [@BrUnO\_XaVIeR](https://forums.unrealengine.com/u/BrUnO_XaVIeR)\
**Post date:** [August 5, 2016, 1:45am UTC](https://forums.unrealengine.com/t/can-i-make-a-function-callable-from-bp-without-it-being-a-member-of-an-inherited-class/70699/2 "2016-08-05T01:45:28Z")

</div>

What you can do is create a blueprint library which makes a bridge to call your class’ functions if you don’t want it to be a UObject.  
Other than that, it must be an UObject to have interaction with Blueprint VM.
