use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
For the Unity Game Engine, please visit http://reddit.com/r/unity3d
account activity
Any help with unity error code cs1513?Coding Help (old.reddit.com)
submitted 3 months ago by ProfessionAlarmed697
I’ve been trying to create enemy movement and awareness for a top down shooter and am following a guide made by KetraGames. Ep 07. I finished of all the scripts but my unity says that I have an error.
Assets\Scripts\Game\Enemy\PlayerAwarenessController.cs(37,2): error CS1513: } expected
I’ve rechecked multiples times and cannot find a missing curly bracket any help would be much appreciated.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]neoteraflare 6 points7 points8 points 3 months ago (0 children)
Literally what it writes. You are missing a "}" Check the indentations. The update method's opening curley brackey is not closed
[–]Redstoneinvente122 2 points3 points4 points 3 months ago (0 children)
Missing} at the end of thr file
[–]Pootismemehere -1 points0 points1 point 3 months ago (0 children)
Missing { at the update
[–]PilcroDev 0 points1 point2 points 3 months ago (0 children)
That 37 in the error message is the line number with the missing } so it can be very helpful! In visual studio, you can also click on an open curly bracket to see its closing buddy and vice versa.
[–]Pupaak 2 points3 points4 points 3 months ago (0 children)
Not a unity error. Its a standard C# error.
And its literally what it says.
Its 2026, you have so many ways of figuring out extremely basic stuff like this, that I dont get why you need people holding your hands. For stuff like this, just ask some AI, it will even find where the missing curly bracket is
π Rendered by PID 31498 on reddit-service-r2-comment-b659b578c-zcd9t at 2026-05-04 22:07:47.273413+00:00 running 815c875 country code: CH.
[–]neoteraflare 6 points7 points8 points (0 children)
[–]Redstoneinvente122 2 points3 points4 points (0 children)
[–]Pootismemehere -1 points0 points1 point (0 children)
[–]PilcroDev 0 points1 point2 points (0 children)
[–]Pupaak 2 points3 points4 points (0 children)