最近在做基于Lbs的AR项目,mapbox是比较好的选择,在导入Unity时 发生报错
The type or namespace name ‘SpatialTracking’ does not exist in the namespace ‘UnityEngine’ (are you missing an assembly reference?)
解决方法:点击 Windows -> Package Manager -> XRLegacyInputHelpers -> Install
在重新导入 mapbox包
接着会继续报错
error CS0103: The name ‘heading’ does not exist in the current context
双击错误到vs脚本中 找到图中 double heading,把它取消注释