Demonstration
Documentation
Shop
Questions
Pro Navigation System - Documentation
Connecting to the project
If you have a new project, you can simply connect a ready-made character in your project! To do this, go to: //Project Settings/Maps & Mode/Default GameMode/ Here, just select BP_GameMode and you will have a customized character.
Connecting your character
To connect the system to your controller, simply add a component to the controller BP_NavigationComponent. The system is fully connected and ready to work!
Adding new marker types
In order to add a new marker type, you need:
- Write the name of the new marker type in E_TypesMarkers
- Add a new element and specify its settings in BP_NavigationComponent/Settings Targets
- Maximum Display Range (Target) - The distance of the marker display on the target
- Maximum Display Range (Compass) - The distance of the marker display on the compass
- Add styles for W_CompassMarker in Update, W_TargetMarker in Distance using the functions
- Transparency - Gradually hiding the compass marker at a distance
- Set Distance - Display the distance to the target
- Set Color - Marker color
- Update Height - Show at what height the marker is located
- Set Distance Visibility - Enables or disables the distance display
- Area - Indicates that the marker is the search area
- Set Marker Icon - Changes the marker texture
Functions
The following functions are used to work with markers:
- Get Navigation Component - Get the navigation component
- Get Compass - Get a link to the compass widget
- Get Navigation Widget - Get a link to the main widget
- Get Distance to Target - Get the distance and height to the target
- Begin Target Tracking - Set a marker on a target
- End Target Tracking - Remove the marker from the target
- Target - The goal for tracking
- Types Markers - Marker type
- Set Type Marker - Change the type of the goal marker
Compass Width Settings
To change the width and angle of the compass search, go to W_MainWidget highlight W_Compass and change the values:
- Width - Compass width
- Height - Compass height
- Texture Size - The angle displayed on the compass
Preparing a target for tracking
The system works with any actor on stage by default. But if you need to install the marker in a certain place, you can connect the component BP_MarkerComponent and put it in the required place. After connecting, the marker will be installed in the place of this component
Important information!
- Function Begin Target Tracking - sets the marker from the target. For the function to work, it must first load BP_NavigationComponent therefore, to install tracking on the target immediately during the loading of the game, you need to install Delay. The value 0 will be suitable which will give the necessary time to load the system and prepare it for operation
- The system provides a ready-made scene and 3 objects configured for tracking BP_Area, BP_Location, BP_CharacterAI which can be taken as an example of the settings