空气控制台Unity集成问题 [英] Airconsole & Unity integration issue

查看:189
本文介绍了空气控制台Unity集成问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我是Unity& amp;的新手.在两个平台上都装有空调.

我只是在探索与Airconsole集成的统一性,但是在导入"airconsole插件"(从Asset Store导入)时遇到了错误.

我正在Windows 10上使用最新版本的unity 2018.3.0f2 Personal.

以下是我在统一控制台中看到的一些错误消息

Assets \ AirConsole \ plugins \ Newtonsoft.Json \ Utilities \ DynamicWrapper.cs(27,20):错误CS0246:找不到类型或名称空间名称"ModuleBuilder"(您是否缺少using指令或程序集引用?)

Assets \ AirConsole \ plugins \ Newtonsoft.Json \ Utilities \ DynamicWrapper.cs(25,20):错误CS0246:找不到类型或名称空间名称"ModuleBuilder"(您是否缺少using指令或程序集引用?)

Assets \ AirConsole \ plugins \ Newtonsoft.Json \ Utilities \ DynamicReflectionDelegateFactory.cs(193,72):错误CS0246:找不到类型或名称空间名称"ILGenerator"(您是否缺少using指令或程序集引用?)

Assets \ AirConsole \ plugins \ Newtonsoft.Json \ Utilities \ DynamicReflectionDelegateFactory.cs(214,81):错误CS0246:找不到类型或名称空间名称"ILGenerator"(您是否缺少using指令或程序集引用?)

...........

我该如何解决该问题?测试基本的飞机控制台示例. 在此先感谢:)

解决方案

无需更新Newtonsoft.Json库.相反,您可以简单地在Player Settings / WebGL Settings / Other Settings中将API Compatibility Level设置为.NET 4.x.

要解决此错误,必须将平台(在构建设置"中)设置为WebGL,或者您还必须在其自己的Player Settings

First of all i'm new to unity & airconsole both platforms.

I was just exploring unity with airconsole integration but i'm getting errors on importing "airconsole plugin" (imported from Asset Store).

I'm using latest version of unity 2018.3.0f2 Personal on windows 10.

Following are few error messages i can see in unity console

Assets\AirConsole\plugins\Newtonsoft.Json\Utilities\DynamicWrapper.cs(27,20): error CS0246: The type or namespace name 'ModuleBuilder' could not be found (are you missing a using directive or an assembly reference?)

Assets\AirConsole\plugins\Newtonsoft.Json\Utilities\DynamicWrapper.cs(25,20): error CS0246: The type or namespace name 'ModuleBuilder' could not be found (are you missing a using directive or an assembly reference?)

Assets\AirConsole\plugins\Newtonsoft.Json\Utilities\DynamicReflectionDelegateFactory.cs(193,72): error CS0246: The type or namespace name 'ILGenerator' could not be found (are you missing a using directive or an assembly reference?)

Assets\AirConsole\plugins\Newtonsoft.Json\Utilities\DynamicReflectionDelegateFactory.cs(214,81): error CS0246: The type or namespace name 'ILGenerator' could not be found (are you missing a using directive or an assembly reference?)

...........

How can i resolve the issue & test basic airconsole examples. Thanks in advance :)

解决方案

There is no need to update the Newtonsoft.Json Library. Instead, you can simply set API Compatibility Level to .NET 4.x in Player Settings / WebGL Settings / Other Settings.

For this to resolve the errors, the Platform (in Build Settings) needs to be set to WebGL, or you have to change the API Compatibility level also for your currently selected Platform in its own Player Settings

这篇关于空气控制台Unity集成问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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