Compass - NEW {{ currentPage ? currentPage.title : "" }}

To add icons on the compass, you have to set icon options then add a Marker Component to the Actors that needs to be shown in the compass.

Example: you can check the ACFUltimateSample for a working example. Continue reading for the key concepts.

Icon Options

Icon options allows to set options for markers based on their category. Open the DataAsset called ANS_IconOptions_DA to edit them.

The Data Asset is splitted in two parts: in the first you can register gameplay tags as categories, in the second part you can change properties.

Workflow:

  1. [Create a new Gameplay Tag for your marker](Gameplay Tags | Unreal Engine 4.27 Documentation | Epic Developer Community)

  2. Add a new entry to Markers Categories and set the tag to create a category

  3. Click on UpdateGameplayTagMaps

  4. Update the settings for the Marker Category

Please avoid to add and remove entries from Marker Infos section, but add categories in the Marker Categories section then click on UpdateGameplayTagMaps to create automatically entries in the map.

Marker Info

For every marker category, you can change the following options:

Icon Info

Icon color: the color of the icon

Icon compass size: the size of the icon on the compass Icon map size: the size of the icon on the game map Icon render location: Currently not used

Background Info

Background Visible?: if true, the Background Texture or Color is used as background

Background Texture: the texture to use as background for the marker Background Color: the color to use as background for the marker Background Opacity: the opacity of the background of the texture

Background Has Border?: if true, uses a texture or a color as border for the marker

Border Texture: the texture to use as border

Border Color: the color to use as texture

Compass Info

Fade Off Compass?: If true, uses the following property to hide the marker on the compass over a distance. If false, the marker is always visible.

Visibility Range: Max distance in meters from the marker's actor where the marker is visible on the compass. Fade Off Compass? must be true.

Visibility Fade Difference: This is the amount of meters before the end of visibility range where the marker starts to fade.

Activate Distance Test?: If true, show the distance from the marker Actor under the marker in the compass.

Max Compass Angle: Markers inside this angle, centered on the player front, will be visible on the compass.

Scale Off Range: How much degrees from the Max Compass Angle the marker starts to scale off?

Keep Visible Icon Max Angle: When the marker is set to stay visible on compass, where to place the marker on the compass when outside of Max Compass Angle?

Keep Marker Visible: If true, the marker is not scaled off and hidden when outside of the Max Compass Angle range.

World Info

Visibility Range: How much meters if visible in the game viewport?

Visibility Fade Range: How much meters before the Visibility Range distance the marker starts to fade off?

{{{ content }}}