# 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:** 14\
**Page:** 2

<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:** [March 24, 2016, 2:50pm UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/21 "2016-03-24T14:50:14Z")

</div>

Hi teak421,

This is currently marked for 4.11, though there is always a possibility it gets pushed back so I cannot absolutely guarantee this. It will be more clear once we post release notes, which you will be able to view [here][1].

[1]:

---

<div class="post-metadata">

**Author:** ![Dealman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dealman](https://forums.unrealengine.com/u/Dealman)\
**Post date:** [April 23, 2016, 7:28pm UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/22 "2016-04-23T19:28:38Z")

</div>

I’m taking it that this was never implemented in 4.11 because I am encountering this bug very frequently. Can’t even expose a simple integer…?

**Edit:**

I guess scratch that, forgot to enable it to be editable first. (/\_-)

---

<div class="post-metadata">

**Author:** ![DekanTrue](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DekanTrue](https://forums.unrealengine.com/u/DekanTrue)\
**Post date:** [May 4, 2016, 12:29pm UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/23 "2016-05-04T12:29:22Z")

</div>

Hi,

Could you confirm that this issue has been resolved in 4.11?

---

<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:** [May 4, 2016, 2:41pm UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/24 "2016-05-04T14:41:16Z")

</div>

Hi DekanTrue,

This has been implemented in 4.11. If you are still seeing this error, please post back and I’ll be happy to take another look.

---

<div class="post-metadata">

**Author:** ![DekanTrue](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DekanTrue](https://forums.unrealengine.com/u/DekanTrue)\
**Post date:** [May 9, 2016, 7:16am UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/25 "2016-05-09T07:16:59Z")

</div>

I tested it in 4.11, and it seems to work perfectly.

---

<div class="post-metadata">

**Author:** ![Clem\_Plantier](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Clem\_Plantier](https://forums.unrealengine.com/u/Clem_Plantier)\
**Post date:** [August 18, 2016, 2:18pm UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/26 "2016-08-18T14:18:28Z")

</div>

Hi there,  
bug is still there when using an Enum in 4.12.5.

A workaround is to get enum and set it to itself before plug it in spawn node.

---

<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 18, 2016, 6:15pm UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/27 "2016-08-18T18:15:50Z")

</div>

Hi Clem\_Plantier,

I have not been able to reproduce this on my end. Do you have any steps I can take to recreate error you are seeing?

---

<div class="post-metadata">

**Author:** ![kamrann](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kamrann](https://forums.unrealengine.com/u/kamrann)\
**Post date:** [October 31, 2016, 10:55am UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/28 "2016-10-31T10:55:14Z")

</div>

Quite amazing that such a fundamental issue is still not fixed properly. I’m getting this on 4.14p1. It’s not a regression though, I noticed effect previously but just worked around it and didn’t look into cause.

I don’t have time to create a repro, but I’m seeing issue on an exposed bool, on a widget blueprint, where default value is true and it is set to false on CreateWidget node. In case it’s relevant (but I doubt it) I’m also passing in a value to Class parameter - node is a Create [MyBaseBlueprint] Widget, and I pass in a widget class derived from MyBaseBlueprint.

It behaves exactly as detailed above, ignoring inline value, but working when a wire is plugged in.

---

<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:** [October 31, 2016, 7:20pm UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/29 "2016-10-31T19:20:47Z")

</div>

Hi ,

Do you have any additional steps I can take to reproduce this error on my end? I have not been able to reproduce this on my end using errors listed in this post in 4.14 P1. Please let me know what additional steps if any I can take to recreate this on my end.

---

<div class="post-metadata">

**Author:** ![kamrann](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kamrann](https://forums.unrealengine.com/u/kamrann)\
**Post date:** [November 13, 2016, 10:02pm UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/30 "2016-11-13T22:02:38Z")

</div>

Hey , sorry didn’t subscribe so I missed your reply.  
Turns out it only occurs in very specific circumstances, but there is a bug in there somewhere. I eventually reproduced it (on 4,14 p1 but I think it should occur on all versions) like this:

1. Create widget BP, add a boolean variable, make it editable and exposed on spawn.
2. Add a text block to widget, add a binding to its text property, in binding function plug boolean into return value.
3. Open your level BP, add a variable called WidgetClass. For its type, select name of your widget BP → Class (purple one).
4. Hook BeginPlay up to a CreateWidget node, and connect an AddToViewport to result.
5. Create a Get node for your WidgetClass variable, plug it into Class input on CreateWidget node. Your boolean should show up, defaulted to false.
6. Set exposed boolean to true, compile and play. It prints false.

From what I can see, node gets into an invalid state based on setting of its Class input. If you disconnect pin, change dropdown to your widget class, then reconnect variable, reset input to true and play again, it will print true as it should. Disconnect and change dropdown to None or another incompatible widget class, then reconnect your variable, set to true and run, and it prints false. It seems behaviour is affected by whatever dropdown was last set to, when actually dropdown value should have no effect at all when a wire is plugged in.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [November 18, 2016, 5:49pm UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/31 "2016-11-18T17:49:32Z")

</div>

Hello ,

Thank you for additional information. issue that you have described in your post is a known issue. I have provided a link to public tracker. Please feel free to use link provided for future updates.

Link: [Unreal Engine Issues and Bug Tracker (UE-34491)](https://issues.unrealengine.com/issue/UE-34491)

Make it a great day

---

<div class="post-metadata">

**Author:** ![kamrann](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kamrann](https://forums.unrealengine.com/u/kamrann)\
**Post date:** [November 18, 2016, 6:05pm UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/32 "2016-11-18T18:05:51Z")

</div>

You’ve linked to something that is marked as a non-issue. It’s also completely different - in case above, pins do not disappear, they remain but value is ignored.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [November 18, 2016, 7:24pm UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/33 "2016-11-18T19:24:43Z")

</div>

Hello ,

Could you provide an example project that exhibits issue that you are seeing on your end?

---

<div class="post-metadata">

**Author:** ![QuiteDan1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/quitedan1/32/732176_2.png) [@QuiteDan1](https://forums.unrealengine.com/u/QuiteDan1)\
**Post date:** [May 4, 2024, 5:36pm UTC](https://forums.unrealengine.com/t/bp-spawn-actor-doesnt-use-expose-on-spawn-variables/325001/34 "2024-05-04T17:36:44Z")

</div>

I just encountered this in UE 5.2 Thanks for the workaround!

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