I need to get access to blueprints world location variable from the HUD or widget component. How to do this ?
Hi
You can cast to the BP, and get that variable.
Have you played with casts before?
Hi
I am a little old school and belive casting is better then this, but here goes
*Get all actors of class
- “choose BP you want”
-
- out of node- “Get”
- Cast to - the BP chosen earlier
I then promote to VAR for easy reference after.
From that VAR, get or set the Variable you want from that BP
you missed “GET” between “Get All” & “Cast”
now it gives me warning: Item is already MiniMapBP, you don’t need “Cast to MiniMapBP”
OK, delete the cast. Go from the GET ALL again.
It is a UE4 thing, if a Node of set to one thing, sometime you can not plug anything in to it. You have to delete and start again.
You will need to do the same with you Set VAR.
Will try to find and example in the next few mins.
deleted everything, restarted engine, done everything from scratch still got error :*(
Here is example,
Also make sure you variable is accessible. Click the eye, make it yellow to share.
.
yeah that’s what i have, but i’m always having warning. It still works though.