如何在Unity3D中访问Google日历事件? [英] How to access Google calendar events in Unity3D?

查看:87
本文介绍了如何在Unity3D中访问Google日历事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Unity中构建一个 VR/AR日历,并寻找一种最简单的日历读取方式来自Google和Facebook的事件数据(让我们从Google开始).我已经尝试使用 Google日历C#API ,但是Unity没有不支持.NET 4.0或更高版本(Google Calendar API仅适用于.NET 4.0和更高版本).Unity确实具有.NET 4.6实验版本,但是在安装Google.Apis.Auth等以及PuTTY软件包管理器中所需的其他软件包之后,Visual Studio中的C#代码仍无法识别以下导入的软件包:

I'm building a VR/AR calendar in Unity, and looking for the easiest way to read calendar event data from Google and Facebook (let's just start with Google). I've tried using the Google Calendar C# API, but Unity doesn't support .NET 4.0 or above (Google Calendar API only works with .NET 4.0 and above). Unity does have a .NET 4.6 Experimental version, but in Visual Studio after installing Google.Apis.Auth etc and other packages needed in PuTTY package manager the C# code would still not recognize the imported packages below:

using Google.Apis.Auth.OAuth2;
using Google.Apis.Calendar.v3;
using Google.Apis.Calendar.v3.Data;
using Google.Apis.Services;
using Google.Apis.Util.Store;

因此,接下来我尝试了另一种方法:我尝试安装Unity Firebase插件.目前它仅适用于iOS和Android,因此我开始一个新项目只是为了清理环境.一般来说,关于Unity中Firebase的YouTube视频很少,它们没有加入Google Auth,只有Google Analytics(分析)和常规的普通电子邮件/密码都没有,因此,它已经经历了数周的反复试验.我觉得这家伙,除了我不使用FitBit,而且我没有弄清楚.是否有人对此有见识?

So next I tried a different approach: I tried installing the Unity Firebase plugin. It only works for iOS and Android for now, so I started a new project just to start clean. There are only a few YouTube videos about Firebase in Unity in general, and they don't get into Google Auth, just Google Analytics and regular plain email/password, so it's been trial and error for a few weeks now. I feel like this guy, except I'm not working with a FitBit, and I don't have it figured out. Does anybody have insight on how to go about this?

更重要的问题:如果要通过Unity中的Firebase来使用Google Auth,我将如何提取与该帐户关联的Google日历事件数据?会通过C#脚本返回吗?

More important question: If I were to get Google Auth working through Firebase in Unity, how would I go about pulling the Google Calendar event data associated with that account? Would that be back through the C# script?

还有其他可能我想念的方式吗?感谢您的帮助!

Is there another way all together that I'm probably missing? Thanks for any help!

推荐答案

以澄清您的问题.Google Calendar API支持任何可以发送HTTP POST和HTTP Gets的语言.Google .net客户端库当前至少需要.net 4.5才能运行.此处指出我们可能不支持它.

To clarify your question. The Google Calendar API supports any language that can send HTTP POST and HTTP Gets. The Google .net client library currently requires a min of .net 4.5 to run. There is currently no support in the library for unity there is an issue here which states that we will probably not support it.

话虽如此,您仍然可以将Google日历添加到您的项目中,只需要为其编写代码即可.

That being said you can still add google calendar to your project you will just have to code your own library for it.

这篇关于如何在Unity3D中访问Google日历事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆