How to do it...

  1. Create a new class for your project by using the Add C++ Class wizard and selecting None as your parent class:
  1. Under the name option, use CookbookStyle and click on the Create Class button:
  1. Replace the code in the CookbookStyle.h file with the following code:
#pragma once#include "SlateBasics.h"#include "SlateExtras.h"class FCookbookStyle{public:    static void Initialize();    static void Shutdown();    static void ReloadTextures();    static const ISlateStyle& Get();    static FName GetStyleSetName();private: static TSharedRef< class ...

Get Unreal Engine 4.x Scripting with C++ Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.