Following are the steps to use heatmaps:
Scenario: Let’s say, in this case, we want to keep track of locations where a player dies.
In the game screen below, whenever the player collides with any of the 4 green bricks, we want to create a heatmap with the locations where the player dies.
In any script where you want to register the heatmap, in this case, a script sitting on 4 green cubes called DeathPoint, do the following:
In the above example, whenever the player enters any of the green cubes, we get the player’s position in OnTriggerEnter, extract the X and Z coordinates, and pass them in the Heatmap() function.
To visualize the heatmap, go back to the player portal, and under reports, select heatmap.
You’ll be presented with the screen below as shown below.
From here, select your
If we consider the scenario above, we can see that the green cubes were indeed placed in a shape like shown by the markers in the heatmap above. They were indeed in the (N,E,S,W) points of the actual game map!