How do I
Show distances in feet instead of meters
Pick Feet in the Distance Unit field of an Off-screen Indicator, Compass Bar or Fog of War Radar inspector, or set PassForgeHud.distanceUnit = DistanceUnit.Feet from a script.
You want
Your game is set in the United States, and the HUD should write "410ft" instead of "125m" beside indicators, on the compass and on the radar's rings.
The unit is one setting for the whole game. It covers the distances beside Off-screen Indicators, the markers on Compass Bars and the ring labels of Fog of War Radars.
Steps
- Select any Pass Forge Off-screen Indicator, Pass Forge Compass Bar or Pass Forge Fog of War Radar. The field sits under Show Distance on an indicator, under Show Markers on a Compass Bar, and in the Rings section of a radar.
- Set Distance Unit to Feet.
- Pass Forge keeps the choice on the Off-screen Indicators effect in your Effects Volume, adding the effect there when it is missing, as one Undo step. When the scene has no Effects Volume yet, the field says so: press Create Effects Volume under it, or use GameObject > Pass Forge > Effects Volume (Empty), then pick the unit.
- That is all: indicators, Compass Bars and radars each read the setting from the Volume, also in a game with only a compass or only a radar.
What you should see
Distances read 410ft instead of 125m, in the same digits on indicators, compasses and radars. Feet are worked out from meters, so what is measured stays the same.
If it does not work
- The field is grayed out. The Effects Volume uses a read only profile. Give it a profile from your project.
- Still meters in Play Mode. The camera's Volumes do not reach the setting: the Effects Volume is switched off, on a layer the camera's Volume Mask leaves out, or a Volume with a higher Priority ticks Distance Unit to Meters.
- Radar ring labels are missing. Labels need a Ring Spacing of whole meters, such as 5 rather than 2.5, are left out under 7 pixels tall, and start off in 2D and in the Hologram look. Switch Ring Labels on.
From a script
using PassForge.Effects;
using UnityEngine;
public class UnitsOption : MonoBehaviour
{
void Awake() => PassForgeHud.distanceUnit = DistanceUnit.Feet;
// For an options menu.
public void UseFeet(bool feet) =>
PassForgeHud.distanceUnit = feet ? DistanceUnit.Feet : DistanceUnit.Meters;
}
The value is not saved, so set it again each time the game starts, such as from your own settings. A Volume that ticks Distance Unit takes over a script's value; untick it there to let an options menu decide.