首页 / 浏览问题 / 组件GIS / 问题详情
插件导入Unity运行场景报错
mob
2EXP 2022年07月11日
插件导入unity后运行场景报错,地图没有出现,只有UI和空场景,点击按钮都是空指针报错,之前有几个项目只有第一次打开会显示地图,第二次打开就没有了,不知道什么问题,许可和环境都配置过了,版本也是最新版本,unity版本2022,2021,2019试过都不行。

EntryPointNotFoundException: Scene_GetScale assembly:<unknown assembly> type:<unknown type> member:(null)
SuperMapSDK.Scene.GetScale () (at Assets/SuperMap/Basic/Core/Scene.cs:668)
QueryLocationContainer.Update () (at Assets/SuperMap/Desktop/UISamples/Container/QueryLocationContainer.cs:43)
 

EntryPointNotFoundException: RotationMatrix assembly:<unknown assembly> type:<unknown type> member:(null)
SuperMapSDK.MathEngine.LongLatToRotationMatrix (System.Double dLon, System.Double dLat, System.Double dAltitude) (at Assets/SuperMap/Basic/Algorithm3D/MathEngine.cs:412)
SuperMapSDK.Georeference.SetGeoreferenceOrigin (System.Double dLongitude, System.Double dLatitude, System.Double dAltitude) (at Assets/SuperMap/Basic/Core/Georeference.cs:101)
SuperMapSDK.RealspaceView.SetGeoreferenceOrigin (System.Double dLongitude, System.Double dLatitude, System.Double dAltitude) (at Assets/SuperMap/Basic/ControlUnity/RealspaceView.cs:448)
SupermapGIS.InitializeRealspaceView () (at Assets/SuperMap/Desktop/Scripts/SupermapGIS.cs:180)
SupermapGIS.Start () (at Assets/SuperMap/Desktop/Scripts/SupermapGIS.cs:154)

1个回答

您好,从这个报错无法定位问题,您可以先运行Assets/Scene下的示例场景,会报同样的错误吗?如果同样报错请加我QQ:1939778711,我远程您

852EXP 2022年07月11日
就是示例场景报错 都试过了 加您了

这是由于场景打包时将平台由windows切换到了webgl,再次通过unity打开场景时在webgl平台上加载报错,解决方案:在Build Setting中将平台切换回windows即可

...