# How to spawn a sphere?

**URL:** <https://forums.unrealengine.com/t/how-to-spawn-a-sphere/37414>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [August 3, 2015, 1:40am UTC](https://forums.unrealengine.com/t/how-to-spawn-a-sphere/37414 "2015-08-03T01:40:54Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [August 4, 2015, 4:01pm UTC](https://forums.unrealengine.com/t/how-to-spawn-a-sphere/37414/6 "2015-08-04T16:01:30Z")

</div>

This will not spawn anything in the game, but the code that danielvmacedo provided will make it so that the ASpawnFactory class will have a root component, and this root component is the SphereMesh that you’re creating. If you wish to spawn something in the scene, you would want to use SpawnActor in the BeginPlay function.

I would suggest following this tutorial to learn some more about spawning actors/meshes, specifically the spawning projectiles section.

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

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-spawn-a-sphere/37414)._
