Nothing is recording

Issue #8 closed
Amandine created an issue

I've tried to use the heatmap tool to draw heatmap for gaze data from an eye tracker. I've got the following script to create my heatmap, I've used to convert what I want in float because double do not work.

using UnityEngine;
using System.Collections;
using UnityAnalyticsHeatmap;
using Newtonsoft.Json;
using TETCSharpClient;
using TETCSharpClient.Data;

public class essai : MonoBehaviour {

    void debut(GazeData gazeData)
    {
        float x = (float)(gazeData.SmoothedCoordinates.X);
        float y = (float)(gazeData.SmoothedCoordinates.Y);
        UnityAnalyticsHeatmap.HeatmapEvent.Send("GazeData", new Vector2 (x,y));
    }
}

I've tried my application but when I want to draw the heatmap it doesn't work, I've got the following error : NullReferenceException: Object reference not set to an instance of an object HeatmapMeshRenderer..RenderHeatmap() (at Assets/Plugins/Heatmaps/Renderer/HeatmapMeshRendere.cs : 171)

That's the following lines of the script :

for (int a = 0; a < m_Data.Length; a++) I guess that the problem is that nothing is recording, more i've got the following warning message :The aggregation process yielded no results. UnityEngine.Debut:Logwarning(Object) which confirm the fact that nothing is record to draw the heatmap..

I was wondering why I've got this issue maybe it came from my conversion in float but I'm not sure. I really need it to works because I have to draw heatmap from my game and this way seems to be the better one.

Thanks so much for helping

Comments (3)

  1. Log in to comment