Posted on

Why Are My Unity Ads Not Working? – Advertisement does not exist

Download SnakeCubed here
Android: https://play.google.com/store/apps/details?id=com.InfoGamer.SnakeCubed
iOS: https://itunes.apple.com/us/app/snake-3/id1408921148?ls=1&mt=8

Platform dependent compilation: https://docs.unity3d.com/Manual/PlatformDependentCompilation.html

Do you have an error that says The name “Advertisement” does not exist in the current context? if so this video should help you solve the problem. This is an error that you can receive while trying to implement Unity ads into your Unity project. This error can occur if you do not have the correct build platform selected or if you have not enabled Unity ads service within your project. If the error persists then it is probably due to some improper file configurations with the library fold. if this is the case then save your project can close Unity then navigate to the file location of your project and delete the library folder. Finally, reopen your Unity project. Unity will recreate the library folder and refresh your project. after following these steps your Unity ads should be fixed and you should not be receiving any more errors with the console window.

Posted on

Fix Index Out of Range Error in Unity

For this lesson, we will teach you how to debug the runtime error, index out of range. If you are receiving this error whether in Unity or with another programming language, you can follow the guidelines in this video to fix this problem. This error occurs when you are trying to access an element of an array that does not exist. As long as the index by which you access your array is with the range of your array you should not be receiving this error.

Posted on

Fix Cannot implicitly convert type to bool in Unity

For this video on how to debug C# scripts in Unity, we will be showing you what happens when you forget to add a second equals sign to you if statement comparing two values. The error you will receive is “Cannot implicitly convert type to bool.” All you have to do to fix this error is to add a second equals sign to your if statement. Remember the one = sets a variable and == compares two variables.