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"

Adding Interface to UserWidget via Editor does not work properly

Actually this thread is a result of a previous post : https://answers.unrealengine.com/questions/773500/adding-interface-to-userwidget-fails-casting.html

How to reproduce:

  • Create an empty Interface class via c++;

  • Inside the editor, create a WidgetBlueprint, inside the Class Settings add the Interface previously created;

  • Via C++, create this widget and try to Cast<> to this new Interface. It returns null.
    • Also, call UKismetSystemLibrary::DoesImplementInterface and see it returns true;

  • Now, if you extend the UUserWidget via c++ and add this interface through code and try to cast it, it passes.

What is expected is that we could add interfaces via Blueprint and cast it properly, without the need to hardcode it via c++.

Product Version: UE 4.18
more ▼

asked Mar 28 '18 at 05:32 PM in Bug Reports

avatar image

49 6 14 15

avatar image Jeff A ♦♦ STAFF Mar 29 '18 at 09:08 PM


We've recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.



avatar image Gbr Apr 02 '18 at 04:19 PM

Done, thanks!

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

0 answers: sort voted first
Be the first one to answer this question
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