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"

Issue creating a C++ slate widget in the editor


Anytime I attempt to create a slate widget by right clicking in the 'C++ Classes' in the editor and select 'Slate Widget' from the parent class I get this:

'Successfully added class 'StandardSlateWidget', however you must recompile the 'MainProject' module before it will appear in the Content Browser. Failed to automatically hot reload the 'MainProject' module.'

Even If I restart Unreal and Visual studios I still can not see the Widget in the editor. I can see the C++ class in visual studios.

Product Version: UE 4.11
more ▼

asked May 28 '16 at 10:24 PM in Bug Reports

avatar image

91 30 30 32

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

1 answer: sort voted first

Slate is comply outside of reflection system you wont see it's Slate classes in editor... or else you actually use it in C++ for some editor UI, refection system only supports UObject. UMG was been made to wrap Slate in to UObject envraiment and make it usable to blueprints, in order for Slate widget to be oparable in UMG you need to make wrapper class for it extended from UWidget class.

more ▼

answered May 29 '16 at 02:02 AM

avatar image

37.2k 936 172 1116

avatar image DrakeWalker May 29 '16 at 05:29 PM

Unfortunately this isn't what the issue is. The issue is that I can not see the C++ file in the UE4 editor. It doesn't appear like the rest of the C++ classes.

avatar image Shadowriver May 29 '16 at 08:03 PM

What you see in editor is not C++ files but classes that engine see and as i said engine only see UObject classes

(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