Creating Compound Widget from Editor

When I create a Slate Compound Widget from the engine (4.4.1 built from Source) I encounter the following two bugs:

  1. The file created is called SMyCompoundWidget.h, per Unreal guidelines the S should be omitted.
  2. The header file is missing a #include Slate.h for the code to compile

These can be observed by pressing File>Add Code and choosing to create a new Slate Widget (second option from the bottom).

Hey,

  1. Actually, Slate files seem to mostly start with S (eg, STextBlock.h), whereas the UMG wrapper files do not (eg, TextBlock.h).
  2. We can change that to include Slate, however Slate.h is usually included in your PCH file(s) (rather than each individual source file) as it’s quite large.

Thanks.