Footfall1.0.0 · Exaweft

Footfall user guide

Footfall records where players move, die and trigger events during playtests, saves each session to a local file, and draws it in your Scene View: markers, trails and a density heatmap. It works in the Editor's Play Mode and in development builds, and is off in release builds unless you turn it on.

  1. Quick start: your first heatmap in about five minutes
  2. Recording events with Heatmaps.Record
  3. Recording movement with Heatmap Recorder
  4. Sessions: when they start and end, and where the files go
  5. Collecting sessions from testers
  6. The Sessions window
  7. The Footfall panel in the Scene View
  8. Density heatmaps
  9. Replay, Top View and Export PNG
  10. Release builds and performance
  11. The session file format
  12. What has been tested
  13. Known limitations
  14. The Demo sample
  15. Support

1. Quick start

  1. Install. In the Package Manager's My Assets, download and import Footfall; it goes into Assets/Footfall. Check the Console is free of errors. It needs Unity 6 (6000.0 or newer) and no other packages.
  2. Record movement. Select your player and add the Heatmap Recorder component (Add Component > Exaweft > Footfall > Heatmap Recorder, or search for it). It samples the player's position every half second.
  3. Record an event. Where your player dies, add one line. Here Die stands for your game's own death code; call Heatmaps.Record wherever that is:

    using Exaweft.Footfall;
    using UnityEngine;
    
    public class PlayerHealth : MonoBehaviour
    {
        void Die(string killer)
        {
            Heatmaps.Record("death", transform.position, "enemy", killer);
        }
    }
  1. Play. Enter Play Mode, play for a minute and die a few times, then stop. Footfall saved the session to a file.
  2. Look. Open Tools > Exaweft > Footfall > Sessions and press Editor Sessions. Then, in the Scene View, turn on the Footfall panel: with the pointer over the Scene View, press the ` key to open the Overlays menu and click Footfall. Your path shows as a trail and each death as a red marker. Tick Density and press Top View to see where deaths cluster.

To try it without writing any code first, open the Demo sample (section 14): it comes with eight ready-made sessions.

No player yet, as in a new empty project? Add a Capsule, give it the Heatmap Recorder, and use this stand-in, which walks in a circle and dies every five seconds:

using Exaweft.Footfall;
using UnityEngine;

public class WalkAndDie : MonoBehaviour
{
    float nextDeath = 5;

    void Update()
    {
        float t = Time.time * 0.5f;
        transform.position = new Vector3(Mathf.Cos(t) * 6, 1, Mathf.Sin(t) * 6);
        if (Time.time > nextDeath)
        {
            Heatmaps.Record("death", transform.position, "enemy", "spikes");
            nextDeath += 5;
        }
    }
}

2. Recording events

Heatmaps.Record(name, position) records that something happened at a world position. The name is your own: use "death", "checkpoint", "jump", "purchase", or anything else worth seeing on the map. Each name gets its own colour in the Scene View, and the name "death" is also counted in the Sessions window's Deaths column.

Events can carry tags, as key and value strings, to say more about what happened:

Heatmaps.Record("death", pos);                                       // no tags
Heatmaps.Record("death", pos, "enemy", "bat");                       // one tag
Heatmaps.Record("death", pos, ("enemy", "bat"), ("wave", "3"));      // any number of tags

Tags show when you click a marker, and the panel's Tags card counts events by any tag (deaths per wave, say) and can show only one value (section 7).

3. Recording movement

Add Heatmap Recorder to anything whose path you want to see: usually the player, but also enemies, vehicles or NPCs. Each recorder is one track in the session, drawn as one trail. A GameObject takes one recorder.

SettingWhat it does
Sample IntervalSeconds of game time between samples. Default 0.5; at least 0.05.
Track NameThe trail's name, such as "Player". Empty uses the GameObject's name.

You can also add it from code, for objects spawned at runtime:

var recorder = enemy.AddComponent<HeatmapRecorder>();
recorder.TrackName = "Enemy " + number;
recorder.SampleInterval = 1f;

Samples use scaled game time, so a paused game (Time.timeScale = 0) records nothing.

4. Sessions

A session is one file holding one play of one scene.

Useful settings, all read at the start of the next session:

PropertyUse
Heatmaps.TesterLabelA name saved with the session, such as "Sam" or "Discord-3". Also set by starting the game with -footfallTester "Sam".
Heatmaps.PausedWhile true, nothing is recorded. Use it to skip menus and cutscenes, or to record only after a tester agrees.
Heatmaps.MaxPositionSamplesThe most samples a session keeps (default 100,000, about 14 hours of one recorder).
Heatmaps.MaxEventsThe most events a session keeps (default 20,000). Kept apart from samples, so long sessions never lose their deaths.

Heatmaps.IsRecording, Heatmaps.CurrentSessionPath, Heatmaps.LastSessionPath and Heatmaps.SessionTime tell you what is happening, for example to show testers where their file went.

5. Collecting sessions from testers

Testers need nothing but your development build. There is no server, account or upload.

  1. Send a development build (Build Profiles > Development Build). Release builds record nothing unless you turn recording on (section 10).
  2. Ask testers to start the game with a label, such as a shortcut ending in -footfallTester "Sam", or set Heatmaps.TesterLabel from your own name prompt.
  3. Ask them to send you the files in their sessions folder: Application.persistentDataPath/Footfall/Sessions. On Windows that is %USERPROFILE%\AppData\LocalLow\<company>\<product>\Footfall\Sessions.
  4. Put everyone's files in one folder and use Import Folder… in the Sessions window. Subfolders are included.

6. The Sessions window

Tools > Exaweft > Footfall > Sessions lists the sessions you have loaded. Every session in the list is drawn in the Scene View, unless a filter hides it.

The list is kept with your project (in UserSettings), so it is still there after a restart.

7. The Footfall panel

Turn it on from the Scene View's Overlays menu (the ` key over the Scene View). It has four cards. Collapsed, it shows as the footprint icon.

Show

Tags (shown when the loaded events have tags)

Density (shown when Density is ticked): see section 8.

Replay: see section 9.

Below the cards: Top View, Export PNG… and Sessions Window.

8. Density heatmaps

The grid counts what happened in each square and colours it from quiet to busy.

SettingWhat it does
CountsWhat the grid counts: one event type, such as death, or Movement for where players spent their time.
Cell sizeThe width of each square, in world units.
Floor gapPoints in one square this far apart in height count as separate floors, each drawn at its own height. 0 keeps one flat grid. Default 2.5.
ColoursHeat, Viridis (readable with most colour blindness) or Red.
OpacityHow much of the level shows through.
PlaneXZ (the ground of a 3D level), XY (a 2D level), or Auto: XY when every point has z = 0.

The line below the settings says how many events fill how many cells, and the count in the busiest cell.

9. Replay, Top View and Export PNG

10. Release builds and performance

11. The session file format

Session files are UTF-8 text, so you can open them in any editor or read them in your own tools.

To read sessions in your own Editor tools, use SessionFile.Read(path), which returns a SessionData with the header, tracks, samples and events.

12. What has been tested

13. Known limitations

14. The Demo sample

The Demo sample is in Assets/Footfall/Samples/Demo, imported with the rest of Footfall. It has a small 3D level, "The Crossing", built from Unity primitives, simulated players and eight ready-made sessions. Its README walks through the panel.

15. Support

Email support@exaweft.com with your Unity version, what you expected and what happened. A session file that shows the problem helps.