1.01 ^ 365 = 37.78

[Unity] 유니티 광고(Unity ads) 컴파일러 오류날 때 본문

프로그래밍/Unity

[Unity] 유니티 광고(Unity ads) 컴파일러 오류날 때

Youngchangoon 2017. 2. 21. 14:13

UnityEngine.Advertisements 의 namespace가 존재 하지 않을때


정확히는 

error CS0234: The type or namespace name 'Advertisements' does not exist in the namespace 'UnityEngine'. Are you missing an assembly reference?

오류가 나는것입니다.


이유는 UnityEngine.Advertisements가 namespace로 존재하지 않다고 나오는 컴파일러 오류입니다.


해결방법은


Simple solution that worked for me: Switch Unity Ads OFF, save the project, close Unity. Run Unity again, open the project, switch the Unity Ads back ON.


1. Service(ctrl + 0)의 Unity Ads를 off로 바꿉니다.

2. 프로젝트를 저장한뒤, 종료합니다.

3. 다시 프로젝트를 키고 UnityAds를 다시 on 합니다.


저는 이 방법대로 하니 컴파일러 오류가 사라졌습니다... 이상한 오류네요;




출처 : https://forum.unity3d.com/threads/namespace-advertisements-does-not-exist-in-unityengine.353944/