🔌Integration in your project
Last updated
Last updated
Do not worry if you added the interaction system already to your project. You can also do the following afterwards. However it is recommended to follow the order that is shown below:
If you are already experienced with unreal, here is a very short guide on how to integrate it because there is really not much to do. If you have problems with understanding it please follow the Beginner friendly guide below
Add an Ignore trace channel named LookAtTrace to your project. Now migrate the Nice Interaction System to your project. Then open AC_PC_Interaction and make sure that the variables LookAtTrace_Type and LookAtTrace_Collision are both set to LookAtTrace. In the map where you want to be able to interact, open up your player controller and add the AC_PC_Interaction component. Then open your game state (or create one if you do not have one yet) and add the AC_GS_Interaction component. That is all, now you can check other parts of this documentation to make your first interactable actor or foliage. Also consider to check Add outline to your project and enable it in your map if you want to have outline effects when focusing interactables.
Open your project in which you want to integrate the Nice Interaction System. Open the Project Settings:
Here go to Engine -> Collision and add a New Trace Channel:
Make sure the Name is: LookAtTrace
And set the Default Response to: Ignore
Then click on Accept.
Add the ‘Nice Interaction System’ from your Epic Games Launcher to your project:
Now after downloading is done, you should see a NiceInteractionSystem folder in your project’s Content folder.
Go to NiceInteractionSystem -> Blueprints -> Components and open AC_PC_Interaction.
In the variables section check that LookAtTrace_Type and LookAtTrace_Collision are both set to LookAtTrace.
Here is how the World Settings look in the Demo map of the Interaction System.
You have other classes there selected which is totally how it should be because I want to show you how you can integrate the interaction system in your player controller and game state. However if you do not have an own game mode and player controller, feel free to use the same classes as in the Demo map or just create a new game mode, player controller, game state. Because it is very easy to integrate it in your existing player controller and game state.
The only thing you need to do now is open your Player Controller and add the AC_PC_Interaction component:
Then open your Game State. If you do not have one (so if it is just ‘GameState’), create one by clicking in the World Settings tab under Game State Class on the + button on the right):
Now just add the AC_GS_Interaction component to your game state:
That is all, now you can check other parts of this documentation to make your first interactable actor or foliage. Also consider to check Add outline to your project and enable it in your map if you want to have outline effects when focusing interactables.
Both should have as Default Value this:
Open the map in which you want to be able to interact.Then find your World Settings window/tab. It is usually on the right. But if you cannot see/find it you can make it appear like so: