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"

BP Interfaces don't work with UMG Widgets?

I can't get my BPI to work with UMG widget. The event is placed in the widget blueprint, messenger is a trigger box. When I move event to another BP, for example my character, it works fine, so the problem seems to be widget BP.

Product Version: UE 4.9
Tags:
more ▼

asked Mar 03 '16 at 10:47 PM in Blueprint Scripting

avatar image

andrzejBG
100 6 8 14

avatar image Omega Max Mar 30 '17 at 03:32 PM

I keep finding unanswered questions in these forums. Yours was posted 12 months ago! It's a bit disappointing, huh.

avatar image Xosh project Mar 30 '17 at 03:38 PM

Never tried with BP interface, but simple cast to a «your_BP_widget» seem more appropriate for me.

avatar image Omega Max Mar 30 '17 at 03:42 PM

Thanks Xosh! I'm unsure what 'object' a widget cast requires.. Any ideas?

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

1 answer: sort voted first

I have created interface, added to Widget and called it - working as intended. How are you calling interface on the widget? alt text

more ▼

answered Mar 30 '17 at 03:43 PM

avatar image

StrangeNewThings
1 1

avatar image Omega Max Mar 30 '17 at 03:56 PM

My widget is already created in a character BP, elsewhere. So I figured I shouldn't create it again here in my CameraPawnBP.

As it's already created, I've been trying to get it like this:

alt text

(That's inside a Reference Casts macro, by the way.. It runs as part of Event BeginPlay).

Then, also in the CameraPawnBP, I'm sending the interface message to the widget like this:

alt text

But over in the widget, the printstring isn't printing to say that it's received the message:

alt text

avatar image Omega Max Mar 30 '17 at 04:01 PM

For clarification: It's a CameraPawnControllerBP.. Not a CameraPawnBP.

avatar image intoxicat3 Mar 30 '17 at 04:30 PM

You are sure that CommanderHUDRef isn't null? Add a print string there with name of it.

Btw if you copied interface event from different blueprint it won't work, you need to add it again by hand.

avatar image Omega Max Mar 30 '17 at 04:59 PM

Right—nothing printed.. So I suppose it was null..

So I'm now trying to cast the Widget directly but I'm not sure what kind of object it needs..

alt text

object.png (131.3 kB)
(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