Problem related to slate,

I was following a tutorial (HugeDomains.com) to learn slate and it all worked perfectly in 4.2.1. When i transfered the project to 4.3 i started getting weird errors about , like this :

1>C:\Program Files\Unreal Engine\4.3\Engine\Source\Runtime\SlateCore\Public\Layout\Margin.h(153): error C2061: syntax error : identifier ‘’

I restarted the tutorial to see where exactly it breaks up, and it seems that GlobalMenuStyle class from the second part of the tutorial is causing the problem. Any help would be greatly appreciated!

Cheers

Hi Odiriuss,

In 4.3, we made some changes to Engine headers in order to improve project build times. One of the changes that was made was the removal of the Slate.h include from the Engine.h file. If you have not already done so, you will need to make sure you add this back in.

Quote from the 4.3 release notes:


Gameplay and Framework

  • Significant Changes to Engine Headers
  • Engine.h has had lots of headers removed to reduce game compile times. We have tried to only remove classes that are unlikely to be used by a game project, but if you see compile errors, you may need to include additional headers.
  • Slate.h no longer included by Engine.h, so if you are using Slate, you will need to include it yourself.

If you have made this change and are still seeing build errors related to Slate, please let us know.

Thx for the quick reply, i added Slate.h to my project.h and it resolved the issue.