Download

Edit variables of other blueprints

Hello,

I have a problem with editing variables on other blueprints. I want the Raptor blueprint to edit a variable on my custom widget. In the Raptor’s event graph I did this:
56707d918d3bdb0bce419d4153a15ed32f0e48a1.png
The variable HealthPercentage is a variable in the Widget blueprint. After I play in the editor it says: ‘Accessed none widget’. Why is it so hard to edit variables on other blueprints, in always did it like this in my own UE project, but here it doesn’t work.

How do I do this correctly?

I hope to hear anything soon.

What is the best way for communication between blueprint? Because casting doesnt work.

For these essentials I recommend checking out some Unreal Engine tutorials.

i don see any casts or attempts to edit other variables across blueprints in that example.

In the Widget variable my variable type is my modded widget. The variable HealthPercent is a variable inside the widget. If I type ‘Cast to’ in the Event Graph search option, I don’t see any options, so I can’t cast. I used this method: https://docs.unrealengine.com/latest/INT/Engine/Blueprints/UserGuide/BlueprintComms/index.html (The first option) The only thing is in my Widget variable the variable type is the modded widget, but I can’t set the variable in the default, it says None. I think this is the problem. Let me know if this is right and how I must change it. Or if you need screenshots.

Ohh casting does work, but only if you drag it out of a variable. Sorry for being so stupid.

dbfc54276e787b20f36200b42c944433d53e61d0.png

I did the casting like this in my widget blueprint. I always fails, even if the Raptor_PAD is spawned in the world. The Raptor_PAD is a child of the Dino variable. Why does it always fails?