问题描述
我是xAPI/TinCan API的新手,所以我的问题可能有点笼统,但到目前为止,我还没有找到任何可以帮助我的东西.我认为可以将xAPI集成到Unity项目(游戏或模拟)中,但是我该怎么做呢? (是否有我可以在xAPI& 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?)
所以我应该理解:我需要一个LRS,然后可以使用TinCan .NET库并将其集成到Unity中,然后在我的Unity代码中有一些条件(例如完成该级别..),如果有的话完成后,我在此处的示例中创建了一条语句( http://rusticisoftware.github.io/TinCan .NET/),然后通过普通的POST将其发送到我的LRS?然后我可以在LRS中查看/查询此学习数据以进行分析吗?
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是否适用于Unity独立,移动和网络播放器?
Plus does it work for Unity standalone, mobile and web player??
推荐答案
我对Unity的经验很少(除了研究有关此问题的其他人的问题之外),但是在大多数情况下,我相信您是正确的. TinCan.NET应该基于其他人所说的与Unity一起工作,并且它提供了您与LRS通信所需的一切(因此,您无需进行自己的POST等,而只需查看RemoteLRS类方法即可.)
I have little Unity experience (other than researching others' questions on this subject) but for the most part I believe you are correct. TinCan.NET should work with Unity based on what others have said, and it provides everything you need to communicate with the LRS (so no need to do your own POST, etc. instead look at the RemoteLRS class methods).
通常,我会避免直接向LRS查询以进行分析报告,而应该将其视为长期存在的数据存储,应使用该数据存储来填充报告工具.话虽如此,您当然可以在LRS中看到数据.您可以通过 https://cloud.scorm.com (来自TinCan的Rustici软件维护者)访问免费的LRS. NET)来注册一个帐户.
In general I would avoid querying the LRS directly for analytics reporting, instead consider it a long lived data store that should be used to populate a reporting tool. Having said that, you can certainly see the data in an LRS. You can access a free LRS at https://cloud.scorm.com (from Rustici Software maintainers of TinCan.NET) by signing up for an account.
请注意,您可能会遇到SSL证书验证的常见问题,并希望查看.
Note you may run into a common issue with SSL certificate validation and will want to have a look at Mono https webrequest fails with "The authentication or decryption has failed" if you do.
尽管我希望支持.NET的任何功能都可以使用,但我无法谈论独立的,移动的Web播放器问题.
I can't speak to the standalone, mobile, web player question, though I'd expect anything supporting .NET should work.
这篇关于如何在Unity中集成xAPI/TinCan的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!