Add to an Existing Project
1. Enable Common UI
- If not already enabled enable it and restart the editor before migrating
2. Migrate Files
In the Ksyn project Right click the KSynTemplate folder in the content browser, select migrate and then select the content folder of the new project as the destination.
3. Update Project Settings
- Set Game Instance
- Set
Project Settings > Maps & Modes > Game Instance to GI_AudioSettings
- For Music functionality to work the game instance needs to be set to
GI_AudioSettings
or make your game instance a child of that class
- For Music functionality to work the game instance needs to be set to
- Set
- Set Game Viewport Client Class to
GommonGameViewportClient
Project Settings > Engine > General Settings > Default Classes
- Set Input Data to InputData_KSynDefaul
Project Settings > Game > Common Input Settings
- Set Controller Data
Project Settings > Game > Platform Input > Windows
- Set a Default Gamepad name (Project uses Generic by default)
- Add Controller Data for Keyboard and Gamepad
ControllerData_Keyboard
ControllerData_Gamepad_XBox
4. Restart Editor
- Restart the Editor
- Start the demo map in editor
- Verify the controller input glyphs show up when you use a controller, and that the menus work.