# Spawn actor from class in Blueprint Macro Library

**URL:** <https://forums.unrealengine.com/t/spawn-actor-from-class-in-blueprint-macro-library/364481>\
**Category:** Blueprint\
**Tags:** bug, macro-library, unreal-engine, spawning-actors, question\
**Created:** [July 19, 2016, 1:18pm UTC](https://forums.unrealengine.com/t/spawn-actor-from-class-in-blueprint-macro-library/364481 "2016-07-19T13:18:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_476d47e51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_476d47e51](https://forums.unrealengine.com/u/anonymous_user_476d47e51)\
**Post date:** [July 19, 2016, 1:18pm UTC](https://forums.unrealengine.com/t/spawn-actor-from-class-in-blueprint-macro-library/364481/1 "2016-07-19T13:18:25Z")

</div>

Hi,

I just noticed that I can not create anymore the node " Spawn Actor from Class" in a Blueprint Macro Library.

However, I can still duplicate my existing Macro functions that contained this node … and edit it.

Is it something permanent or just a “bug” from the recent update to 4.12.5 or 4.12.4 ??

I manage most of my spawning that are common to multiple levels through this macro library…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f8349efa1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f8349efa1](https://forums.unrealengine.com/u/anonymous_user_f8349efa1)\
**Post date:** [July 19, 2016, 1:21pm UTC](https://forums.unrealengine.com/t/spawn-actor-from-class-in-blueprint-macro-library/364481/2 "2016-07-19T13:21:39Z")

</div>

Maybe you have “Context Sensitive” checked?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_476d47e51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_476d47e51](https://forums.unrealengine.com/u/anonymous_user_476d47e51)\
**Post date:** [July 19, 2016, 1:37pm UTC](https://forums.unrealengine.com/t/spawn-actor-from-class-in-blueprint-macro-library/364481/3 "2016-07-19T13:37:04Z")

</div>

Unfortunately, no 😛

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f8349efa1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f8349efa1](https://forums.unrealengine.com/u/anonymous_user_f8349efa1)\
**Post date:** [July 19, 2016, 1:46pm UTC](https://forums.unrealengine.com/t/spawn-actor-from-class-in-blueprint-macro-library/364481/4 "2016-07-19T13:46:22Z")

</div>

Are you draging off of something?  
Can’t try myself right now, as I only have my notebook with me, which isn’t close to being capable to run UE4. Will try once I get back to my good machine

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_476d47e51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_476d47e51](https://forums.unrealengine.com/u/anonymous_user_476d47e51)\
**Post date:** [July 19, 2016, 2:27pm UTC](https://forums.unrealengine.com/t/spawn-actor-from-class-in-blueprint-macro-library/364481/5 "2016-07-19T14:27:18Z")

</div>

Well it seems that now in 4.12.5, the parent class of the Macro Library matters…  
If you created a Macro Library with parent class “Actor”, everything is fine.  
However if you herit from Object… you need to update the parent class now to another class. Any class seems to work except “Object”

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [July 19, 2016, 7:07pm UTC](https://forums.unrealengine.com/t/spawn-actor-from-class-in-blueprint-macro-library/364481/6 "2016-07-19T19:07:38Z")

</div>

Hello,

The reason for this is because Object classes do not contain a reference to a world, which is a necessary factor for using the Spawn Actor From Class as well as a few other nodes. Inheriting from actor will get you the results you’re looking for and prevent you from having to do the unnecessary work of getting a world reference into your Object class.

Have a great day
