出现了这样一个问题,unity 的广告,引用的using UnityEngine.Advertisements; 在我打开Services之后,还是会报下面的错误

The type or namespace name `Advertisements' does not exist in the namespace `UnityEngine'. Are you missing an assembly reference?
大概的意思就是 UnityEngine 里边没有 Advertisements 这个命名空间
但是奇怪的是,在我的另一个工程内,同样的操作却没有报出这样的错误
我尝试使用网上搜索到的办法解决:但是都有成功解决,其中让我离希望最近的一个方法就是重启unity,重启之后确实没有错误了,但是一运行ads的脚本时就会报错 依然是同样的错误。

实在知不道该如何去操作了……
最后我关闭了Services中的Ads ,选择从unity商店中搜索了一个ads 导入到工程内
然后 就好了,广告也能看了也不报错了。
最终我终究是知不道到底发生了什么

所以说,有哪位大佬可以解释一下么

网友评论