# BP: Spawn Actor doesn't use expose on Spawn variables

**URL:** <https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [July 12, 2015, 7:03pm UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001 "2015-07-12T19:03:41Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_fd57f212](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fd57f212](https://forums.unrealengine.com/u/anonymous_user_fd57f212)\
**Post date:** [July 12, 2015, 7:03pm UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/1 "2015-07-12T19:03:41Z")

</div>

Hi,

when I spawn a Actor, and set a exposed variable to something within node, it doesn’t have any effect. However If i hook up a node as input it will work.

E.g. value of 7 for “New var 0” won’t be set on Spawn. But if I hook up 5+2 node, Actor will spawn with a 7 as New Var.

![49982-node.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/6/ab6266a15230bad6cc7a4bdeec175ae077f9da04.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [July 13, 2015, 5:46pm UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/2 "2015-07-13T17:46:52Z")

</div>

Hey ,

I wasn’t able to reproduce any problem with Expose on Spawn. To test, I created a new Actor Blueprint with a Float variable, ExposeMe, that was marked as Editable and Expose On Spawn, with a default value of 0.0. On Event Begin Play, I had it print value of variable. I then created a second Actor Blueprint to act as a spawner, which on Event Begin Play uses Spawn Actor from Class node to spawn first Actor BP. I set value of variable to 7.0, and dropped spawner in level. On PIE, it printed 7.0 as expected.

Did I miss any steps you took to get this to happen? Are you able to reproduce it in a new project, or only your current project?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fd57f212](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fd57f212](https://forums.unrealengine.com/u/anonymous_user_fd57f212)\
**Post date:** [July 14, 2015, 7:17am UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/3 "2015-07-14T07:17:00Z")

</div>

I have indeed a somewhat more complex setup but using this setup I still didn’t manage to reproduce it in a clean project. Sorry for not attempting this step before my report. Though, Issue appeared so general that I didn’t think it would be necessary.

I suppose cause is buried somewhere in depths of my Project and since fix is relatively simple for now (just hook up any node) I’m fine if this gets marked as solved. If I find any way to reproduce it, I will of course ping back.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33d428af1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33d428af1](https://forums.unrealengine.com/u/anonymous_user_33d428af1)\
**Post date:** [July 14, 2015, 7:49am UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/4 "2015-07-14T07:49:28Z")

</div>

Trying doing expose on spawn with a struct as input. In 4.7 this was a bug at least. My work around for that is to make a custom event Initialize to set struct variable…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [July 14, 2015, 8:05pm UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/5 "2015-07-14T20:05:55Z")

</div>

I’ll probably do that, since we can’t reproduce it. Out of curiosity, did you convert this project from 4.7.6, and if so, was this node created in that engine version?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fd57f212](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fd57f212](https://forums.unrealengine.com/u/anonymous_user_fd57f212)\
**Post date:** [July 15, 2015, 2:33am UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/6 "2015-07-15T02:33:47Z")

</div>

Yeah, I converted Project, and particular node from screenshot probably existed too. However I did of course attempt to replace node with a fresh one, same issue.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [July 15, 2015, 4:27pm UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/7 "2015-07-15T16:27:52Z")

</div>

Okay, I tried converting a project from 4.7.6 and still can’t get this to reproduce. I’ll go ahead and resolve post for now, but if you’re able to narrow it down at all please let us know. Thanks for report!

---

<div class="post-metadata">

**Author:** ![Ghar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ghar](https://forums.unrealengine.com/u/Ghar)\
**Post date:** [August 18, 2015, 10:49pm UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/8 "2015-08-18T22:49:11Z")

</div>

Hello, I stumbled across this problem today, I believe it’s a bug.

It seem that SpawnActor node is not generated correctly when Actor to Spawn class input value comes from output of another node, instead of using dropdown list.

A workaround I found is to first select Input Class from dropdown to select input class you want ( node will transform correctly), and THEN use output value from elsewhere of same class to connect it. (It will not transform because it already has done).

So, if node is transformed using dropdown it will work correctly, even if you use class value from somewhere else later. If node is transformed first using class value from somewhere else it will bug.

Sometime I struggle with english, so I made a video to show this: [- YouTube](https://youtu.be/cgoJUCbGh7A)

This occured in 4.8 and 4.9Preview4 versions of Engine.

Edit: mute video

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [August 25, 2015, 8:13pm UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/9 "2015-08-25T20:13:07Z")

</div>

Hi ,

How are you populating your class variable? From what I could see, you are currently passing a Null value into your spawn actor from class node, which will return false and none as your video shows.

---

<div class="post-metadata">

**Author:** ![Ghar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ghar](https://forums.unrealengine.com/u/Ghar)\
**Post date:** [August 25, 2015, 8:21pm UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/10 "2015-08-25T20:21:55Z")

</div>

I set it right before placing it in event graph at 1:16. You can see on right at detail’s panel. actor is being spawned in level.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [August 27, 2015, 7:18pm UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/11 "2015-08-27T19:18:09Z")

</div>

Hi ,

I haven’t been able to reproduce this on my end. Once I set default value of class variable objects spawned exactly as I expected them to. Do you have any other stops I can take to reproduce this on my end?

---

<div class="post-metadata">

**Author:** ![Ghar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ghar](https://forums.unrealengine.com/u/Ghar)\
**Post date:** [August 27, 2015, 8:03pm UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/12 "2015-08-27T20:03:52Z")

</div>

That’s weird (or normal?). Did you connect get class to spawn actor node when spawn actor node is at it’s default state? If you do that it should ignore Input values of exposed variables, and keep defaults.

I made another video: [https://www](https://www)…com/watch?v=j-ISEfXO2BA

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [August 28, 2015, 3:03pm UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/13 "2015-08-28T15:03:52Z")

</div>

Do you have a sample project this is occurring in? I’d be happy to take a look. Thus far I haven’t been able to reproduce this on my end.

---

<div class="post-metadata">

**Author:** ![Ghar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ghar](https://forums.unrealengine.com/u/Ghar)\
**Post date:** [August 28, 2015, 4:27pm UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/14 "2015-08-28T16:27:34Z")

</div>

Sure. I made this project on a different computer and had same result: link text

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [August 28, 2015, 6:19pm UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/15 "2015-08-28T18:19:16Z")

</div>

Hi everyone,

Thank you for project, . I was able to reproduce this and have entered a bug report, UE-20523, to be assessed by development staff.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0476e9811](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0476e9811](https://forums.unrealengine.com/u/anonymous_user_0476e9811)\
**Post date:** [January 15, 2016, 2:41am UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/16 "2016-01-15T02:41:26Z")

</div>

Hi,

I am reproducing this bug in 4.10.1 with a boolean, default set to false.  
spawn actor box sets it to true, and it’s still false in constructor and in begin play.  
If I connect a boolean literal set to true to pin, it’s correctly set to true in constructor and in begin play.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [January 15, 2016, 3:22pm UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/17 "2016-01-15T15:22:02Z")

</div>

HI operthuis,

I looked into UE-20523, it has been fixed internally and is slated for a future release. Please keep a lookout for release notes for additional information.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a4cc7aca](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a4cc7aca](https://forums.unrealengine.com/u/anonymous_user_a4cc7aca)\
**Post date:** [February 12, 2016, 7:59pm UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/18 "2016-02-12T19:59:07Z")

</div>

I have this problem with a bool set to true. It always spawns with bool set to false no matter what I’ve tried. Is epic actively against testing and QA? You’ve had a constructor error in ur engine now for over half a year.

---

<div class="post-metadata">

**Author:** ![skeleton60](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@skeleton60](https://forums.unrealengine.com/u/skeleton60)\
**Post date:** [February 23, 2016, 8:28am UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/19 "2016-02-23T08:28:34Z")

</div>

Same problem here

tip that “” said is working for now

i will try to reproduce this bug in a simple project and if i can do it i will give you project and steps to produce bug and to fix it with “” solution

---

<div class="post-metadata">

**Author:** ![teak421](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/teak421/32/902996_2.png) [@teak421](https://forums.unrealengine.com/u/teak421)\
**Post date:** [March 23, 2016, 10:04pm UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/20 "2016-03-23T22:04:32Z")

</div>

, will that make it into 4.11 final?

[Next page](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001.md?page=2)
