Launch your Unreal Engine project.
Go to Edit â Plugins.
Search for Nav Compass Pro.
Click Enable.
Restart the editor when prompted.
To display an indicator on the compass, register your actor using the UNavCompassSubsystem::AddTrackedActorToLayer
function.
Function Parameters:
Parameter | Description |
LayerName | Unique name for the compass layer (e.g., |
Actor | The actor to track with a directional indicator. |
ConfigAsset | Set to |
IndicatorClassWidget | Set to |
Example Result:
HideIconIfPlayerCloserThan = 400
The indicator hides when the player is within 400 units.
This allows displaying a different interaction indicator when nearby.
To show a close-range interaction indicator:
After adding the actor to the "Objectives"
layer,
Call AddTrackedActorToLayer
again with the following:
Setting | Value |
Layer Name |
|
HideIconIfPlayerCloserThan |
|
HideIconIfPlayerFartherThan |
|
This makes the interaction indicator visible only when the player is near.
BP_LeverCustom
contains the hover/unhover and interaction logic.
đ Find it at:Plugins/NavCompassPro/Content/Demo_01/Blueprints/BP_LeverCustom
Function | Description |
| Adds an actor to a compass layer. Creates the layer if it doesn't exist. |
| Retrieves a specific or all compass layers. |
| Removes one or all layers. |
| Removes a specific actor from all layers. |
| Removes all tracked actors from all layers. |
| Removes actors with a specific tag. |
| Globally lock/unlock an actor. |
| Checks if an actor is locked in any layer. |
| Collects all locked or tracked actors. |
| Unlocks all actors in all layers. |
| Toggle visibility of all indicators. |
| Show or hide a specific layer. |
| Reveals all previously hidden layers. |
| Checks if all indicators are currently hidden. |
| Returns a list of hidden layer names. |
| Shows all indicators and removes tag filters. |
| Show/hide based on tag filters. |
| Exclusively show only matching tag indicators. |
| Show indicators based on player distance. |
A UNavCompassLayer
manages directional indicator widgets for a specific group of actors. Each layer handles visibility, filtering, and widget updates.
Function | Description |
| Adds or updates a tracked actor. Creates a widget if needed. |
| Removes a tracked actor and its widget. |
| Clears all tracked actors from this layer. |
| Removes all actors with a specific tag. |
| Returns all tracked actors. |
| Returns actors filtered by tag. |
| Returns the total count of tracked actors. |
| Checks if the actor is tracked in this layer. |
| Gets the associated indicator widget for an actor. |
Function | Description |
| Hides all indicators. |
| Unhides all indicators. |
| Returns current visibility state. |
| Toggle visibility for a specific actor. |
| Toggle visibility for a specific widget. |
| Clears all filters and reveals indicators. |
| Shows only the closest |
| Filter visibility based on distance. |
Function | Description |
| Shows only matching tags, hides all others. |
| Shows any indicators with the specified tags. |
| Hides indicators with matching tags. |
Function | Description |
| Locks a specific actor (optional unlock others). |
| Unlocks a specific actor. |
| Unlocks all actors in this layer. |
| Checks if an actor is currently locked. |
| Returns a list of locked actors in the layer. |