# Blueprint is not a 'object'

**URL:** <https://forums.unrealengine.com/t/blueprint-is-not-a-object/307118>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [February 16, 2015, 4:36pm UTC](https://forums.unrealengine.com/t/blueprint-is-not-a-object/307118 "2015-02-16T16:36:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Netzone\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Netzone\_1](https://forums.unrealengine.com/u/Netzone_1)\
**Post date:** [February 16, 2015, 4:36pm UTC](https://forums.unrealengine.com/t/blueprint-is-not-a-object/307118/1 "2015-02-16T16:36:58Z")

</div>

Hi! I’m creating blueprints through c++ and I’m succeeding to the point where I can see my functions in a blueprint, however when I try to call them I get the error “Blueprint is not a ‘object’”

How would I go about creating an object from my class?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_957a4452](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_957a4452](https://forums.unrealengine.com/u/anonymous_user_957a4452)\
**Post date:** [February 24, 2015, 1:16pm UTC](https://forums.unrealengine.com/t/blueprint-is-not-a-object/307118/2 "2015-02-24T13:16:50Z")

</div>

Hi Netzone,

What did you mean when say “creating blueprints through c++”. Can you provide some example how to reproduce this error?

Best regards,

---

<div class="post-metadata">

**Author:** ![Netzone\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Netzone\_1](https://forums.unrealengine.com/u/Netzone_1)\
**Post date:** [February 24, 2015, 4:09pm UTC](https://forums.unrealengine.com/t/blueprint-is-not-a-object/307118/3 "2015-02-24T16:09:36Z")

</div>

Header: [// Fill out your copyright notice in the Description page of Project Settings. - Pastebin.com](http://pastebin.com/5hsqNWuN)  
cpp: [// Fill out your copyright notice in the Description page of Project Settings. - Pastebin.com](http://pastebin.com/D580YnnT)  
BP: [http://i.imgur.com/2X7AHGB.png](http://i.imgur.com/2X7AHGB.png)  
I’ve tried a bunch of stuff getting the blueprint working, like creating new class blueprints with GameServer, then casting to that (never goes beyond casting for some reason), or trying to get the GameServer object and then referencing that, but that never seems to work.

Basically it returns false when it shouldn’t, and the only reason I can think of is that it isn’t running at all.

---

<div class="post-metadata">

**Author:** ![zamy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zamy](https://forums.unrealengine.com/u/zamy)\
**Post date:** [February 24, 2015, 4:26pm UTC](https://forums.unrealengine.com/t/blueprint-is-not-a-object/307118/4 "2015-02-24T16:26:08Z")

</div>

I did a BP library too, but i’m always using a context object, like this:

```
UFUNCTION(BlueprintCallable, Category = Game, meta = (WorldContext = "WorldContextObject"))
	static bool SimpleTraceFromScreenToWorld(class UObject* WorldContextObject, const FVector2D ScreenPosition, /*out*/ FHitResult& HitResult);

```

and then interact with the engine from the context object.  
Give it a try 😉

---

<div class="post-metadata">

**Author:** ![Netzone\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Netzone\_1](https://forums.unrealengine.com/u/Netzone_1)\
**Post date:** [February 24, 2015, 4:39pm UTC](https://forums.unrealengine.com/t/blueprint-is-not-a-object/307118/5 "2015-02-24T16:39:06Z")

</div>

I’m not sure what’s supposed to be different about that? I tried it and the blueprint output is exactly the same, something that seems extremely odd to me since there’s clearly another argument needed, but blueprint doesn’t seem to think so.

The result is also the same.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_957a4452](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_957a4452](https://forums.unrealengine.com/u/anonymous_user_957a4452)\
**Post date:** [February 24, 2015, 5:25pm UTC](https://forums.unrealengine.com/t/blueprint-is-not-a-object/307118/6 "2015-02-24T17:25:36Z")

</div>

Did you try to make this function static?

---

<div class="post-metadata">

**Author:** ![Netzone\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Netzone\_1](https://forums.unrealengine.com/u/Netzone_1)\
**Post date:** [February 24, 2015, 11:29pm UTC](https://forums.unrealengine.com/t/blueprint-is-not-a-object/307118/7 "2015-02-24T23:29:49Z")

</div>

Yup, no difference as far as I can tell.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_957a4452](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_957a4452](https://forums.unrealengine.com/u/anonymous_user_957a4452)\
**Post date:** [February 27, 2015, 1:35pm UTC](https://forums.unrealengine.com/t/blueprint-is-not-a-object/307118/8 "2015-02-27T13:35:45Z")

</div>

I just want to synchronize our steps. I test your code and blueprint and I achieved similar error, because Connect to Server node require object to execute this member function (target socket in node). To avoid this you should make this function static. I wonder did you try to recreate this node? It looks like this node is very old.

In addition, look at this tutorial.

> **[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 — https://unrealcommunity.wiki/! You will be able to find content from...

Hope it helps!
