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.

Posted on

Can’t Switch Build Platforms – Your License does not Cover

In this video, we cover a problem that I was running into just the other day. This problem deals with not being able to switch over to a different build platform like iOS or Android. This problem can be a bit tricky as Unity does not give you very much information about the problem. To fix this problem you will need to re-register your Unity license, even if you are just using the free personal license. Then once you restart it should be all working again.