# Blueprint Execution Debugger (Cast To)

**URL:** <https://forums.unrealengine.com/t/blueprint-execution-debugger-cast-to/309781>\
**Category:** UI\
**Tags:** Debugging, bug, unreal-engine, cast, question, UMG\
**Created:** [March 7, 2015, 2:37pm UTC](https://forums.unrealengine.com/t/blueprint-execution-debugger-cast-to/309781 "2015-03-07T14:37:15Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![thunderbeans\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@thunderbeans\_1](https://forums.unrealengine.com/u/thunderbeans_1)\
**Post date:** [March 7, 2015, 2:37pm UTC](https://forums.unrealengine.com/t/blueprint-execution-debugger-cast-to/309781/1 "2015-03-07T14:37:15Z")

</div>

I have noticed that execution path in blueprint debugger can be a little bit strange when doing casts.

I hadnt noticed this before latest update (maybe because it didnt exist) but I can see execution path look like it failed to Cast but then execute next node in sequence.

[https://rocket2.unrealengine.cloud.answerhub.com/storage/attachments/32852-whatonearth.png](https://rocket2.unrealengine.cloud.answerhub.com/storage/attachments/32852-whatonearth.png)

[https://rocket2.unrealengine.cloud.answerhub.com/questions/186224/begin-overlap-on-sphere-collision.html#answer-186268](https://rocket2.unrealengine.cloud.answerhub.com/questions/186224/begin-overlap-on-sphere-collision.html#answer-186268)

This is one simple example but I have seen it in a few places, mostly always on overlap events.

---

<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:** [March 7, 2015, 6:17pm UTC](https://forums.unrealengine.com/t/blueprint-execution-debugger-cast-to/309781/2 "2015-03-07T18:17:13Z")

</div>

Hey thunderbeans,

Does this always happen with same Blueprints, or does it work sometimes and not others? Does it happen in a new project, or only your current project? Do you have any consistent steps to reproduce it, or a case that will always create this bug? Thanks!

---

<div class="post-metadata">

**Author:** ![thunderbeans\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@thunderbeans\_1](https://forums.unrealengine.com/u/thunderbeans_1)\
**Post date:** [March 7, 2015, 8:52pm UTC](https://forums.unrealengine.com/t/blueprint-execution-debugger-cast-to/309781/3 "2015-03-07T20:52:17Z")

</div>

Unfortunately not easy to reproduce. It seems to only be on one of my classes, which inherits from Character, I used for an NPC. It happens in any blueprint in that class but no other classes. It looks like its specific to just that class, and I think it may be something to do with upgrading to 4.7.2 as I didn’t notice it before.

I have tried to reproduce but to no avail I’m afraid. I guess I’ll just have to live with it or try recreating class.

I’d be interested to hear if anyone else has same problem at all though.

---

<div class="post-metadata">

**Author:** ![thunderbeans\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@thunderbeans\_1](https://forums.unrealengine.com/u/thunderbeans_1)\
**Post date:** [March 8, 2015, 12:38am UTC](https://forums.unrealengine.com/t/blueprint-execution-debugger-cast-to/309781/4 "2015-03-08T00:38:48Z")

</div>

I don’t know if it helps at all, but in my character blueprint little lines that highlight when execution runs through them only highlight for a split second instead of nice fade out I usually see. Not sure if its related but both these issues are very irritating.

Video of it here [https://www](https://www)…com/watch?v=sOvI\_rhj-gU

From what I can tell after a bit more testing, these symptoms are related. However it only seems to be functions relating to my main character actor. Any functions that are called from it (including trying to cast it) will cause strange execution path patterns like ones I have seen.

MyCharacter blueprint I’m using was taken straight from top down example project in version 4.6 and apart from adding a few functions, variables (including references to UMG widgets) I haven’t really done that much to it.

Looks like I’ll just have to recreate whole class ☹

---

<div class="post-metadata">

**Author:** ![thunderbeans\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@thunderbeans\_1](https://forums.unrealengine.com/u/thunderbeans_1)\
**Post date:** [March 8, 2015, 1:54pm UTC](https://forums.unrealengine.com/t/blueprint-execution-debugger-cast-to/309781/5 "2015-03-08T13:54:49Z")

</div>

Final thoughts on this, it seems to be UMG related.

first thing MyCharacter blueprint does on begin play is create an array of struct class, then create and add HUD and then create and add a menu. I believe that it is having widgets with lots of sub widgets added to viewport (maybe all at once) seems to break visual debugger for blueprint it was created on.

---

<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:** [March 8, 2015, 3:02pm UTC](https://forums.unrealengine.com/t/blueprint-execution-debugger-cast-to/309781/6 "2015-03-08T15:02:10Z")

</div>

Before you do that, I’d like to run this by devs to see if they know what might have caused issue. You’re probably correct that it happened in conversion to 4.7. Would it be possible to get a copy of your project with these bugs? If you can upload it somewhere and get me a download link, that would be great. Otherwise, if character and NPC Blueprints are relatively self contained, you might be able to simply and attach those here and we can try them in a new project.

---

<div class="post-metadata">

**Author:** ![thunderbeans\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@thunderbeans\_1](https://forums.unrealengine.com/u/thunderbeans_1)\
**Post date:** [March 8, 2015, 4:13pm UTC](https://forums.unrealengine.com/t/blueprint-execution-debugger-cast-to/309781/7 "2015-03-08T16:13:34Z")

</div>

Heres a download link for a copy of project. Its pretty butchered as I had already rewritten a lot of it to work around this issue.

[https://www.dropbox.com/s/az1033t57n4wzrc/BrokenProject.rar?dl=0](https://www.dropbox.com/s/az1033t57n4wzrc/BrokenProject.rar?dl=0)

I was able to reproduce symptoms by putting together some old bits of code though. You could probably get rid of everything except character and UI widgets I was playing around with if needed.

If you check out character event graph you should be able to see it. I believe it must have something to do with creation of UMG widgets.

I originally had like 3 or 4 widgets that had canvas panels in for my menus (basic HUD, inventory, skill menu, etc), so to work around I just put them all in one HUD widget.

---

<div class="post-metadata">

**Author:** ![thunderbeans\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@thunderbeans\_1](https://forums.unrealengine.com/u/thunderbeans_1)\
**Post date:** [March 8, 2015, 4:17pm UTC](https://forums.unrealengine.com/t/blueprint-execution-debugger-cast-to/309781/8 "2015-03-08T16:17:57Z")

</div>

Please let me know when you have got a copy. Thanks 🙂

---

<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:** [March 8, 2015, 4:20pm UTC](https://forums.unrealengine.com/t/blueprint-execution-debugger-cast-to/309781/9 "2015-03-08T16:20:52Z")

</div>

I just got it, you can take it down if you need to. Thanks!

---

<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:** [March 9, 2015, 8:54pm UTC](https://forums.unrealengine.com/t/blueprint-execution-debugger-cast-to/309781/10 "2015-03-09T20:54:46Z")

</div>

When I run MyCharacter, Event Graph doesn’t seem to animate any of node wires. This seems true for NPC as well. That seems somewhat different than what you were seeing. If you open same version of project you gave me, is that what’s happening for you now as well?

---

<div class="post-metadata">

**Author:** ![thunderbeans\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@thunderbeans\_1](https://forums.unrealengine.com/u/thunderbeans_1)\
**Post date:** [March 10, 2015, 7:21pm UTC](https://forums.unrealengine.com/t/blueprint-execution-debugger-cast-to/309781/11 "2015-03-10T19:21:55Z")

</div>

Mine currently does same, and I was able to create this behaviour by adding multiple sequence nodes all adding new widgets (see MyCharacter event graph).

My best suggestion is to look at MyCharacter event graph and try removing some of those sequence nodes to add less widgets, it seemed to alter behaviour.

To be honest I kept seeing different behaviour (no nodes animated, only partially animated, only some nodes in sequence animated, only animated when focused on scene) and it is very inconsistent to try and reproduce.

Unfortunately I can’t really give a solid set of steps as its so inconsistent.

---

<div class="post-metadata">

**Author:** ![thunderbeans\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@thunderbeans\_1](https://forums.unrealengine.com/u/thunderbeans_1)\
**Post date:** [March 10, 2015, 8:48pm UTC](https://forums.unrealengine.com/t/blueprint-execution-debugger-cast-to/309781/12 "2015-03-10T20:48:06Z")

</div>

I have another issue with UMG, I’m not sure whether I should raise another question for it as it might be related to this.

My editor keeps not saving this change I make.

However if I change something else like execution path or something that saves. Is it maybe something to do with interfaces and struct parameters? I really am lost with this one.

Is this a known issue? Is there a work around? Its getting rather hard to work on this project ☹

---

<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:** [March 13, 2015, 1:56am UTC](https://forums.unrealengine.com/t/blueprint-execution-debugger-cast-to/309781/13 "2015-03-13T01:56:43Z")

</div>

I’m not certain I recognize it, but it’s almost definitely unrelated to bug with node wires not animating. Would you mind opening a new post in Bug Reports for that? I’ll make sure we get someone to look into it.

---

<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:** [March 13, 2015, 2:29am UTC](https://forums.unrealengine.com/t/blueprint-execution-debugger-cast-to/309781/14 "2015-03-13T02:29:37Z")

</div>

Hi thunderbeans,

I was able to reproduce this in your project, and I have entered a bug report for it with your project attached (UE-11772) so developers can take a look. I’ll let you know as soon as I see any update. Thanks for your report!

---

<div class="post-metadata">

**Author:** ![thunderbeans\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@thunderbeans\_1](https://forums.unrealengine.com/u/thunderbeans_1)\
**Post date:** [March 13, 2015, 9:48am UTC](https://forums.unrealengine.com/t/blueprint-execution-debugger-cast-to/309781/15 "2015-03-13T09:48:45Z")

</div>

New question raised, thanks for getting back to me.

> **[\[BUG\] Function parameter not saving (UMG)](https://forums.unrealengine.com/questions/191150/bug-function-parameter-not-saving-umg.html)**
>
> I an issue with UMG where when I attach a parameter to a function on a widget it wont save the change. Here is a video of it in action. - YouTube This UMG widget has an interface implemented, and when the interface event (‘Use’) is called then it...

---

<div class="post-metadata">

**Author:** ![Eight\_Bit\_Punk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Eight\_Bit\_Punk](https://forums.unrealengine.com/u/Eight_Bit_Punk)\
**Post date:** [August 4, 2015, 9:18am UTC](https://forums.unrealengine.com/t/blueprint-execution-debugger-cast-to/309781/16 "2015-08-04T09:18:38Z")

</div>

Hey , is there a way to search if a specific bug was addressed? I’m pretty sure I’m having same issue - my UMG can’t cast to my player character - it’s getting “execution path doesn’t end with a return node” error. I tried storing variables in my game mode but i can’t seem to cast to there either.

Was there any sort of workaround? I’m in 4.8

---

<div class="post-metadata">

**Author:** ![Eight\_Bit\_Punk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Eight\_Bit\_Punk](https://forums.unrealengine.com/u/Eight_Bit_Punk)\
**Post date:** [August 4, 2015, 9:25am UTC](https://forums.unrealengine.com/t/blueprint-execution-debugger-cast-to/309781/17 "2015-08-04T09:25:37Z")

</div>

update: just started working. no idea what i did differently - but i went through double checking that everything was connected and it’s not giving that same error, so… yeah! TY! 🙂

---

<div class="post-metadata">

**Author:** ![thunderbeans\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@thunderbeans\_1](https://forums.unrealengine.com/u/thunderbeans_1)\
**Post date:** [August 5, 2015, 9:22am UTC](https://forums.unrealengine.com/t/blueprint-execution-debugger-cast-to/309781/18 "2015-08-05T09:22:27Z")

</div>

Unfortunately, I couldn’t work around these UMG bugs and had to stop using UE4 all together. Hopefully when its a bit more stable I will be able to come back to it.
