Problem between Casting Blueprints (Image won't be valid anymore)


Hey, I want to hide an image in my Interface Widget. My problem is that the Casting Node messes up the commands for some reason.
When I use the Events in my Interface Blueprint it works fine, but not in my Thierd Person Character Blueprint. Does anyone one know a solution or a other way to handle this?

You can pass the reference in your event so that your HUD2 doesn’t need to hold a reference.

Pass in reference.
image

First off all, thanks for replying Kiray!

But I dont quite understand the meaning off your Blueprints.
I tested it out on my Project, but it doesnt do anything, because im only hidding the Refernce?
The Reference is only for the Object Pin in the Casting Node to make sure it knows that I cast to a user Widget.

The Image “Gear4” is the Component i want to hide. The Problem is when i cast the Event (E) from my Character Blueprint the Gear4 isnt valid anymore and wont be hidden.

Then you need to show how you setup your gear4 reference instead of when you calling the function. (casting or not)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.