What are curly brackets?

Hello,

I have a script in Unity and the editor is telling me to add a closing bracket in line 17. Doing this will close the Update function too early. Also, as you can see, there is no opening bracket with a missing closing one.

What can I do?

Hello mr fake error.

No, is not fake error, they never are fake… :smiley:

you diod this:

void Uppdate() return;
{
things
}

That return; is out of the brackets… or you move inside, or remove it. And I supose it shouldn’t be a return there anyway… if you do return, the function stops and do not continue, so you never change the desiredrotation

Bye!