Blueprint Communication with Widget (VR Measurement Tool)

Hey guys,

I’m having a nightmare trying to get the data from my blueprint pawn to a widget that’s created via the same blue print.

If you can tell me how to share the nodes I’d love to, tried that www.blueprintue.com but it comes out all weird.

Basically what I’m looking for is the 3D Widget I have appearing in the center of the 2 points to display the distance between those points.

I have everything functioning crudely but I can’t figure out how to get that information to my widget. It’s the last piece of my puzzle.

As always any and all help is much appreciated.

.

I guess you already have a reference to actor containing 3D widget component right? So to take the reference to widget you have to use get user widget node. Don’t forget to specify the class of your widget by casting)

Heya Two-Faced, Thanks for the reply.

This is my setup to get it to work on screen, VR however requires me to use a 3d widget.

I have my Widget - TempMeasure_C which has a text box inside called measurement which is bound and visible

I have my actor pawn with a widget component (3d Widget.) - Tempmeasure3DWidget Which has the TempMeasure_C widget inside and a blueprint to make it always face the camera.

And then I have my Character/Archvis Pawn which has all my functionality in, movement, interaction and the above code.

Now this is where I’m failing hard…

I’ve tried what you have mentioned above in every component listed above and none of it works… I get the widget to appear as intended but without any text at all. It has “hello world!” in it as default.

What I think i’m messing up is the reference to the widget like you’ve mentioned… let me have another crack…

Thanks again,

.

Starting to think it’s my Widget…

GOT IT!

Sorry, it was my widget.

For those needing the answer, unfortunately it was just a small mistake on the binding of my text box in my widget.

If you want a pic I’ll post one.

MorphusOne,

Would you be able to post further details regarding the widgets and your setup for them? Trying to achieve this myself but getting little luck. A noob when it comes to blueprints.

Sure bud, you’ll have to give me a while though flat out with another project. As soon as I get 5 mins I’ll boot up the project and snap some pics.

@anonymous_user_0dbeb6db We’re you able to post further details of your widget and setup that hawxye asked last summer?