hi,
I'm using unity 5 and c# (visual studio community 2015), I'm downloading the affectiva sdk now, But I think from your description that the main task isn't about writing affectiva specific modification, but is to store affectiva results into CSV from unity , correct? which platform you want to code to run on (windows, android, ...)?
thanks