Unreal Engine 4.x Scripting with C++ Cookbook - Second Edition
by John P. Doran, William Sherif, Stephen Whittle
How it works...
As usual, when we want to use a custom PlayerController, we need a custom GameMode to specify which PlayerController to use.
We create both a custom PlayerController and GameMode, and then place some Slate code in the BeginPlay method of PlayerController so that some UI elements are drawn.
Because the main game viewport is usually quite small within the Unreal editor, the UI initially shows in a scaled-down fashion. This is intended to allow for the game UI to take up less room on smaller resolution displays, but this can have the side effect of making the text very difficult to read if the window isn't being stretched to fit the full screen.
Unreal stores the configuration data that should persist between sessions but not ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access