# Can't spawn static mesh from blueprint

**URL:** <https://forums.unrealengine.com/t/cant-spawn-static-mesh-from-blueprint/286083>\
**Category:** Blueprint\
**Tags:** error, spawn, unreal-engine, Blueprint, question\
**Created:** [June 17, 2014, 4:51am UTC](https://forums.unrealengine.com/t/cant-spawn-static-mesh-from-blueprint/286083 "2014-06-17T04:51:26Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![TychoVII](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tychovii/32/88719_2.png) [@TychoVII](https://forums.unrealengine.com/u/TychoVII)\
**Post date:** [June 17, 2014, 4:51am UTC](https://forums.unrealengine.com/t/cant-spawn-static-mesh-from-blueprint/286083/1 "2014-06-17T04:51:26Z")

</div>

I can’t seem to spawn a StaticMeshActor from my blueprint.

 ![8564-spawnstaticmesh.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/2/9/b29b4aac11e2fa92cdeaab7da7d5ef8751252ff4.png)

When I start the level nothing has spawned and after I close PIE it gives me a **warning** :  
“Calling SetStaticMesh on ‘None’ but Mobility is Static”

All I’m trying to do is spawn a plane to act as a 3D crosshair that I can attach to my character, but no luck getting passed the spawning phase ☹

---

<div class="post-metadata">

**Author:** ![DJMidKnight](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DJMidKnight](https://forums.unrealengine.com/u/DJMidKnight)\
**Post date:** [June 17, 2014, 6:15pm UTC](https://forums.unrealengine.com/t/cant-spawn-static-mesh-from-blueprint/286083/2 "2014-06-17T18:15:06Z")

</div>

ok first off you are trying to spawn something that hasn’t been set yet.

You need to SET what you want to spawn BEFORE you spawn it.

---

<div class="post-metadata">

**Author:** ![TychoVII](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tychovii/32/88719_2.png) [@TychoVII](https://forums.unrealengine.com/u/TychoVII)\
**Post date:** [June 17, 2014, 6:26pm UTC](https://forums.unrealengine.com/t/cant-spawn-static-mesh-from-blueprint/286083/3 "2014-06-17T18:26:45Z")

</div>

Hello! Thanks for responding 🙂  
I’m sorry I guess I don’t quite understand. How can I set something before it exists?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_534c5e2a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_534c5e2a](https://forums.unrealengine.com/u/anonymous_user_534c5e2a)\
**Post date:** [June 17, 2014, 7:45pm UTC](https://forums.unrealengine.com/t/cant-spawn-static-mesh-from-blueprint/286083/4 "2014-06-17T19:45:14Z")

</div>

just reverse the nodes…  
these blue nodes are like pointers… first they point to nothing…  
with set static mesh you create in this instance a “shared\_primitive…”  
then you point your object pointer to that new object…

but now it is just in your memory… not in your scene…  
with “spawn actor” you are creating an actor with that mesh and spawn it into your scene…

---

<div class="post-metadata">

**Author:** ![DJMidKnight](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DJMidKnight](https://forums.unrealengine.com/u/DJMidKnight)\
**Post date:** [June 17, 2014, 8:06pm UTC](https://forums.unrealengine.com/t/cant-spawn-static-mesh-from-blueprint/286083/5 "2014-06-17T20:06:10Z")

</div>

Ok so you have a staticmesh which you need to create (SET) what kind it is. Then you spawn it into the level. The static mesh has no idea what you want when you are trying to spawn it as you haven’t told it what kind it is. The nodes fire off in order. So you are telling it right now to spawn a staticmesh then after that you told it what kind. You have the right idea just wrong ordering.

---

<div class="post-metadata">

**Author:** ![TychoVII](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tychovii/32/88719_2.png) [@TychoVII](https://forums.unrealengine.com/u/TychoVII)\
**Post date:** [June 17, 2014, 8:15pm UTC](https://forums.unrealengine.com/t/cant-spawn-static-mesh-from-blueprint/286083/6 "2014-06-17T20:15:08Z")

</div>

Doesn’t Set Static Mesh simply change which 3D mesh the StaticMeshActor renders? I didn’t think it created anything at all.

I tried your suggestion though and the PIE came back with errors.

“Accessed None ‘Cursor Plane’ from node Construction Script in blueprint BP\_PlayerCharacter”

My understanding was that I need to spawn a StaticMeshActor, then tell it which mesh to use using ‘Set Static Mesh’.

Here’s what I changed it to:

 ![8619-spawnmesh.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/1/a/91a9c1acc510039acae1edfc3ee2db9f71d7d11b.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_534c5e2a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_534c5e2a](https://forums.unrealengine.com/u/anonymous_user_534c5e2a)\
**Post date:** [June 17, 2014, 8:27pm UTC](https://forums.unrealengine.com/t/cant-spawn-static-mesh-from-blueprint/286083/7 "2014-06-17T20:27:43Z")

</div>

you’re right, now i am curious, too 🙂

---

<div class="post-metadata">

**Author:** ![TychoVII](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tychovii/32/88719_2.png) [@TychoVII](https://forums.unrealengine.com/u/TychoVII)\
**Post date:** [June 17, 2014, 8:43pm UTC](https://forums.unrealengine.com/t/cant-spawn-static-mesh-from-blueprint/286083/8 "2014-06-17T20:43:31Z")

</div>

I think you and Dave4723 are suggesting the same thing? I responded to him below with what I think you were suggesting as well. Set Static Mesh simply tells a StaticMeshActor which mesh to use, it doesn’t create anything. I could be wrong but I’m pretty sure I need to spawn the actor first and then tell it which mesh to use.

One other thing is I screwed up and said that the PIE gives me an error, it’s actually just a warning. Not sure if that helps though. I will edit the original post.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_534c5e2a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_534c5e2a](https://forums.unrealengine.com/u/anonymous_user_534c5e2a)\
**Post date:** [June 17, 2014, 8:58pm UTC](https://forums.unrealengine.com/t/cant-spawn-static-mesh-from-blueprint/286083/9 "2014-06-17T20:58:53Z")

</div>

ok so i looked around in the code a little bit and i think the problem is that blueprint doesn’t provide a possibility to compose a new static mesh actor at runtime…  
you could make a blueprintclass and spawn that… only the composing at runtime seems to be the problem

---

<div class="post-metadata">

**Author:** ![TychoVII](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tychovii/32/88719_2.png) [@TychoVII](https://forums.unrealengine.com/u/TychoVII)\
**Post date:** [June 17, 2014, 10:28pm UTC](https://forums.unrealengine.com/t/cant-spawn-static-mesh-from-blueprint/286083/10 "2014-06-17T22:28:48Z")

</div>

I tried what you suggested and it worked 🙂

I made a blueprint of my cursor plane and selected it in the Spawn node. That is weird that you can’t spawn a StaticMeshActor from blueprint though. Anyways, thanks for your help! 😃

---

<div class="post-metadata">

**Author:** ![DJMidKnight](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DJMidKnight](https://forums.unrealengine.com/u/DJMidKnight)\
**Post date:** [June 17, 2014, 10:49pm UTC](https://forums.unrealengine.com/t/cant-spawn-static-mesh-from-blueprint/286083/11 "2014-06-17T22:49:39Z")

</div>

well yes you can spawn staticmesh actors.

What you could do to make it easier unless you plan on having different actors spawn is in the COMPONENTS tab select your Staticmesh actor( I assume you didn’t rename it) and the scroll down in the details and you should see the mesh says NONE put your mesh choice in there then you don’t have to set anything anywhere else as you have now designated that the staticmesh actor IS the plane.

---

<div class="post-metadata">

**Author:** ![dave\_sullivan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dave\_sullivan](https://forums.unrealengine.com/u/dave_sullivan)\
**Post date:** [August 19, 2016, 12:56am UTC](https://forums.unrealengine.com/t/cant-spawn-static-mesh-from-blueprint/286083/12 "2016-08-19T00:56:11Z")

</div>

FWIW, this is what I found worked best and most simply:

Create a blueprint called “BP\_SingleMesh” with a single mesh in it. In your blueprint (where you want to spawn a simple mesh into the blueprint), use a SpawnActor with your BP\_SingleMesh, then use a “set static mesh” node.

So “SpawnActor(BP\_Blueprint)” ===\> SetStaticMesh(TheMeshYouWant)

This seems a bit wasteful if you need to spawn many meshes into the scene, but basically it came down to “wrap it in blueprints and spawn normally” for me.

---

<div class="post-metadata">

**Author:** ![asmischney](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@asmischney](https://forums.unrealengine.com/u/asmischney)\
**Post date:** [April 14, 2017, 2:33pm UTC](https://forums.unrealengine.com/t/cant-spawn-static-mesh-from-blueprint/286083/13 "2017-04-14T14:33:15Z")

</div>

So i ran into this problem and have a solution that may be helpful to anyone else that ends up here.  
do not spawn a static mesh at runtime and expect to move it around, you cant ( thats why you are here)  
instead spawn a generic actor, then add a static mesh component to that actor

 ![134232-spawnstaticmeshissue.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/d/9/7d9f4334274af39798acb3a35317d0341c4aa1f1.jpeg)

---

<div class="post-metadata">

**Author:** ![TychoVII](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tychovii/32/88719_2.png) [@TychoVII](https://forums.unrealengine.com/u/TychoVII)\
**Post date:** [April 18, 2017, 1:23am UTC](https://forums.unrealengine.com/t/cant-spawn-static-mesh-from-blueprint/286083/14 "2017-04-18T01:23:22Z")

</div>

Cool solution! I never realized you could edit the properties of of the component just by clicking on the node. Thanks!

---

<div class="post-metadata">

**Author:** ![P1rw](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/p1rw/32/471604_2.png) [@P1rw](https://forums.unrealengine.com/u/P1rw)\
**Post date:** [May 23, 2024, 1:34pm UTC](https://forums.unrealengine.com/t/cant-spawn-static-mesh-from-blueprint/286083/15 "2024-05-23T13:34:14Z")

</div>

For anyone still struggling - here is a simple answer and solution. If you try to use the Add Static Mesh Component node to add a mesh to the scene using Blueprint code you must use the Set Static Mesh component when you call that node in Begin Play for example. I first tried to spawn a wall segment (called SM\_V2\_Wall1) using only Add Static Mesh (and selecting my mesh in the Details panel) and it worked fine inside the Blueprint in design time. But if I called that same function from Begin Play they just do not appear when I press play. I hope the following screenshot helps.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/e/8/8e8bdccf615314c238a5bb0aa3dd28b36612c64f.png)

---

<div class="post-metadata">

**Author:** ![P1rw](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/p1rw/32/471604_2.png) [@P1rw](https://forums.unrealengine.com/u/P1rw)\
**Post date:** [May 31, 2024, 2:26pm UTC](https://forums.unrealengine.com/t/cant-spawn-static-mesh-from-blueprint/286083/16 "2024-05-31T14:26:29Z")

</div>

I now found out that you can use this combination of nodes to “spawns” a BP as a component of another BP. The big benifit of this is that it works in the construction script too.

Add Child Actor Component → Set Child Actor Class  
Remember to select your BP in the In Class field!  
Hope this helps people! Happy Unrealing!

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/0/3002d17435ffab496ddd2666733c00553169dc59.png)

---

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [June 1, 2024, 4:42am UTC](https://forums.unrealengine.com/t/cant-spawn-static-mesh-from-blueprint/286083/17 "2024-06-01T04:42:30Z")

</div>

Try a dummy actor blueprint, drag it into the world, and off its begin play try to spawn the mesh.
