首页 / 浏览问题 / 组件GIS / 问题详情
UNITY 插件打包时报错
32EXP 2022年07月15日
unity版本是:2022.2.0a7

超图插件版本是:SuperMap 3D SDKs 11i(2022) Beta for High-Fidelity Rendering_Unity

新建3D项目,正常导入插件,配置打包环境后打包,报如下错误:

Assets\SuperMap\Desktop\Tools\Addin\FacadeWindows.cs(6,30): error CS0246: The type or namespace name 'EditorWindow' could not be found (are you missing a using directive or an assembly reference?)

UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
  at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002da] in <22f0f1f77398425dbe252343673266d2>:0
  at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <22f0f1f77398425dbe252343673266d2>:0
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

1个回答

您好,1.unity插件打包到webgl目前只支持2019版本(帮助文档有说明),还不支持高版本,因为unity高版本不支持多线程

2.目前11i Beta版本还没有更新webgl库,更新后会通知大家,暂时可以试用sp1版本进行打包:链接:imagehttps://pan.baidu.com/s/1ll9lKE4z8zS0lVf1Y67OCA 
提取码:6655 

852EXP 2022年07月15日
不是打包WEBGL,是打包EXE

您好,请问您使用的unity游戏引擎插件包是哪个版本的呢,如果使用上面提供的版本,会有同样的错误吗?另外您可以参考一下这个解决方案:https://www.233tw.com/unity/50198

...