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.