The type or namespace name ‘Interaction‘ does not exist in the namespace ‘UnityEngine.XR‘报错

报错记录:
Assets\CurvedUI\Scripts\CurvedUIInputModule.cs(22,22): error CS0234: The type or namespace name ‘Interaction’ does not exist in the namespace ‘UnityEngine.XR’ (are you missing an assembly reference?)

如果有上面的报错,需要在Unity的 Package Manager中 添加下面的包
com.unity.xr.interaction.toolkit

具体步骤:
在这里插入图片描述
在这里插入图片描述
输入上以后 等待加载完毕即可
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_45375968/article/details/131878452