
Create Heatmaps right inside Unity! This utility provides a backend to log player positions, mouseclicks, or just about anything that can be mapped in world space. Log positions to a text file for later conversion to heatmap. Creating a Heatmapper compatible text file is as easy as this:
// myPositions is a Vector3 array containing your logged locations.
StringUtility.Vector3ArrayToTextAsset(myPositions,
"Assets/HeatmapPoints.txt");
There are examples included, as well as a tracking script that you can attach to a player controller to be up and running in seconds.
Creating a Heatmap is super easy, with additional helper methods included to aid in the creation of screenshots. Here’s a bit of code that creates a heatmap, displays it on screen, then takes a high resolution screenshot:
// Positions / Camera / How large to draw heat points
Texture2D heatmapImage = Heatmap.CreateHeatmap(positionArray,
Camera.main, 40);
// Draw the Heatmap in front of the camera
Heatmap.CreateRenderPlane(heatmapImage);
// And take the screenshot!
Heatmap.Screenshot("Assets/MyScreenshot.png");
Asset Store Link | Documentation
Screenshots:


