The BCE0044 error is where the code expects something to be in the java script but something else was found.
For example, if unity had an error message displaying:
`. js(9,1) BCE0044: expecting }, found ‘’.`
This means that there is a JavaScript error on line 9 of the code where the computer was expecting a } but instead of finding a } it found nothing.
To create and solve a BCE0044 error you have to create a new JavaScript, it will display the code:
#pragma strict
function Start () {
}
function Update () {
}
Then you delete the } on line 5, so the code is:
#pragma strict
function Start () {
}
function Update () {
Then save the script. Then unity will display:
`. js(5,1) BCE0044: expecting }, found ‘’.`
You can fix this error by putting a } on line 9 of the code so the code looks like this:
#pragma strict
function Start () {
}
function Update () {
}
This can also be for an opening Bracket or a EOF (End Of File) for example if I deleted the { on line 2 of the code. The error message would display:
`. js(2,1) BCE0043: unexpected token ‘}’.`
This can be fixed by either deleting everything from lines 2 to 3 or adding a { at the end of line 2.
↧