- Home /
JS Unity Boolean 'not possible to evoke an expression of type 'boolean''
var Reloading : boolean = false;
it just doesn't work it should work but then i get the error. and im not sure how to properly reference it but i had this: Reloading = true;
Answer by Immanuel-Scholz · Jun 13, 2013 at 10:12 PM
The simple line var Reloading : boolean = false;
can not cause this error.
What this error actually means is that you somewhere accidently try to invoke the "Reloading" boolean.
Maybe you have another function with the same or a similar name (like function Reload()
?) and now you accidently called your variable Reloading()
.
Make tripple sure that you actually posted the line that the compiler is complaining about. You get to the line easily by double clicking on the error in Unity.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Error I don't know how to fix 1 Answer
UnityScript coding error: 1 Answer