-
-
Notifications
You must be signed in to change notification settings - Fork 19
Integrate to your own project
This page is a Work in Progress and hasn't been updated since a lot of commits so it might be a bit outdated. I recommend you to see how it's done in the base project for each steps, and just copy how it's done for the base project in you own. Images are hosted on Imgur
I assume that if you're here, you already know at least the basics of this incredible engine. However, just to make it clear, you need to have a basic understanding of Unreal Engine before continuing. If you don't, I recommend checking out the Unreal Sensei channel to learn the basics, particularly this video.
It would be helpful to have some knowledge of CommonUI before continuing. You can do this by watching this livestream. However, if you are already experienced with UE5, you could probably learn on the go by reading this Wiki and browsing through the project files.
-
Go to Edit>Plugins and search for CommonUI
-
Enable it
-
Restart the Engine
-
Once restarted, go to Edit>Project Settings and search for "Viewport"
-
Change the "Game Viewport Client Class" to "CommonGameViewport"
-
You will be prompted to restart the editor, so do it by clicking on "Restart Now"
- You can either add them to your engine plugin folder or to your project folder. More details here
- Enable them all in your project before continuing
- Close your project
-
Open the local files of my project by clicking on "Show in Explorer" with GitHub Desktop
-
Go to \content\ and copy the CommonUI folder
-
Go to the \content\ folder of your project and paste it
-
Open your project again
-
Go to Project Settings>Game>Common Input System
-
Change the parameters to be the same as in my project, so as I am writing this:
-
Set Input Data to "CU_InputData"
-
In Platform Input>Windows>Default>Controller Data, add everything so it looks like this
-
Enable "Allow Out Of Focus Device Input"
-
-
Go to Project Settings>Plugins>Common UI Editor
-
Again, change the parameters to be the same as in my project, so as I am writing this
-
Go to Project Settings>User Interface
-
Set "Render Focus Rule" to "Never"
-
Go to Project Settings>Maps & Modes
-
Set Both Maps to "LVL_Frontend"
-
If you have a custom Player Controller, open it
-
Add these nodes
-
Go to Content\CommonUI\Widgets
-
Open UI_MainMenu
-
Go to Graph on the top right
-
Set the "Level" variable to the level you want people to access via the main menu
-
Open your Character Blueprint
-
Add the inputs you want to open the pause menu with, mine are these
-
Add those nodes and connect them to your Inputs Actions
-
You are good to go! Enjoy!
The only little problem is that volumes slider in the "Audio" settings won't work. I will make another tutorial on how to make them work later.