This is an example of how to record player emotions in a Unity game using Affectiva's asset. This is written on top of Into The Space which was written by Bug Games. You can get the original on the Unity asset store: https://www.assetstore.unity3d.com/en/#!/content/20749
When run, emotion metrics are filed to [yyyyMMdd_HHmmss]PlayerMetrics.csv in the project's root file (where yyyyMMdd_HHmmss is replaced with the date and time the game began).
git clone https://www.github.com/Affectiva/IntoTheSpace.git Open the cloned repository in unity. File -> Open Scenes -> 2DSpaceShooterExample/CompleteProject/_SS_Scenes/Scene_01 . Import the Affdex asset (download it from the getting started section of the developer portal).
Instructions on how to emotion enable a game (with examples) is here: http://developer.affectiva.com/unity/