x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

Chris.

Product Version: UE 4.14
Tags:
more ▼

asked May 03 '17 at 01:09 PM in Blueprint Scripting

avatar image

MorphusOne
3 2 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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)

alt text

more ▼

answered May 03 '17 at 01:28 PM

avatar image

Two-faced
860 31 13 48

avatar image MorphusOne May 04 '17 at 04:51 AM

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.

https://answers.unrealengine.com/storage/attachments/136740-testing_01.jpg

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,

Chris.

testing_01.jpg (515.8 kB)
avatar image MorphusOne May 04 '17 at 05:13 AM

Starting to think it's my Widget....

avatar image MorphusOne May 04 '17 at 05:22 AM

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.

avatar image Hawxye Aug 14 '17 at 10:34 AM

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.

avatar image Morphus1 Aug 14 '17 at 11:01 AM

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.

avatar image Haskellf Apr 27 '18 at 06:43 PM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question