Posted on

Fix ; Expected (Semicolon Expected) Error in Unity

This is a common error that coders can get on a regular basis. This is a compiler error because you receive this error prior to playing your game. There are a number of scenarios that can trigger this error but the most common ways to receive this error is by the following.

  1. Having the wrong number of closing symbols for your functions and classes. These include ), ], and }.
  2. Forgetting the semicolon(;) at the end of a line of code.
  3. Placing operators(+, -, *, /, <, >, =) where they don’t belong.

in addition to these common ways of triggering an Unexpected symbol error, this error can be caused by any character out of place.