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"

[4.14] Extended UserWidget has no Designer tab

I have been using extended UUserWidget classes for some time, since 4.9. I now moved to 4.14 and suddenly there is no Designer tab! What? It works as intended in 4.13!

In my Build file:

 PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "UMG", "Slate", "SlateCore" });

In my project header:

 #include "Runtime/UMG/Public/UMG.h"
 #include "Runtime/UMG/Public/UMGStyle.h"
 #include "Runtime/UMG/Public/Slate/SObjectWidget.h"
 #include "Runtime/UMG/Public/IUMGModule.h"
 #include "Runtime/UMG/Public/Blueprint/UserWidget.h"

My new class:

 #include "Blueprint/UserWidget.h"
 #include "MyUserWidget.generated.h"
 
 /**
  * 
  */
 UCLASS()
 class MYPROJECT_API UMyUserWidget : public UUserWidget
 {
     GENERATED_BODY()
     
 };
 

I then compile and create a new blueprint based on this class and I get this: alt text

There is no designer tab. This is in a blank, new project. Nothing else present. I looked through the patch notes for 4.14 but found nothing. What changed?

Product Version: UE 4.14
Tags:
more ▼

asked Jan 13 '17 at 10:09 PM in Bug Reports

avatar image

Tiskahar
46 8 10 15

avatar image Tiskahar Jan 18 '17 at 09:45 PM

I've gone back as far as 4.10, and the behavior persists. Old widget blueprints that I had made work just fine. Anything new does not allow me to edit the design.

I have also tested this on two machines. The behavior persists.

avatar image Tim C ♦♦ STAFF Jan 18 '17 at 10:52 PM

Hi Tiskahar,

I moved this post over to the Bug Reports section, because I don't think this is intended functionality. I believe the intention is for the resulting widget to be the same in both cases. I am going to do some additional testing on this and see if I can find out if this is intentional.

Tim

(comments are locked)
10|2000 characters needed characters left

3 answers: sort voted first

If you create the blueprint by right clicking on the C++ class and select "Create Blueprint class based on <>", you will see this behavior.

If you create the blueprint by right clicking in the content browser and "Create Blueprint" and then navigate to the selected class, you will get the appropriate window.

So the first method will produce a Blueprint Class. The second method will produce a Blueprint.

There is no way to create a Blueprint by right clicking on the class in the C++ class browser.

The difference is between a Blueprint and a Blueprint Class, which are -=NOT=- well differentiated. The documentation even claims that they are the same thing. They are not.

more ▼

answered Jan 18 '17 at 10:11 PM

avatar image

Tiskahar
46 8 10 15

avatar image Tim C ♦♦ STAFF Jan 19 '17 at 04:17 PM

Hi Tiskahar,

I entered UE-40853 to report the inconsistent results that you described. I don't believe this is intended, and both options for creating a Blueprint derived from the custom User Widget code class should result in a Widget Blueprint being created.

Tim

avatar image Tim C ♦♦ STAFF Feb 06 '17 at 08:52 PM

Hi Tiskahar,

It turns out that the workflow of right-clicking on a User Widget code class and creating a Blueprint from it is not one that is supported by the Engine. Sorry for any confusion here.

Tim

avatar image Tiskahar Feb 06 '17 at 09:28 PM

Can I then recommend that it not be possible to do? Remove that item from the context menu. If it's not supported by the menu then it shouldn't be in the list.

avatar image Sir Rogers Apr 26 '17 at 10:38 PM

Hello Tim, can you please explain then how we are supposed to create a blueprint from a custom UserWidget class in C++? Because that´s what I´m trying to do, and there seems to be no possible way even though it should be.

As right-clicking from the content browser will get me a blueprint class, which has no designer. I want the designer, so that I can add UI elements and place them in the visual designer for my custom class.

avatar image skyphyr May 06 '17 at 10:04 PM

The way Tiskahar describes appears to be the only one. Though Tim says the alternative is not supported, but as Tiskahar points out, the option shouldn't be there then.

There's a number of these little gotchas hidden all over UE4 where after you've spent a lot of time looking for what you've done wrong, you find out it's just code paths exposing unintended options which won't work and aren't documented. (Font renderers being another example, where they don't work with fonts imported using the new method, subsampled fbx import which can lead to surprise bad animation imports, the export to text context menu which puts out files that can't be imported into unreal engine and have no clear use case, these are just some of the top of mind ones I've run into lately). I'm not sure of a fix as a user, but in general, I'd love to see Epic staff responses on forums doing more explaining how things do work, rather than magic steps or defining that which doesn't work as unsupported. Though, I appreciate, this often means finding someone with specialized knowledge and spending more time on answers. While reading the code helps, it can only ever show us how the code, not the design or workflow intent. Intent is critical to deciding how we structure our projects.

For example, is there a superior use case to the blueprint class construction example? i.e. is the one there in the context menu ever what's desired? Is there anything it provides which the blueprint widget does not? It seems like it's just a subset, so has no use beyond a full one. I'd love to hear more on the difference, because it feels close, but not quite the same, as the difference between a C++ class vs an instantiation of it.

(comments are locked)
10|2000 characters needed characters left

Credits for the Solution

https://wiki.unrealengine.com/UMG,_How_to_extend_a_UUserWidget::_for_UMG_in_C%2B%2B.

In case the link ever stops working

1) Create User Interface -> Widget Blueprint

2) Open up your new Widget Blueprint

3) Switch from Designer to Graph View

4) Click Class Settings

5) Switch "Parent Class" from "User Widget" to your custom one

more ▼

answered Apr 26 '17 at 10:47 PM

avatar image

Sir Rogers
6 1 3 8

avatar image loel Jul 22 '18 at 01:11 PM

Thanks a lot this worked for me! :D

(comments are locked)
10|2000 characters needed characters left

Menu Item: Window > Toolbar (Yours will look a little different than mine if you are on Windows)

alt text

more ▼

answered Jan 18 '17 at 11:47 PM

avatar image

CleanCut
2.1k 66 84 77

(comments are locked)
10|2000 characters needed characters left
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