Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to integrate xAPI / TinCan in Unity

I am new to xAPI/TinCan API so my question might be a bit general but I haven't found anything that can help me so far. I figured it is possible to integrate xAPI into a Unity project (a game or simulation) but how exactly do I do that? (Are there any examples/documentation I can read on xAPI & Unity?)

So am I right to understand: I need a LRS, then I can use the TinCan .NET library and integrate it in Unity and then just have some conditions in my Unity code (like finish that level..) and if they are fulfilled I create a statement like in the example here (http://rusticisoftware.github.io/TinCan.NET/) and then send it to my LRS via a normal POST? And then I can see/query this learning data in my LRS for analytics?

Plus does it work for Unity standalone, mobile and web player??

like image 344
user3647967 Avatar asked Nov 09 '22 06:11

user3647967


1 Answers

An API for integrating xAPI into Unity3D has been released by the GBLxAPI open source community. This was built up from the rustici software c# library with more specific integration to the Unity game engine for collecting data for learning games. You can get access to the API from here https://gblxapi.org/community-blog-xapi-gbl/14-unity-3d-xapi-pilot-getting-started

The documentation is on the GBLxAPI GitHub site in the wiki. https://github.com/gblxapi/UnityGBLxAPI

The community also provides access to a sandbox you can test your integrations in your games to an LRS and BI tool for free as of this writing. There is also a free game demo where you can see xAPI being generated from a game.

This had been successfully integrated to a lot of games including non-learning games for collecting general game analytics using xAPI.

like image 91
Stuart Claggett Avatar answered Nov 14 '22 21:11

Stuart Claggett