# How to spawn actor in C++? Been trying for 9 hours now

**URL:** <https://forums.unrealengine.com/t/how-to-spawn-actor-in-c-been-trying-for-9-hours-now/337411>\
**Category:** C++\
**Tags:** spawn, actor, unreal-engine, UE4, CPP, question\
**Created:** [November 4, 2015, 1:05pm UTC](https://forums.unrealengine.com/t/how-to-spawn-actor-in-c-been-trying-for-9-hours-now/337411 "2015-11-04T13:05:25Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![anonymous\_user\_33e74471](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33e74471](https://forums.unrealengine.com/u/anonymous_user_33e74471)\
**Post date:** [November 4, 2015, 5:33pm UTC](https://forums.unrealengine.com/t/how-to-spawn-actor-in-c-been-trying-for-9-hours-now/337411/6 "2015-11-04T17:33:01Z")

</div>

If you’re in VS you should be able to just plop a breakpoint in there, but if not you can throw in some logs everywhere using the stuff here:

> **[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...

```
 GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, TEXT("This is an on screen message!"));

```

If you’re in the editor you should be able to look in the world outliner to see if your actors are popping up too.

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-spawn-actor-in-c-been-trying-for-9-hours-now/337411)._
