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"

Make a UUserWidget private in plugin

Hi, I'm creating a plugin (in C++) which contains multiple UUserWidget child classes, and I would know how to prevent the user from using them in Blueprints. I have a main widget that I would like the user to use, and hide the other sub-widgets of my plugin when the user use the BP function "Create Widget".

Here is an example :

 #pragma once
 #include "Blueprint/UserWidget.h"
 #include "ClickableArea.generated.h"
 UCLASS(Abstract, NotBlueprintable, NotPlaceable)
 class UClickableArea : public UUserWidget {

And when I try to create a widget in BP, the ClickableArea is listed and I don't want. alt text

It is possible to do that ? I've tried to put header in private folder, or with some UCLASS specifiers, but it doesn't solve my problem.

Thanks for the help !

EDIT: I tried to put the header of my UCLASS in the private folder like the answers of this post but it doesn't work :/

Product Version: UE 4.22
screenshot-5.png (53.7 kB)
more ▼

asked Jul 09 '19 at 03:29 PM in C++ Programming

avatar image

1 2 3

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

1 answer: sort voted first

Does the UCLASS specifier HideDropdown exhibit the behavior you are expecting?

I would test it myself on my end but I'm waiting for the engine to compile ;]

 UCLASS(Abstract, NotBlueprintable, NotPlaceable, HideDropdown)
more ▼

answered Jul 09 '19 at 05:41 PM

avatar image

275 8 9 16

avatar image Zbluu 5 days ago

Thanks for the answer, but it's not working :(

(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