mapbox 引入 Unity2019 2.2f 报错问题

最近在做基于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 -> AR Foundation -> Install
接着会继续报错

error CS0103: The name ‘heading’ does not exist in the current context
双击错误到vs脚本中 找到图中 double heading,把它取消注释mapbox 引入 Unity2019 2.2f 报错问题mapbox 引入 Unity2019 2.2f 报错问题